The third param 'wParam' actually in win32 api : typedef UINT_PTR WPARAM;
Here If I set it to pointer type can work in some event-process like as follow, others DefWindowProc process can't work:
gdi32.SetTextColor(wParam,0x0080ff);
If I set it to int32 type, then SetTextColor can't work, but DefWindowProc will be ok.
How can I cast a pointer to Int32 or Int32 to pointer?
I use ref and ffi to process a win32
The third param 'wParam' actually in win32 api : typedef UINT_PTR WPARAM; Here If I set it to
pointer
type can work in some event-process like as follow, others DefWindowProc process can't work:If I set it to
int32
type, then SetTextColor can't work, but DefWindowProc will be ok.How can I cast a pointer to Int32 or Int32 to pointer?