//------------------------------------
// Steal mode
//------------------------------------
// Get and set color mode for image to be copied
INT nColorMode;
is_DirectRenderer (hCam, DR_GET_STEAL_FORMAT,
(void*)&nColorMode, sizeof (nColorMode));
nColorMode = IS_CM_MONO8;
is_DirectRenderer (hCam, DR_SET_STEAL_FORMAT,
void*)&nColorMode, sizeof (nColorMode));
// Copy image with function returning immediately
INT nwait = IS_DONT_WAIT;
is_DirectRenderer(hCam, DR_STEAL_NEXT_FRAME,
(void*)&wait, sizeof (wait));
//------------------------------------
// Handle to window
//------------------------------------
// Set new window handle for image display
is_DirectRenderer (hCam, DR_SET_HWND,
(void*)&hWnd, sizeof (hWnd));
//------------------------------------
// Compatibility
//------------------------------------
// Check graphics card compatibility
INT nRet = is_DirectRenderer (hCam, DR_CHECK_COMPATIBILITY, NULL, NULL);
if (nRet == IS_DR_DEVICE_CAPS_INSUFFICIENT )
// Graphics card does not support Direct3D