Currently I am playing around with TWAIN to get video data from my WebCam. If people ever complained about DirectX: Go and try TWAIN, then you know what is complicated (The whole interface consists of ONE SINGLE FUNCTION).
So far, I made it right up to the point where you capture a single image (just like you would do with a scanner). The docs say that in native XFer mode the source returns a valid bitmap handle.
Alright, but I can't do ANYTHING with that thing (like GetObject() or SelectObject()) and the TACKER_32 sample application does something REALLY EVIL with that handle:
[code]
lpDib = (LPBITMAPINFOHEADER)GlobalLock(hDib);
[/code]
Am I right? Do they really cast the bitmap handle to a LPBITMAPINFOHEADER? Is that valid? Is that the right and compatible way of doing that?
Maybe one of you guys can shed some light into this darkness...
Thanks,
Alex