I'm trying to get the right call to get FindWindow to work with a null parameter as the Window Name.
Dim hw&, aClass as ASCIIZ *256, aWindowName as ASCIIZ*256
aClass = "SOME_CLASS_NAME"
hw = FindWindow(aClass, aWindowName)
I seem to be getting a zero window handle even though my class name is valid and an actively loaded app at the time. How do you pass a null string to the FindWindows API from PowerBasic?
From MSDN:
lpWindowName
[in] Pointer to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.
------------------
Patrick White
Dim hw&, aClass as ASCIIZ *256, aWindowName as ASCIIZ*256
aClass = "SOME_CLASS_NAME"
hw = FindWindow(aClass, aWindowName)
I seem to be getting a zero window handle even though my class name is valid and an actively loaded app at the time. How do you pass a null string to the FindWindows API from PowerBasic?
From MSDN:
lpWindowName
[in] Pointer to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.
------------------
Patrick White
Comment