"Johan Dahlin" jdahlin@gmail.com wrote:
+typedef HRESULT WINAPI (*DLLREGISTER) (void); +typedef HRESULT WINAPI (*DLLINSTALL) (BOOL,LPCWSTR);
This is still not right, have a look at other places that use pointers to the exported win32 APIs.
Please use 4 spaces as an indentation like existing code does, here and everywhere else.
Why not use just 'void *' as a type for proc, since that's what you are casting it to and returning to the caller anyway? Also using 'VOID' instead of 'void' is not justified.