Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wininet INTERNET_CONNECT_FLAG_PASSIVE
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00527258
Message ID:
00527319
Views:
41
>Hi
>
>I'not sure what th setting should be to ensure that my ftp connection is passive.
>
>In the wininet.h INTERNET_CONNECT_FLAG_PASSIVE is set to 0x08000000
>
>so what should that be set to in a foxpro prg.
>
>This is using Robert Abrams foxpro ftp class from the download section.
>
>Thanks
>
>
>Nick Mason

Nick,

You should be able to use it just like that. 0x08000000 is already in hex format (the leading 0x indicates to VFP that the value following is to be interpreted as a hex value), so you could use something like
#DEFINE INTERNET_CONNECT_FLAG_PASSIVE  0x08000000
Then, in your code, just reference INTERNET_CONNECT_FLAG_PASSIVE.

HTH,
Scott
Scott King
The Support Source Corporation
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform