Getting a hWnd from a PID??

Blitz3D Forums/Blitz3D Programming/Getting a hWnd from a PID??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi Syco.

EnumWindows can be found in user32.dll, it requires 2 param's these are as follows.

1) lpEnumFunc, this defines a pointer to callback function.
2) lParam, this is application defined value passed to the callback function.

first we have a problem when trying to setup the lpEnumFunc from within blitz3d, we simply cant get the address in memory of a blitz3d function. so we would be required to setup the call within our own created .dll

i have wrote the orginal winblitz3d using standard blitz3d source and hacked into it a simple winproc using a bank, although this realy is a pain in the backside to realy get any use from it.

if you require any more info/help getting this setup from within a .dll i try and help all i can.

kev