Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy API Question?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00258567
Message ID:
00259185
Views:
23
>>>>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 :)

Hi Bruce, It isn't that USER32 is wrong (it isn't), just unnecessary. The easiest way I know to avoid spelling and/or case mistakes when dealing with the API is to simply copy the declaration from either the Win32 SDK or the MSDN Library. Quite frankly, I can never remember the entire list of what's searched. If I find that it can't find the entry point, then I my first reaction is to check what the import library is and use that.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform