返回的类型不对,
COLORREF GetPixel(
HDC hdc, // handle to DC
int nXPos, // x-coordinate of pixel
int nYPos // y-coordinate of pixel
);
返回的应该是Colorref 即指针。
COLORREF GetPixel(
HDC hdc, // handle to DC
int nXPos, // x-coordinate of pixel
int nYPos // y-coordinate of pixel
);
返回的应该是Colorref 即指针。
<Root>\SDK\v1.1\Samples\Technologies\Interop\PlatformInvoke