CWinApp::m_hInstance

Remarks

Corresponds to the hInstance parameter passed by Windows to WinMain. The m_hInstance data member is a handle to the current instance of the application running under Windows. This is returned by AfxGetInstanceHandle.