在VC6.0中如何调用printwindow函数
[DllImport("user32.dll")]
private static extern bool PrintWindow(IntPtr hwnd, IntPtr hdcBlt, uint nFlags);
直接如此定义,然后如下调用好像不行
HINSTANCE hInst;
hInst = LoadLibrary("user32.dll");//动态加载DLL
typedef bool (*pPrintWindow)(HWND hWnd, HDC hDC, unsigned int nFlags);//定义函数指针类型
pPrintWindow p = (pPrintWindow)GetProcAddress(hInst,"PrintWindow");
谁在VC6.0下用过printwindow这个函数,指导下,谢谢