Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with API calls
Message
From
21/03/1998 13:34:04
 
 
To
21/03/1998 12:05:17
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00086206
Message ID:
00086209
Views:
24
>Looking for help with this win32 API call? Although I understand the concept of pointers and structures, I don't understand the meaning of 'IN' and 'OUT' in this definition. Is 'OUT LPDWORD lpdwConnection' a pointer to a double word that will receive some type of connection handle? If so, how do I implement it.

IN means that is an input parameter (ie the info contained by the variable is provided to the function and the function is not supposed to return a value into this variable)

OUT - output parameter (ie the function will return useful info into this variable)

Both IN and OUT are just to document the function and this tells you that the OUT param should be declared (and passed) by reference. You do this correctly for the declaration, but you must also pass those params by reference. Besides that, all params that are of any type starting with LP or P, are pointers and must be also declared and passed by reference.

The LPDWORD param must be declared as @ INTEGER and passed @lnSession. From the info you provide about this function, I believe that this is the param where you'll find the connection handle if the function returns succesful. If you don't pass it by reference, the param will not be changed, so, you don't have the connection handle.

>Is there a good resource available for help in using foxpro to make win32 api calls?

1. MSDN
2. The Win32API.hlp shipped with VFP3
3. The help shipped with Visual Studio
4. Books, etc

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform