Would this be legal? (HINSTANCE)
Would it be legal to pass an HINSTANCE, and more specifically, the application''s HINSTANCE to a another function by value? I mean, of course it would compile but would the recieving function then have a handle to the application''s instance, or just some copy of an HINSTANCE that it can''t use?
Yes, it is legal. Think of all the times you have to pass a handle of some sort into Windows...
This is how WinMain defined:
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPCTSTR, int );
and HINSTANCE is passed by value.
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPCTSTR, int );
and HINSTANCE is passed by value.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement