I am trying to extend PythonWin and need the applications HINSTANCE (for example, the first argument passed to WinMain). Anyone know how I can get it? In case it matters, I am writing the extension module in C++. gw.