Window Handles

I am making a simple Python wrapper around Windows DirectX API (and yes, I
know about PyGame and different OpenGL ports...) and it is progressing fine.
But I have one problem: I want it to be able to integrate with wxPython so
it can use wxPython windows for drawing. For that I need the handle (HWND in
Windows C-API) of the window. I know that I can get it with
wxWindow.GetHandle() function, but in Python this is an integer.

My guess is that that integer is the address of the real HWND (basically a
void pointer), but I am not sure. So the question is: what is a safe and
robust way to get and use that handle inside my extension?

ยทยทยท

--
Heikki Salo
heikki_salo@sci.fi