avicap32.dll WM_CAP_DRIVER_CONNECT problem
dears have problem wm_cap_driver_connect message. works 1st time after system restart (windows 7 x64). meanwhile works fine on machine same mine. please find below example of code. public void attach(system.windows.forms.control control) { devicehandle = avicap32.capcreatecapturewindow("", constants.ws_visible | constants.ws_child, 0, 0, control.width, control.height, control.handle, 0); if (user32.sendmessage(devicehandle, constants.wm_cap_driver_connect, (intptr)devicenumber, (intptr)0).toint32() > 0) { user32.sendmessage(devicehandle, constants.wm_cap_set_scale, (intptr)(-1), (intptr)0); user32.sendmessage(devicehandle, constants.wm_cap_set_previewrate, (intptr)0x42, (intptr)0...