>>>Just tried this and working :
>>>
>>>
declare integer GetDesktopWindow in user32.dll
>>>hWnd = GetDesktopWindow()
>>>? hWnd
Cetin
>>
>>Just got it, too. Many thanks, Cetin, I still had the cap 'T' declaration stuck in memory :)
>
>Hi Bruce,
>
>How'd I miss this one< g >? Seriously, you don't need user32. It's among the dlls search by indicating Win32api in the declaration.
Hi George - Of course you're right. I thought there was a problem with win32api declaration, but of course it was due to my dumb 'case' mistake. I'll change the code appropriately :)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.