SendMessage videocapture consts

Posted by Rita on Stack Overflow See other posts from Stack Overflow or by Rita
Published on 2010-05-29T20:31:07Z Indexed on 2010/05/29 20:32 UTC
Read the original article Hit count: 256

Filed under:
|
|
|
|

Hello, I am using a code sample to connect to a webcam, and don't really understand the meaning of the variables passed to the SendMessage method.

SendMessage(DeviceHandle, WM_CAP_SET_SCALE, -1, 0)

SendMessage(DeviceHandle, WM_CAP_SET_PREVIEW, -1, 0)

What does the -1 mean? To scale/preview or not to scale/preview? I'd prefer that zero/one would be used, zero meaning false, and have no idea what the -1 means.

SendMessage(DeviceHandle, WM_CAP_EDIT_COPY, 0, 0);

What does the zero mean in this case? Or does this message is simply void and the zero has no meaning, similar to the last zero argument?

Btw, what DOES the last zero argument mean?

Thank you very much in advance :)

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET