obtain hwnd from dll

Is it possible to obtain the HWND value for the parent window created when using a DLL? I'm currently developing a simple game engine that is extended by python as a way to force my self to learn python (and have fun while doing it) I need the hwnd for direct input but I have no idea how to get it in a dll...I am not using MFC i might add.


EDIT: never mind, figured out what I needed to do, I was completely forgetting that my engines API creates a window through directX and I should pass that hwnd to the direct input init functions :P
Last edited on
Just in case, from MSDN: "The use of DirectInput for keyboard and mouse input is not recommended, Windows messages should be used instead".
I'm trying to avoid windows messages, I'd avoid the winAPI all together if I could get arround it without third party libraries, but this is of course impossible without writing my own low level interface with the hardware in windows, which I dont think is possible let a lone an easy task.
Topic archived. No new replies allowed.