VB6: Form-less app's hwnd
-
No window means no hWnd either. What are you trying to do? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
No window means no hWnd either. What are you trying to do? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
I'm trying to make a screensaver... Wait, let me rephrase that: I swear I'm trying to make a screensaver. With this program, you'll be able to set whatever program to run when the ssvr execs (using the Shell function) or whatever file, to be loaded by the system (using the ShellExecuteEx function, that needs an hWnd to execute). So... Pablo.ar
-
I'm trying to make a screensaver... Wait, let me rephrase that: I swear I'm trying to make a screensaver. With this program, you'll be able to set whatever program to run when the ssvr execs (using the Shell function) or whatever file, to be loaded by the system (using the ShellExecuteEx function, that needs an hWnd to execute). So... Pablo.ar
I still don't know why you need a hWnd to a window that doesn't exist. Why are you trying to get this? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
I'm trying to make a screensaver... Wait, let me rephrase that: I swear I'm trying to make a screensaver. With this program, you'll be able to set whatever program to run when the ssvr execs (using the Shell function) or whatever file, to be loaded by the system (using the ShellExecuteEx function, that needs an hWnd to execute). So... Pablo.ar
Ok I got what you're looking for. Try using a handle to another window that is actually availible. I mean that i.e. use the GetForgroundWindow() API to get an availible handle and pass it to ShellExecute. Or you can use the handle to the Desktop window, etc. Hope it helps.
-
Ok I got what you're looking for. Try using a handle to another window that is actually availible. I mean that i.e. use the GetForgroundWindow() API to get an availible handle and pass it to ShellExecute. Or you can use the handle to the Desktop window, etc. Hope it helps.