A
Alexander Prado
Hi There!
I need is a virtual driver for capturing desktop window (applications
must see it as a webcam).
As I did not find any free drive for doing that, I am trying to develop
one...
I installed DDK and realized that TESTCAP (DDK ´s sample) has all I
need - except that this driver doesn't capture anything (it only shows color
bars). So, I thought that all I would have to do was to change the core
function "ImageSynth" (in capxfer.c), including a screen capture method and
to make some simple changes...
I tryed GDI for capturing the screen, and likely that's
the problem. In order to debug, I commented all the code in
"ImageSynth", except the following commands, but I have no success (the
driver is successfully compiled and installed, but Windows shows a message
"Windows cannot load the device driver for this hardware. The driver may be
corrupted or missing. (Code 39)".
void ImageSynth (
IN OUT PHW_STREAM_REQUEST_BLOCK pSrb,
IN ImageXferCommands Command,
IN BOOL FlipHorizontal
)
{
// IF THE FOLLOWING COMMANDS ARE COMMENTED, DRIVER WORKS FINE!
HDC hdcScreen;
hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL);
DeleteDC(hdcScreen);
}
Does anybody could help me? What I need to do?
Thanks in advance.
Alex
I need is a virtual driver for capturing desktop window (applications
must see it as a webcam).
As I did not find any free drive for doing that, I am trying to develop
one...
I installed DDK and realized that TESTCAP (DDK ´s sample) has all I
need - except that this driver doesn't capture anything (it only shows color
bars). So, I thought that all I would have to do was to change the core
function "ImageSynth" (in capxfer.c), including a screen capture method and
to make some simple changes...
I tryed GDI for capturing the screen, and likely that's
the problem. In order to debug, I commented all the code in
"ImageSynth", except the following commands, but I have no success (the
driver is successfully compiled and installed, but Windows shows a message
"Windows cannot load the device driver for this hardware. The driver may be
corrupted or missing. (Code 39)".
void ImageSynth (
IN OUT PHW_STREAM_REQUEST_BLOCK pSrb,
IN ImageXferCommands Command,
IN BOOL FlipHorizontal
)
{
// IF THE FOLLOWING COMMANDS ARE COMMENTED, DRIVER WORKS FINE!
HDC hdcScreen;
hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL);
DeleteDC(hdcScreen);
}
Does anybody could help me? What I need to do?
Thanks in advance.
Alex