I'm writing a tool to get a Screen Shot in Diablo II: Resurrected which uses D3D12.
But I failed with using API in gdi32.dll like
bool PrintWindow(
IntPtr hwnd, // Window to copy,Handle to the window that will be copied.
IntPtr hdcBlt, // HDC to print into,Handle to the device context.
UInt32 nFlags // Optional flags,Specifies the drawing options. It can be one of the following values.
);
I'm not well experienced actually in D3D12.
I'm writing a tool to get a Screen Shot in Diablo II: Resurrected which uses D3D12.
But I failed with using API in gdi32.dll like
bool PrintWindow( IntPtr hwnd, // Window to copy,Handle to the window that will be copied.
IntPtr hdcBlt, // HDC to print into,Handle to the device context.
UInt32 nFlags // Optional flags,Specifies the drawing options. It can be one of the following values.
);
It gives me a whole black image....
So what should I do?
Thanks for help...