Hello. I can pInvoke "GetDC" with NULL or "IntPtr.Zero" and get the
hDC for the entire screen. I can use the hDC for stuff like "GetPixel"
and it works fine.
When I try to do the...
System.Drawing.Graphics myDC =
System.Drawing.Graphics.FromHwnd(IntPtr.Zero);
then a "myDC.GetHdc()" and use that with "GetPixel" it doesn't seem to
work.
If I do the ".FromHwnd(myGameHwnd);" then use the "myDC.GetHdc()" with
the "GetPixel" it works fine.
is there a way for me to use the managed "System.Drawing.Graphics" to
get a hDC for the entire screen like the pInvoke "GetDC" does?
Thanks