Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating specialized data types for API calls
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Creating specialized data types for API calls
Miscellaneous
Thread ID:
00601921
Message ID:
00601921
Views:
50
If I wanted to call the Windows API function CreateDirectory, I would need to pass a variable of type SECURITY_ATTRIBUTES as one of the parameters. Now in C I would typically do a TYPEDEF to define a structure consisting of three elements: a long typically called nLength, a long pointer to a security descriptor typically called lpSecurityDescriptor, and a long typically called BInheritHandle.

Now I often find myself going around the moon to visit my next-door neighbor, so I wanted to ask if anyone had experience calling the CreateDirectory API from Visual Foxpro 5/6/7 or if anyone had experience creating a custom structure suitable to call a function requiring a specially-typed parameter.
Next
Reply
Map
View

Click here to load this message in the networking platform