I am trying to create a window (not a WinForm) using CreateWindowEx and RegisterClass. I have figured out how to use CreateWindowEx, but I am stuck on a few things with RegisterClass. In the WNDCLASS struct, how do I set these:
WNDPROC lpfnWndProc It is a handle to the WndProc method that I want to have in C#.
HINSTANCE hInstance What is this a handle to? What is the "instance" in this case?
Thanks!