Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the value of a Constant?
Message
De
18/03/2005 09:48:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/03/2005 09:40:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00997227
Message ID:
00997233
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>The lAccess value of the FtpOpenFile API shows that the only valid values are GENERIC_READ and GENERIC_WRITE.
>
>OK, so where I can find the value of GENERIC_READ?
>
>DECLARE INTEGER FtpOpenFile IN wininet;
> INTEGER hFtpSession,;
> STRING sFileName,;
> INTEGER lAccess,;
> INTEGER lFlags,;
> INTEGER lContext
>
>Parameters:
>
>hConnect
>[in] Valid HINTERNET handle to an FTP session.
>
>lpszFileName
>[in] Pointer to a null-terminated string that contains the name of the file to access on the remote system.
>
>dwAccess
>[in] Unsigned long integer value that determines how the file will be accessed. This can be GENERIC_READ or GENERIC_WRITE, but not both.
#define MAX_PATH 260
#define NO_ERROR  0
#define ERROR_INTERNET_EXTENDED_ERROR 12003
#define ERROR_NO_MORE_FILES  18
#define FILE_ATTRIBUTE_READONLY  0x1
#define FILE_ATTRIBUTE_HIDDEN  0x2
#define FILE_ATTRIBUTE_SYSTEM  0x4
#define FILE_ATTRIBUTE_DIRECTORY  0x10
#define FILE_ATTRIBUTE_ARCHIVE  0x20
#define FILE_ATTRIBUTE_NORMAL  0x80
#define FILE_ATTRIBUTE_TEMPORARY  0x100
#define FILE_ATTRIBUTE_COMPRESSED  0x800
#define FILE_ATTRIBUTE_OFFLINE  0x1000
#define INTERNET_FLAG_PASSIVE  0x8000000
#define INTERNET_FLAG_RELOAD  0x80000000
#define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
#define FORMAT_MESSAGE_IGNORE_INSERTS  0x00000200
#define FORMAT_MESSAGE_FROM_STRING     0x00000400
#define FORMAT_MESSAGE_FROM_HMODULE    0x00000800
#define FORMAT_MESSAGE_FROM_SYSTEM     0x00001000
#define FORMAT_MESSAGE_ARGUMENT_ARRAY  0x00002000
#define FORMAT_MESSAGE_MAX_WIDTH_MASK  0x000000FF
#define INTERNET_OPEN_TYPE_PRECONFIG  0
#define INTERNET_INVALID_PORT_NUMBER  0
#define INTERNET_SERVICE_FTP  1
#define FTP_TRANSFER_TYPE_BINARY  0x2
#define FTP_TRANSFER_TYPE_ASCII  0x1
#define GENERIC_WRITE 0x40000000
#define GENERIC_READ 0x80000000
#define GENERIC_EXECUTE 0x20000000
#define GENERIC_ALL 0x10000000

#define INTERNET_DEFAULT_FTP_PORT       21          && default for FTP servers
#define INTERNET_DEFAULT_GOPHER_PORT    70          &&    "     "  gopher "
#define INTERNET_DEFAULT_HTTP_PORT      80          &&    "     "  HTTP   "
#define INTERNET_DEFAULT_HTTPS_PORT     443         &&    "     "  HTTPS  "
#define INTERNET_DEFAULT_SOCKS_PORT     1080        && default for SOCKS firewall servers.
Original header file is wininet.h as far as I remember.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform