| |
|
|
 Rolf Koch | Mit dieser Prozedur kann man das Handle des Desktops sicher ermitteln. Zuerst Internet Explorer_Server abfragen (per Webdesktop) und wenn dieser nicht existiert den Standart: SysListView32
Def XFindWindow(2) ! user32,FindWindowA
Def FindWindowEx(4) ! user32,FindWindowExA
Proc GetDesktop
Declare h&
h& = XFindWindow(Progman,0)
h& = FindWindowEx(h&, 0, SHELLDLL_DefView,0)
h& = FindWindowEx(h&, 0, Internet Explorer_Server,0)
if h& > 0
Return h&
else
h& = XFindWindow(Progman,0)
h& = FindWindowEx(h&, 0, SHELLDLL_DefView,0)
h& = FindWindowEx(h&, 0, SysListView32,0)
Return h&
endif
EndProc
|
|
|
| |
|
|
|
 |
getDesktop{
return If(findWindowEx(findWindowEx(FindWindowEx(,,progman,),,SHELLDLL_DefView,),,Internet Explorer_Server,)>0,findWindowEx(findWindowEx(findWindowEx(,,progman,),,SHELLDLL_DefView,),,Internet Explorer_Server,),findWindowEx(findWindowEx(findWindowEx(,,progman,),,SHELLDLL_DefView,),,SysListView32,))
}
|
|
|
| |
|
|
|
 Michael Wodrich | ...und mit Headerdatei dann so
$H Windows.ph
Proc Getdesktop
Return If(~FindWindowExA(~FindWindowExA(~FindWindowExA(0,0,progman,0),0,SHELLDLL_DefView,0),0,Internet Explorer_Server,0)>0,~FindWindowExA(~FindWindowExA(~FindWindowExA(0,0,progman,0),0,SHELLDLL_DefView,0),0,Internet Explorer_Server,0),~FindWindowExA(~FindWindowExA(~FindWindowExA(0,0,progman,0),0,SHELLDLL_DefView,0),0,SysListView32,0))
Endproc
 |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 03.07.2005 ▲ |
|
|
|