You can pass that to the DLL or use the FindWindow function to get the handle.