I was tasked with opening an auxiliary window from a C++ application. The C++ application opens the original window through OpenGL and I would like to open an additional window using something like this: http://winapi.foosyerdoos.org.uk/code/usercntrls/htm/simplewnd.php
The original application's main entry point is through main(..){}
From within which I would like to call this function
int WINAPI WinMain2(HINSTANCE hInst,HINSTANCE,LPSTR pStr,int nCmd)
However, how would I initialize or retrieve the variables, hInst, etc. required to create this window?
I need the two windows to be able to exchange data, variables, etc.