home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
WININET.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
45KB
|
1,070 lines
//----------------------------------------------------------------------------
// WinInet.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: WinInet.pas
//----------------------------------------------------------------------------
#ifndef WinInetHPP
#define WinInetHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Wininet
{
//-- type declarations -------------------------------------------------------
typedef void *HINTERNET;
typedef void * *PHINTERNET;
typedef Word INTERNET_PORT;
typedef Word *PINTERNET_PORT;
struct TInternetAsyncResult;
typedef TInternetAsyncResult *PInternetAsyncResult;
#pragma pack(push, 1)
struct TInternetAsyncResult
{
int dwResult;
int dwError;
} ;
#pragma pack(pop)
typedef void *TFNInternetStatusCallback;
typedef void * *PFNInternetStatusCallback;
struct TGopherFindData;
typedef TGopherFindData *PGopherFindData;
#pragma pack(push, 1)
struct TGopherFindData
{
wchar_t DisplayString[128];
int GopherType;
int SizeLow;
int SizeHigh;
FILETIME LastModificationTime;
wchar_t Locator[653];
} ;
#pragma pack(pop)
struct TGopherAdminAttributeType;
typedef TGopherAdminAttributeType *PGopherAdminAttributeType;
#pragma pack(push, 1)
struct TGopherAdminAttributeType
{
char *Comment;
char *EmailAddress;
} ;
#pragma pack(pop)
struct TGopherModDateAttributeType;
typedef TGopherModDateAttributeType *PGopherModDateAttributeType;
#pragma pack(push, 1)
struct TGopherModDateAttributeType
{
FILETIME DateAndTime;
} ;
#pragma pack(pop)
struct TGopherTtlAttributeType;
typedef TGopherTtlAttributeType *PGopherTtlAttributeType;
#pragma pack(push, 1)
struct TGopherTtlAttributeType
{
int Ttl;
} ;
#pragma pack(pop)
struct TGopherScoreAttributeType;
typedef TGopherScoreAttributeType *PGopherScoreAttributeType;
#pragma pack(push, 1)
struct TGopherScoreAttributeType
{
int Score;
} ;
#pragma pack(pop)
struct TGopherScoreRangeAttributeType;
typedef TGopherScoreRangeAttributeType *PGopherScoreRangeAttributeType;
#pragma pack(push, 1)
struct TGopherScoreRangeAttributeType
{
int LowerBound;
int UpperBound;
} ;
#pragma pack(pop)
struct TGopherSiteAttributeType;
typedef TGopherSiteAttributeType *PGopherSiteAttributeType;
#pragma pack(push, 1)
struct TGopherSiteAttributeType
{
char *Site;
} ;
#pragma pack(pop)
struct TGopherOrganizationAttributeType;
typedef TGopherOrganizationAttributeType *PGopherOrganizationAttributeType;
#pragma pack(push, 1)
struct TGopherOrganizationAttributeType
{
char *Organization;
} ;
#pragma pack(pop)
struct TGopherLocationAttributeType;
typedef TGopherLocationAttributeType *PGopherLocationAttributeType;
#pragma pack(push, 1)
struct TGopherLocationAttributeType
{
char *Location;
} ;
#pragma pack(pop)
struct TGopherGeographicalLocationAttributeType;
typedef TGopherGeographicalLocationAttributeType *PGopherGeographicalLocationAttributeType;
#pragma pack(push, 1)
struct TGopherGeographicalLocationAttributeType
{
int DegreesNorth;
int MinutesNorth;
int SecondsNorth;
int DegreesEast;
int MinutesEast;
int SecondsEast;
} ;
#pragma pack(pop)
struct TGopherTimezoneAttributeType;
typedef TGopherTimezoneAttributeType *PGopherTimezoneAttributeType;
#pragma pack(push, 1)
struct TGopherTimezoneAttributeType
{
int Zone;
} ;
#pragma pack(pop)
struct TGopherProviderAttributeType;
typedef TGopherProviderAttributeType *PGopherProviderAttributeType;
#pragma pack(push, 1)
struct TGopherProviderAttributeType
{
char *Provider;
} ;
#pragma pack(pop)
struct TGopherVersionAttributeType;
typedef TGopherVersionAttributeType *PGopherVersionAttributeType;
#pragma pack(push, 1)
struct TGopherVersionAttributeType
{
char *Version;
} ;
#pragma pack(pop)
struct TGopherAbstractAttributeType;
typedef TGopherAbstractAttributeType *PGopherAbstractAttributeType;
#pragma pack(push, 1)
struct TGopherAbstractAttributeType
{
char *ShortAbstract;
char *AbstractFile;
} ;
#pragma pack(pop)
struct TGopherViewAttributeType;
typedef TGopherViewAttributeType *PGopherViewAttributeType;
#pragma pack(push, 1)
struct TGopherViewAttributeType
{
char *ContentType;
char *Language;
int Size;
} ;
#pragma pack(pop)
struct TGopherVeronicaAttributeType;
typedef TGopherVeronicaAttributeType *PGopherVeronicaAttributeType;
#pragma pack(push, 1)
struct TGopherVeronicaAttributeType
{
DWord TreeWalk;
} ;
#pragma pack(pop)
struct TGopherAskAttributeType;
typedef TGopherAskAttributeType *PGopherAskAttributeType;
#pragma pack(push, 1)
struct TGopherAskAttributeType
{
char *QuestionType;
char *QuestionText;
} ;
#pragma pack(pop)
struct TGopherUnknownAttributeType;
typedef TGopherUnknownAttributeType *PGopherUnknownAttributeType;
#pragma pack(push, 1)
struct TGopherUnknownAttributeType
{
char *Text;
} ;
#pragma pack(pop)
struct TGopherAttributeType;
typedef TGopherAttributeType *PGopherAttributeType;
#pragma pack(push, 1)
struct TGopherAttributeType
{
int CategoryId;
int AttributeId;
union
{
TGopherUnknownAttributeType Unknown;
TGopherAskAttributeType Ask;
TGopherVeronicaAttributeType Veronica;
TGopherViewAttributeType View;
TGopherAbstractAttributeType Abstract;
TGopherVersionAttributeType Version;
TGopherProviderAttributeType Provider;
TGopherTimezoneAttributeType TimeZone;
TGopherGeographicalLocationAttributeType GeographicalLocation;
TGopherLocationAttributeType Location;
TGopherOrganizationAttributeType Organization;
TGopherSiteAttributeType Site;
TGopherScoreRangeAttributeType ScoreRange;
TGopherScoreAttributeType Score;
TGopherTtlAttributeType Ttl;
TGopherModDateAttributeType ModDate;
TGopherAdminAttributeType Admin;
};
} ;
#pragma pack(pop)
typedef void *TFNGopherAttributeEnumerator;
typedef void * *PFNGopherAttributeEnumerator;
//-- var, const, procedure ---------------------------------------------------
#define INTERNET_INVALID_PORT_NUMBER (Byte)(0)
#define INTERNET_DEFAULT_FTP_PORT (Byte)(21)
#define INTERNET_DEFAULT_GOPHER_PORT (Byte)(70)
#define INTERNET_DEFAULT_HTTP_PORT (Byte)(80)
#define INTERNET_MAX_HOST_NAME_LENGTH (Word)(256)
#define INTERNET_MAX_USER_NAME_LENGTH (Byte)(128)
#define INTERNET_MAX_PASSWORD_LENGTH (Byte)(128)
#define INTERNET_MAX_PORT_NUMBER_LENGTH (Byte)(5)
#define INTERNET_MAX_PORT_NUMBER_VALUE (int)(65535)
#define INTERNET_MAX_PATH_LENGTH (Word)(1024)
#define INTERNET_MAX_PROTOCOL_NAME "gopher"
#define INTERNET_MAX_URL_LENGTH (Word)(1031)
#define INTERNET_KEEP_ALIVE_UNKNOWN (Shortint)(-1)
#define INTERNET_KEEP_ALIVE_ENABLED (Byte)(1)
#define INTERNET_KEEP_ALIVE_DISABLED (Byte)(0)
#define INTERNET_REQFLAG_FROM_CACHE (Byte)(1)
#define INTERNET_REQFLAG_ASYNC (Byte)(2)
#define INTERNET_FLAG_RELOAD (int)(-2147483648)
#define INTERNET_FLAG_RAW_DATA (int)(1073741824)
#define INTERNET_FLAG_EXISTING_CONNECT (int)(536870912)
#define INTERNET_FLAG_ASYNC (int)(268435456)
#define INTERNET_FLAG_PASSIVE (int)(134217728)
#define INTERNET_FLAG_DONT_CACHE (int)(67108864)
#define INTERNET_FLAG_MAKE_PERSISTENT (int)(33554432)
#define INTERNET_FLAGS_MASK (int)(-33554432)
#define INTERNET_OPTIONS_MASK (int)(33554431)
#define INTERNET_NO_CALLBACK (Byte)(0)
#define PRE_CONFIG_INTERNET_ACCESS (Byte)(0)
#define LOCAL_INTERNET_ACCESS (Byte)(1)
#define GATEWAY_INTERNET_ACCESS (Byte)(2)
#define CERN_PROXY_INTERNET_ACCESS (Byte)(3)
#define INTERNET_SERVICE_FTP (Byte)(1)
#define INTERNET_SERVICE_GOPHER (Byte)(2)
#define INTERNET_SERVICE_HTTP (Byte)(3)
#define INTERNET_OPTION_CALLBACK (Byte)(1)
#define INTERNET_OPTION_CONNECT_TIMEOUT (Byte)(2)
#define INTERNET_OPTION_CONNECT_RETRIES (Byte)(3)
#define INTERNET_OPTION_CONNECT_BACKOFF (Byte)(4)
#define INTERNET_OPTION_SEND_TIMEOUT (Byte)(5)
#define INTERNET_OPTION_CONTROL_SEND_TIMEOUT (Byte)(5)
#define INTERNET_OPTION_RECEIVE_TIMEOUT (Byte)(6)
#define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT (Byte)(6)
#define INTERNET_OPTION_DATA_SEND_TIMEOUT (Byte)(7)
#define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT (Byte)(8)
#define INTERNET_OPTION_HANDLE_TYPE (Byte)(9)
#define INTERNET_OPTION_CONTEXT_VALUE (Byte)(10)
#define INTERNET_OPTION_NAME_RES_THREAD (Byte)(11)
#define INTERNET_OPTION_READ_BUFFER_SIZE (Byte)(12)
#define INTERNET_OPTION_WRITE_BUFFER_SIZE (Byte)(13)
#define INTERNET_OPTION_GATEWAY_NAME (Byte)(14)
#define INTERNET_OPTION_ASYNC_ID (Byte)(15)
#define INTERNET_OPTION_ASYNC_PRIORITY (Byte)(16)
#define INTERNET_OPTION_ASYNC_REQUEST_COUNT (Byte)(17)
#define INTERNET_OPTION_MAXIMUM_WORKER_THREADS (Byte)(18)
#define INTERNET_OPTION_ASYNC_QUEUE_DEPTH (Byte)(19)
#define INTERNET_OPTION_WORKER_THREAD_TIMEOUT (Byte)(20)
#define INTERNET_OPTION_PARENT_HANDLE (Byte)(21)
#define INTERNET_OPTION_KEEP_CONNECTION (Byte)(22)
#define INTERNET_OPTION_REQUEST_FLAGS (Byte)(23)
#define INTERNET_FIRST_OPTION (Byte)(1)
#define INTERNET_LAST_OPTION (Byte)(22)
#define INTERNET_PRIORITY_FOREGROUND (Word)(1000)
#define INTERNET_HANDLE_TYPE_INTERNET (Byte)(1)
#define INTERNET_HANDLE_TYPE_CONNECT_FTP (Byte)(2)
#define INTERNET_HANDLE_TYPE_CONNECT_GOPHER (Byte)(3)
#define INTERNET_HANDLE_TYPE_CONNECT_HTTP (Byte)(4)
#define INTERNET_HANDLE_TYPE_FTP_FIND (Byte)(5)
#define INTERNET_HANDLE_TYPE_FTP_FIND_HTML (Byte)(6)
#define INTERNET_HANDLE_TYPE_FTP_FILE (Byte)(7)
#define INTERNET_HANDLE_TYPE_FTP_FILE_HTML (Byte)(8)
#define INTERNET_HANDLE_TYPE_GOPHER_FIND (Byte)(9)
#define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML (Byte)(10)
#define INTERNET_HANDLE_TYPE_GOPHER_FILE (Byte)(11)
#define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML (Byte)(12)
#define INTERNET_HANDLE_TYPE_HTTP_REQUEST (Byte)(13)
#define INTERNET_STATUS_RESOLVING_NAME (Byte)(10)
#define INTERNET_STATUS_NAME_RESOLVED (Byte)(11)
#define INTERNET_STATUS_CONNECTING_TO_SERVER (Byte)(20)
#define INTERNET_STATUS_CONNECTED_TO_SERVER (Byte)(21)
#define INTERNET_STATUS_SENDING_REQUEST (Byte)(30)
#define INTERNET_STATUS_REQUEST_SENT (Byte)(31)
#define INTERNET_STATUS_RECEIVING_RESPONSE (Byte)(40)
#define INTERNET_STATUS_RESPONSE_RECEIVED (Byte)(41)
#define INTERNET_STATUS_CTL_RESPONSE_RECEIVED (Byte)(42)
#define INTERNET_STATUS_CLOSING_CONNECTION (Byte)(50)
#define INTERNET_STATUS_CONNECTION_CLOSED (Byte)(51)
#define INTERNET_STATUS_HANDLE_CREATED (Byte)(60)
#define INTERNET_STATUS_REQUEST_COMPLETE (Byte)(100)
#define INTERNET_INVALID_STATUS_CALLBACK (Shortint)(-1)
#define FTP_TRANSFER_TYPE_UNKNOWN (Byte)(0)
#define FTP_TRANSFER_TYPE_ASCII (Byte)(1)
#define FTP_TRANSFER_TYPE_BINARY (Byte)(2)
#define FTP_TRANSFER_TYPE_MASK (Byte)(3)
#define MAX_GOPHER_DISPLAY_TEXT (Byte)(128)
#define MAX_GOPHER_SELECTOR_TEXT (Word)(256)
#define MAX_GOPHER_HOST_NAME (Word)(256)
#define MAX_GOPHER_LOCATOR_LENGTH (Word)(653)
#define GOPHER_TYPE_TEXT_FILE (Byte)(1)
#define GOPHER_TYPE_DIRECTORY (Byte)(2)
#define GOPHER_TYPE_CSO (Byte)(4)
#define GOPHER_TYPE_ERROR (Byte)(8)
#define GOPHER_TYPE_MAC_BINHEX (Byte)(16)
#define GOPHER_TYPE_DOS_ARCHIVE (Byte)(32)
#define GOPHER_TYPE_UNIX_UUENCODED (Byte)(64)
#define GOPHER_TYPE_INDEX_SERVER (Byte)(128)
#define GOPHER_TYPE_TELNET (Word)(256)
#define GOPHER_TYPE_BINARY (Word)(512)
#define GOPHER_TYPE_REDUNDANT (Word)(1024)
#define GOPHER_TYPE_TN3270 (Word)(2048)
#define GOPHER_TYPE_GIF (Word)(4096)
#define GOPHER_TYPE_IMAGE (Word)(8192)
#define GOPHER_TYPE_BITMAP (Word)(16384)
#define GOPHER_TYPE_MOVIE (int)(32768)
#define GOPHER_TYPE_SOUND (int)(65536)
#define GOPHER_TYPE_HTML (int)(131072)
#define GOPHER_TYPE_PDF (int)(262144)
#define GOPHER_TYPE_CALENDAR (int)(524288)
#define GOPHER_TYPE_INLINE (int)(1048576)
#define GOPHER_TYPE_UNKNOWN (int)(536870912)
#define GOPHER_TYPE_ASK (int)(1073741824)
#define GOPHER_TYPE_GOPHER_PLUS (int)(-2147483648)
#define GOPHER_TYPE_FILE_MASK (int)(2093681)
#define MAX_GOPHER_CATEGORY_NAME (Byte)(128)
#define MAX_GOPHER_ATTRIBUTE_NAME (Byte)(128)
#define MIN_GOPHER_ATTRIBUTE_LENGTH (Word)(256)
#define GOPHER_INFO_CATEGORY "+INFO"
#define GOPHER_ADMIN_CATEGORY "+ADMIN"
#define GOPHER_VIEWS_CATEGORY "+VIEWS"
#define GOPHER_ABSTRACT_CATEGORY "+ABSTRACT"
#define GOPHER_VERONICA_CATEGORY "+VERONICA"
#define GOPHER_ADMIN_ATTRIBUTE "Admin"
#define GOPHER_MOD_DATE_ATTRIBUTE "Mod-Date"
#define GOPHER_TTL_ATTRIBUTE "TTL"
#define GOPHER_SCORE_ATTRIBUTE "Score"
#define GOPHER_RANGE_ATTRIBUTE "Score-range"
#define GOPHER_SITE_ATTRIBUTE "Site"
#define GOPHER_ORG_ATTRIBUTE "Org"
#define GOPHER_LOCATION_ATTRIBUTE "Loc"
#define GOPHER_GEOG_ATTRIBUTE "Geog"
#define GOPHER_TIMEZONE_ATTRIBUTE "TZ"
#define GOPHER_PROVIDER_ATTRIBUTE "Provider"
#define GOPHER_VERSION_ATTRIBUTE "Version"
#define GOPHER_ABSTRACT_ATTRIBUTE "Abstract"
#define GOPHER_VIEW_ATTRIBUTE "View"
#define GOPHER_TREEWALK_ATTRIBUTE "treewalk"
#define GOPHER_ATTRIBUTE_ID_BASE (int)(-1412641792)
#define GOPHER_CATEGORY_ID_ALL (int)(-1412641791)
#define GOPHER_CATEGORY_ID_INFO (int)(-1412641790)
#define GOPHER_CATEGORY_ID_ADMIN (int)(-1412641789)
#define GOPHER_CATEGORY_ID_VIEWS (int)(-1412641788)
#define GOPHER_CATEGORY_ID_ABSTRACT (int)(-1412641787)
#define GOPHER_CATEGORY_ID_VERONICA (int)(-1412641786)
#define GOPHER_CATEGORY_ID_ASK (int)(-1412641785)
#define GOPHER_CATEGORY_ID_UNKNOWN (int)(-1412641784)
#define GOPHER_ATTRIBUTE_ID_ALL (int)(-1412641783)
#define GOPHER_ATTRIBUTE_ID_ADMIN (int)(-1412641782)
#define GOPHER_ATTRIBUTE_ID_MOD_DATE (int)(-1412641781)
#define GOPHER_ATTRIBUTE_ID_TTL (int)(-1412641780)
#define GOPHER_ATTRIBUTE_ID_SCORE (int)(-1412641779)
#define GOPHER_ATTRIBUTE_ID_RANGE (int)(-1412641778)
#define GOPHER_ATTRIBUTE_ID_SITE (int)(-1412641777)
#define GOPHER_ATTRIBUTE_ID_ORG (int)(-1412641776)
#define GOPHER_ATTRIBUTE_ID_LOCATION (int)(-1412641775)
#define GOPHER_ATTRIBUTE_ID_GEOG (int)(-1412641774)
#define GOPHER_ATTRIBUTE_ID_TIMEZONE (int)(-1412641773)
#define GOPHER_ATTRIBUTE_ID_PROVIDER (int)(-1412641772)
#define GOPHER_ATTRIBUTE_ID_VERSION (int)(-1412641771)
#define GOPHER_ATTRIBUTE_ID_ABSTRACT (int)(-1412641770)
#define GOPHER_ATTRIBUTE_ID_VIEW (int)(-1412641769)
#define GOPHER_ATTRIBUTE_ID_TREEWALK (int)(-1412641768)
#define GOPHER_ATTRIBUTE_ID_UNKNOWN (int)(-1412641767)
#define HTTP_TCPIP_PORT (Byte)(80)
#define HTTP_MAJOR_VERSION (Byte)(1)
#define HTTP_MINOR_VERSION (Byte)(0)
#define HTTP_VERSION "HTTP/1"
#define HTTP_QUERY_MIN (Byte)(0)
#define HTTP_QUERY_MIME_VERSION (Byte)(0)
#define HTTP_QUERY_CONTENT_TYPE (Byte)(1)
#define HTTP_QUERY_CONTENT_TRANSFER_ENCODING (Byte)(2)
#define HTTP_QUERY_CONTENT_ID (Byte)(3)
#define HTTP_QUERY_CONTENT_DESCRIPTION (Byte)(4)
#define HTTP_QUERY_CONTENT_LENGTH (Byte)(5)
#define HTTP_QUERY_CONTENT_LANGUAGE (Byte)(6)
#define HTTP_QUERY_ALLOW (Byte)(7)
#define HTTP_QUERY_PUBLIC (Byte)(8)
#define HTTP_QUERY_DATE (Byte)(9)
#define HTTP_QUERY_EXPIRES (Byte)(10)
#define HTTP_QUERY_LAST_MODIFIED (Byte)(11)
#define HTTP_QUERY_MESSAGE_ID (Byte)(12)
#define HTTP_QUERY_URI (Byte)(13)
#define HTTP_QUERY_DERIVED_FROM (Byte)(14)
#define HTTP_QUERY_COST (Byte)(15)
#define HTTP_QUERY_LINK (Byte)(16)
#define HTTP_QUERY_PRAGMA (Byte)(17)
#define HTTP_QUERY_VERSION (Byte)(18)
#define HTTP_QUERY_STATUS_CODE (Byte)(19)
#define HTTP_QUERY_STATUS_TEXT (Byte)(20)
#define HTTP_QUERY_RAW_HEADERS (Byte)(21)
#define HTTP_QUERY_RAW_HEADERS_CRLF (Byte)(22)
#define HTTP_QUERY_CONNECTION (Byte)(23)
#define HTTP_QUERY_MAX (Byte)(23)
#define HTTP_STATUS_OK (Byte)(200)
#define HTTP_STATUS_CREATED (Byte)(201)
#define HTTP_STATUS_ACCEPTED (Byte)(202)
#define HTTP_STATUS_PARTIAL (Byte)(203)
#define HTTP_STATUS_MOVED (Word)(301)
#define HTTP_STATUS_REDIRECT (Word)(302)
#define HTTP_STATUS_REDIRECT_METHOD (Word)(303)
#define HTTP_STATUS_BAD_REQUEST (Word)(400)
#define HTTP_STATUS_DENIED (Word)(401)
#define HTTP_STATUS_PAYMENT_REQ (Word)(402)
#define HTTP_STATUS_FORBIDDEN (Word)(403)
#define HTTP_STATUS_NOT_FOUND (Word)(404)
#define HTTP_STATUS_SERVER_ERROR (Word)(500)
#define HTTP_STATUS_NOT_SUPPORTED (Word)(501)
#define INTERNET_ERROR_BASE (Word)(12000)
#define ERROR_INTERNET_OUT_OF_HANDLES (Word)(12001)
#define ERROR_INTERNET_TIMEOUT (Word)(12002)
#define ERROR_INTERNET_EXTENDED_ERROR (Word)(12003)
#define ERROR_INTERNET_INTERNAL_ERROR (Word)(12004)
#define ERROR_INTERNET_INVALID_URL (Word)(12005)
#define ERROR_INTERNET_UNRECOGNIZED_SCHEME (Word)(12006)
#define ERROR_INTERNET_NAME_NOT_RESOLVED (Word)(12007)
#define ERROR_INTERNET_PROTOCOL_NOT_FOUND (Word)(12008)
#define ERROR_INTERNET_INVALID_OPTION (Word)(12009)
#define ERROR_INTERNET_BAD_OPTION_LENGTH (Word)(12010)
#define ERROR_INTERNET_OPTION_NOT_SETTABLE (Word)(12011)
#define ERROR_INTERNET_SHUTDOWN (Word)(12012)
#define ERROR_INTERNET_INCORRECT_USER_NAME (Word)(12013)
#define ERROR_INTERNET_INCORRECT_PASSWORD (Word)(12014)
#define ERROR_INTERNET_LOGIN_FAILURE (Word)(12015)
#define ERROR_INTERNET_INVALID_OPERATION (Word)(12016)
#define ERROR_INTERNET_OPERATION_CANCELLED (Word)(12017)
#define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (Word)(12018)
#define ERROR_INTERNET_NOT_PROXY_REQUEST (Word)(12020)
#define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (Word)(12021)
#define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (Word)(12022)
#define ERROR_INTERNET_NO_DIRECT_ACCESS (Word)(12023)
#define ERROR_INTERNET_NO_CONTEXT (Word)(12024)
#define ERROR_INTERNET_NO_CALLBACK (Word)(12025)
#define ERROR_INTERNET_REQUEST_PENDING (Word)(12026)
#define ERROR_FTP_TRANSFER_IN_PROGRESS (Word)(12028)
#define ERROR_FTP_DROPPED (Word)(12029)
#define ERROR_GOPHER_PROTOCOL_ERROR (Word)(12030)
#define ERROR_GOPHER_NOT_FILE (Word)(12031)
#define ERROR_GOPHER_DATA_ERROR (Word)(12032)
#define ERROR_GOPHER_END_OF_DATA (Word)(12033)
#define ERROR_GOPHER_INVALID_LOCATOR (Word)(12034)
#define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (Word)(12035)
#define ERROR_GOPHER_NOT_GOPHER_PLUS (Word)(12036)
#define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (Word)(12037)
#define ERROR_GOPHER_UNKNOWN_LOCATOR (Word)(12038)
#define ERROR_HTTP_HEADER_NOT_FOUND (Word)(12040)
#define ERROR_HTTP_DOWNLEVEL_SERVER (Word)(12041)
#define ERROR_HTTP_INVALID_SERVER_RESPONSE (Word)(12042)
extern "C" DWord __stdcall FtpCommandA(void * hFtpSession, DWord fExpectResponse, int dwFlags, char *
lpszCommand, int dwContext);
extern "C" DWord __stdcall FtpCommandW(void * hFtpSession, DWord fExpectResponse, int dwFlags, wchar_t *
lpszCommand, int dwContext);
extern "C" DWord __stdcall FtpCommand(void * hFtpSession, DWord fExpectResponse, int dwFlags, char *
lpszCommand, int dwContext);
extern "C" DWord __stdcall FtpCreateDirectoryA(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall FtpCreateDirectoryW(void * hFtpSession, wchar_t * lpszDirectory);
extern "C" DWord __stdcall FtpCreateDirectory(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall FtpDeleteFileA(void * hFtpSession, char * lpszFileName);
extern "C" DWord __stdcall FtpDeleteFileW(void * hFtpSession, wchar_t * lpszFileName);
extern "C" DWord __stdcall FtpDeleteFile(void * hFtpSession, char * lpszFileName);
extern "C" void * __stdcall FtpFindFirstFileA(void * hFtpSession, char * lpszSearchFile, WIN32_FIND_DATAA
&lpFindFileData, int dwFlags, int dwContext);
extern "C" void * __stdcall FtpFindFirstFileW(void * hFtpSession, wchar_t * lpszSearchFile, WIN32_FIND_DATAW
&lpFindFileData, int dwFlags, int dwContext);
extern "C" void * __stdcall FtpFindFirstFile(void * hFtpSession, char * lpszSearchFile, WIN32_FIND_DATAA
&lpFindFileData, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpGetCurrentDirectoryA(void * hFtpSession, char * lpszCurrentDirectory,
int &lpdwCurrentDirectory);
extern "C" DWord __stdcall FtpGetCurrentDirectoryW(void * hFtpSession, wchar_t * lpszCurrentDirectory
, int &lpdwCurrentDirectory);
extern "C" DWord __stdcall FtpGetCurrentDirectory(void * hFtpSession, char * lpszCurrentDirectory, int
&lpdwCurrentDirectory);
extern "C" DWord __stdcall FtpGetFileA(void * hFtpSession, char * lpszRemoteFile, char * lpszNewFile
, DWord fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpGetFileW(void * hFtpSession, wchar_t * lpszRemoteFile, wchar_t * lpszNewFile
, DWord fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpGetFile(void * hFtpSession, char * lpszRemoteFile, char * lpszNewFile,
DWord fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext);
extern "C" void * __stdcall FtpOpenFileA(void * hFtpSession, char * lpszFileName, int dwAccess, int
dwFlags, int dwContext);
extern "C" void * __stdcall FtpOpenFileW(void * hFtpSession, wchar_t * lpszFileName, int dwAccess, int
dwFlags, int dwContext);
extern "C" void * __stdcall FtpOpenFile(void * hFtpSession, char * lpszFileName, int dwAccess, int dwFlags
, int dwContext);
extern "C" DWord __stdcall FtpPutFileA(void * hFtpSession, char * lpszLocalFile, char * lpszNewRemoteFile
, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpPutFileW(void * hFtpSession, wchar_t * lpszLocalFile, wchar_t * lpszNewRemoteFile
, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpPutFile(void * hFtpSession, char * lpszLocalFile, char * lpszNewRemoteFile
, int dwFlags, int dwContext);
extern "C" DWord __stdcall FtpRemoveDirectoryA(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall FtpRemoveDirectoryW(void * hFtpSession, wchar_t * lpszDirectory);
extern "C" DWord __stdcall FtpRemoveDirectory(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall FtpRenameFileA(void * hFtpSession, char * lpszExisting, char * lpszNew);
extern "C" DWord __stdcall FtpRenameFileW(void * hFtpSession, wchar_t * lpszExisting, wchar_t * lpszNew
);
extern "C" DWord __stdcall FtpRenameFile(void * hFtpSession, char * lpszExisting, char * lpszNew);
extern "C" DWord __stdcall FtpSetCurrentDirectoryA(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall FtpSetCurrentDirectoryW(void * hFtpSession, wchar_t * lpszDirectory);
extern "C" DWord __stdcall FtpSetCurrentDirectory(void * hFtpSession, char * lpszDirectory);
extern "C" DWord __stdcall GopherCreateLocatorA(char * lpszHost, Word nServerPort, char * lpszDisplayString
, char * lpszSelectorString, int dwGopherType, char * lpszLocator, int &lpdwBufferLength);
extern "C" DWord __stdcall GopherCreateLocatorW(wchar_t * lpszHost, Word nServerPort, wchar_t * lpszDisplayString
, wchar_t * lpszSelectorString, int dwGopherType, wchar_t * lpszLocator, int &lpdwBufferLength);
extern "C" DWord __stdcall GopherCreateLocator(char * lpszHost, Word nServerPort, char * lpszDisplayString
, char * lpszSelectorString, int dwGopherType, char * lpszLocator, int &lpdwBufferLength);
extern "C" void * __stdcall GopherFindFirstFileA(void * hGopherSession, char * lpszLocator, char * lpszSearchString
, TGopherFindData &lpFindData, int dwFlags, int dwContext);
extern "C" void * __stdcall GopherFindFirstFileW(void * hGopherSession, wchar_t * lpszLocator, wchar_t *
lpszSearchString, TGopherFindData &lpFindData, int dwFlags, int dwContext);
extern "C" void * __stdcall GopherFindFirstFile(void * hGopherSession, char * lpszLocator, char * lpszSearchString
, TGopherFindData &lpFindData, int dwFlags, int dwContext);
extern "C" DWord __stdcall GopherGetAttributeA(void * hGopherSession, char * lpszLocator, char * lpszAttributeName
, void * lpBuffer, int dwBufferLength, int &lpdwCharactersReturned, PFNGopherAttributeEnumerator lpfnEnumerator
, int dwContext);
extern "C" DWord __stdcall GopherGetAttributeW(void * hGopherSession, wchar_t * lpszLocator, wchar_t *
lpszAttributeName, void * lpBuffer, int dwBufferLength, int &lpdwCharactersReturned, PFNGopherAttributeEnumerator
lpfnEnumerator, int dwContext);
extern "C" DWord __stdcall GopherGetAttribute(void * hGopherSession, char * lpszLocator, char * lpszAttributeName
, void * lpBuffer, int dwBufferLength, int &lpdwCharactersReturned, PFNGopherAttributeEnumerator lpfnEnumerator
, int dwContext);
extern "C" DWord __stdcall GopherGetLocatorTypeA(char * lpszLocator, int &lpdwGopherType);
extern "C" DWord __stdcall GopherGetLocatorTypeW(wchar_t * lpszLocator, int &lpdwGopherType);
extern "C" DWord __stdcall GopherGetLocatorType(char * lpszLocator, int &lpdwGopherType);
extern "C" void * __stdcall GopherOpenFileA(void * hGopherSession, char * lpszLocator, char * lpszView
, int dwFlags, int dwContext);
extern "C" void * __stdcall GopherOpenFileW(void * hGopherSession, wchar_t * lpszLocator, wchar_t *
lpszView, int dwFlags, int dwContext);
extern "C" void * __stdcall GopherOpenFile(void * hGopherSession, char * lpszLocator, char * lpszView
, int dwFlags, int dwContext);
extern "C" DWord __stdcall GopherSendDataA(void * hGopherSession, char * lpszLocator, char * lpszBuffer
, int dwNumberOfCharactersToSend, int &lpdwNumberOfCharactersSent, int dwContext);
extern "C" DWord __stdcall GopherSendDataW(void * hGopherSession, wchar_t * lpszLocator, wchar_t * lpszBuffer
, int dwNumberOfCharactersToSend, int &lpdwNumberOfCharactersSent, int dwContext);
extern "C" DWord __stdcall GopherSendData(void * hGopherSession, char * lpszLocator, char * lpszBuffer
, int dwNumberOfCharactersToSend, int &lpdwNumberOfCharactersSent, int dwContext);
extern "C" DWord __stdcall HttpAddRequestHeadersA(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength
, int dwReserved);
extern "C" DWord __stdcall HttpAddRequestHeadersW(void * hHttpRequest, wchar_t * lpszHeaders, int dwHeadersLength
, int dwReserved);
extern "C" DWord __stdcall HttpAddRequestHeaders(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength
, int dwReserved);
extern "C" void * __stdcall HttpOpenRequestA(void * hHttpSession, char * lpszVerb, char * lpszObjectName
, char * lpszVersion, char * lpszReferrer, char * lplpszAcceptTypes, int dwFlags, int dwContext);
extern "C" void * __stdcall HttpOpenRequestW(void * hHttpSession, wchar_t * lpszVerb, wchar_t * lpszObjectName
, wchar_t * lpszVersion, wchar_t * lpszReferrer, wchar_t * lplpszAcceptTypes, int dwFlags, int dwContext
);
extern "C" void * __stdcall HttpOpenRequest(void * hHttpSession, char * lpszVerb, char * lpszObjectName
, char * lpszVersion, char * lpszReferrer, char * lplpszAcceptTypes, int dwFlags, int dwContext);
extern "C" DWord __stdcall HttpQueryInfoA(void * hHttpRequest, int dwInfoLevel, void * lpvBuffer, int
&lpdwBufferLength, int &lpdwReserved);
extern "C" DWord __stdcall HttpQueryInfoW(void * hHttpRequest, int dwInfoLevel, void * lpvBuffer, int
&lpdwBufferLength, int &lpdwReserved);
extern "C" DWord __stdcall HttpQueryInfo(void * hHttpRequest, int dwInfoLevel, void * lpvBuffer, int
&lpdwBufferLength, int &lpdwReserved);
extern "C" DWord __stdcall HttpSendRequestA(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength
, void * lpOptional, int dwOptionalLength);
extern "C" DWord __stdcall HttpSendRequestW(void * hHttpRequest, wchar_t * lpszHeaders, int dwHeadersLength
, void * lpOptional, int dwOptionalLength);
extern "C" DWord __stdcall HttpSendRequest(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength
, void * lpOptional, int dwOptionalLength);
extern "C" DWord __stdcall InternetCancelAsyncRequest(int dwAsyncId);
extern "C" DWord __stdcall InternetCloseHandle(void * hInet);
extern "C" void * __stdcall InternetConnectA(void * hInet, char * lpszServerName, Word nServerPort,
char * lpszUsername, char * lpszPassword, int dwService, int dwFlags, int dwContext);
extern "C" void * __stdcall InternetConnectW(void * hInet, wchar_t * lpszServerName, Word nServerPort
, wchar_t * lpszUsername, wchar_t * lpszPassword, int dwService, int dwFlags, int dwContext);
extern "C" void * __stdcall InternetConnect(void * hInet, char * lpszServerName, Word nServerPort, char *
lpszUsername, char * lpszPassword, int dwService, int dwFlags, int dwContext);
extern "C" DWord __stdcall InternetFindNextFileA(void * hFind, void * lpvFindData);
extern "C" DWord __stdcall InternetFindNextFileW(void * hFind, void * lpvFindData);
extern "C" DWord __stdcall InternetFindNextFile(void * hFind, void * lpvFindData);
extern "C" DWord __stdcall InternetGetLastResponseInfoA(int &lpdwError, char * lpszBuffer, int &lpdwBufferLength
);
extern "C" DWord __stdcall InternetGetLastResponseInfoW(int &lpdwError, wchar_t * lpszBuffer, int &lpdwBufferLength
);
extern "C" DWord __stdcall InternetGetLastResponseInfo(int &lpdwError, char * lpszBuffer, int &lpdwBufferLength
);
extern "C" void * __stdcall InternetOpenA(char * lpszCallerName, int dwAccessType, char * lpszServerName
, Word nServerPort, int dwFlags);
extern "C" void * __stdcall InternetOpenW(wchar_t * lpszCallerName, int dwAccessType, wchar_t * lpszServerName
, Word nServerPort, int dwFlags);
extern "C" void * __stdcall InternetOpen(char * lpszCallerName, int dwAccessType, char * lpszServerName
, Word nServerPort, int dwFlags);
extern "C" void * __stdcall InternetOpenUrlA(void * hInet, char * lpszUrl, char * lpszHeaders, int dwHeadersLength
, int dwFlags, int dwContext);
extern "C" void * __stdcall InternetOpenUrlW(void * hInet, wchar_t * lpszUrl, wchar_t * lpszHeaders,
int dwHeadersLength, int dwFlags, int dwContext);
extern "C" void * __stdcall InternetOpenUrl(void * hInet, char * lpszUrl, char * lpszHeaders, int dwHeadersLength
, int dwFlags, int dwContext);
extern "C" DWord __stdcall InternetQueryOption(void * hInet, int dwOption, void * lpBuffer, int &lpdwBufferLength
);
extern "C" DWord __stdcall InternetReadFile(void * hFile, void * lpBuffer, int dwNumberOfBytesToRead
, int &lpdwNumberOfBytesRead);
extern "C" DWord __stdcall InternetSetOption(void * hInet, int dwOption, void * lpBuffer, int dwBufferLength
);
extern "C" PFNInternetStatusCallback __stdcall InternetSetStatusCallback(void * hInet, PFNInternetStatusCallback
lpfnInternetCallback);
extern "C" DWord __stdcall InternetWriteFile(void * hFile, void * lpBuffer, int dwNumberOfBytesToWrite
, int &lpdwNumberOfBytesWritten);
extern DWord __fastcall IS_GOPHER_FILE(int GopherType);
extern DWord __fastcall IS_GOPHER_DIRECTORY(int GopherType);
extern DWord __fastcall IS_GOPHER_PHONE_SERVER(int GopherType);
extern DWord __fastcall IS_GOPHER_ERROR(int GopherType);
extern DWord __fastcall IS_GOPHER_INDEX_SERVER(int GopherType);
extern DWord __fastcall IS_GOPHER_TELNET_SESSION(int GopherType);
extern DWord __fastcall IS_GOPHER_BACKUP_SERVER(int GopherType);
extern DWord __fastcall IS_GOPHER_TN3270_SESSION(int GopherType);
extern DWord __fastcall IS_GOPHER_ASK(int GopherType);
extern DWord __fastcall IS_GOPHER_PLUS(int GopherType);
extern DWord __fastcall IS_GOPHER_TYPE_KNOWN(int GopherType);
#if defined(UNICODE)
inline void * __stdcall InternetOpen(wchar_t * lpszCallerName, int dwAccessType, wchar_t * lpszServerName
, Word nServerPort, int dwFlags)
{
return InternetOpenW(lpszCallerName, dwAccessType, lpszServerName, nServerPort, dwFlags);
}
#else
inline void * __stdcall InternetOpen(char * lpszCallerName, int dwAccessType, char * lpszServerName,
Word nServerPort, int dwFlags)
{
return InternetOpenA(lpszCallerName, dwAccessType, lpszServerName, nServerPort, dwFlags);
}
#endif
#if defined(UNICODE)
inline void * __stdcall InternetConnect(void * hInet, wchar_t * lpszServerName, Word nServerPort, wchar_t *
lpszUsername, wchar_t * lpszPassword, int dwService, int dwFlags, int dwContext)
{
return InternetConnectW(hInet, lpszServerName, nServerPort, lpszUsername, lpszPassword, dwService,
dwFlags, dwContext);
}
#else
inline void * __stdcall InternetConnect(void * hInet, char * lpszServerName, Word nServerPort, char *
lpszUsername, char * lpszPassword, int dwService, int dwFlags, int dwContext)
{
return InternetConnectA(hInet, lpszServerName, nServerPort, lpszUsername, lpszPassword, dwService,
dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline void * __stdcall InternetOpenUrl(void * hInet, wchar_t * lpszUrl, wchar_t * lpszHeaders, int
dwHeadersLength, int dwFlags, int dwContext)
{
return InternetOpenUrlW(hInet, lpszUrl, lpszHeaders, dwHeadersLength, dwFlags, dwContext);
}
#else
inline void * __stdcall InternetOpenUrl(void * hInet, char * lpszUrl, char * lpszHeaders, int dwHeadersLength
, int dwFlags, int dwContext)
{
return InternetOpenUrlA(hInet, lpszUrl, lpszHeaders, dwHeadersLength, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall InternetFindNextFile(void * hFind, void * lpvFindData)
{
return InternetFindNextFileW(hFind, lpvFindData);
}
#else
inline DWord __stdcall InternetFindNextFile(void * hFind, void * lpvFindData)
{
return InternetFindNextFileA(hFind, lpvFindData);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall InternetGetLastResponseInfo(int &lpdwError, wchar_t * lpszBuffer, int &lpdwBufferLength
)
{
return InternetGetLastResponseInfoW(lpdwError, lpszBuffer, lpdwBufferLength);
}
#else
inline DWord __stdcall InternetGetLastResponseInfo(int &lpdwError, char * lpszBuffer, int &lpdwBufferLength
)
{
return InternetGetLastResponseInfoA(lpdwError, lpszBuffer, lpdwBufferLength);
}
#endif
#if defined(UNICODE)
inline void * __stdcall FtpFindFirstFile(void * hFtpSession, wchar_t * lpszSearchFile, WIN32_FIND_DATAW
&lpFindFileData, int dwFlags, int dwContext)
{
return FtpFindFirstFileW(hFtpSession, lpszSearchFile, lpFindFileData, dwFlags, dwContext);
}
#else
inline void * __stdcall FtpFindFirstFile(void * hFtpSession, char * lpszSearchFile, WIN32_FIND_DATAA
&lpFindFileData, int dwFlags, int dwContext)
{
return FtpFindFirstFileA(hFtpSession, lpszSearchFile, lpFindFileData, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpGetFile(void * hFtpSession, wchar_t * lpszRemoteFile, wchar_t * lpszNewFile
, DWord fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext)
{
return FtpGetFileW(hFtpSession, lpszRemoteFile, lpszNewFile, fFailIfExists, dwFlagsAndAttributes, dwFlags
, dwContext);
}
#else
inline DWord __stdcall FtpGetFile(void * hFtpSession, char * lpszRemoteFile, char * lpszNewFile, DWord
fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext)
{
return FtpGetFileA(hFtpSession, lpszRemoteFile, lpszNewFile, fFailIfExists, dwFlagsAndAttributes, dwFlags
, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpPutFile(void * hFtpSession, wchar_t * lpszLocalFile, wchar_t * lpszNewRemoteFile
, int dwFlags, int dwContext)
{
return FtpPutFileW(hFtpSession, lpszLocalFile, lpszNewRemoteFile, dwFlags, dwContext);
}
#else
inline DWord __stdcall FtpPutFile(void * hFtpSession, char * lpszLocalFile, char * lpszNewRemoteFile
, int dwFlags, int dwContext)
{
return FtpPutFileA(hFtpSession, lpszLocalFile, lpszNewRemoteFile, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpDeleteFile(void * hFtpSession, wchar_t * lpszFileName)
{
return FtpDeleteFileW(hFtpSession, lpszFileName);
}
#else
inline DWord __stdcall FtpDeleteFile(void * hFtpSession, char * lpszFileName)
{
return FtpDeleteFileA(hFtpSession, lpszFileName);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpRenameFile(void * hFtpSession, wchar_t * lpszExisting, wchar_t * lpszNew)
{
return FtpRenameFileW(hFtpSession, lpszExisting, lpszNew);
}
#else
inline DWord __stdcall FtpRenameFile(void * hFtpSession, char * lpszExisting, char * lpszNew)
{
return FtpRenameFileA(hFtpSession, lpszExisting, lpszNew);
}
#endif
#if defined(UNICODE)
inline void * __stdcall FtpOpenFile(void * hFtpSession, wchar_t * lpszFileName, int dwAccess, int dwFlags
, int dwContext)
{
return FtpOpenFileW(hFtpSession, lpszFileName, dwAccess, dwFlags, dwContext);
}
#else
inline void * __stdcall FtpOpenFile(void * hFtpSession, char * lpszFileName, int dwAccess, int dwFlags
, int dwContext)
{
return FtpOpenFileA(hFtpSession, lpszFileName, dwAccess, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpCreateDirectory(void * hFtpSession, wchar_t * lpszDirectory)
{
return FtpCreateDirectoryW(hFtpSession, lpszDirectory);
}
#else
inline DWord __stdcall FtpCreateDirectory(void * hFtpSession, char * lpszDirectory)
{
return FtpCreateDirectoryA(hFtpSession, lpszDirectory);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpRemoveDirectory(void * hFtpSession, wchar_t * lpszDirectory)
{
return FtpRemoveDirectoryW(hFtpSession, lpszDirectory);
}
#else
inline DWord __stdcall FtpRemoveDirectory(void * hFtpSession, char * lpszDirectory)
{
return FtpRemoveDirectoryA(hFtpSession, lpszDirectory);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpSetCurrentDirectory(void * hFtpSession, wchar_t * lpszDirectory)
{
return FtpSetCurrentDirectoryW(hFtpSession, lpszDirectory);
}
#else
inline DWord __stdcall FtpSetCurrentDirectory(void * hFtpSession, char * lpszDirectory)
{
return FtpSetCurrentDirectoryA(hFtpSession, lpszDirectory);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpGetCurrentDirectory(void * hFtpSession, wchar_t * lpszCurrentDirectory, int
&lpdwCurrentDirectory)
{
return FtpGetCurrentDirectoryW(hFtpSession, lpszCurrentDirectory, lpdwCurrentDirectory);
}
#else
inline DWord __stdcall FtpGetCurrentDirectory(void * hFtpSession, char * lpszCurrentDirectory, int &
lpdwCurrentDirectory)
{
return FtpGetCurrentDirectoryA(hFtpSession, lpszCurrentDirectory, lpdwCurrentDirectory);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall FtpCommand(void * hFtpSession, DWord fExpectResponse, int dwFlags, wchar_t *
lpszCommand, int dwContext)
{
return FtpCommandW(hFtpSession, fExpectResponse, dwFlags, lpszCommand, dwContext);
}
#else
inline DWord __stdcall FtpCommand(void * hFtpSession, DWord fExpectResponse, int dwFlags, char * lpszCommand
, int dwContext)
{
return FtpCommandA(hFtpSession, fExpectResponse, dwFlags, lpszCommand, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall GopherCreateLocator(wchar_t * lpszHost, Word nServerPort, wchar_t * lpszDisplayString
, wchar_t * lpszSelectorString, int dwGopherType, wchar_t * lpszLocator, int &lpdwBufferLength)
{
return GopherCreateLocatorW(lpszHost, nServerPort, lpszDisplayString, lpszSelectorString, dwGopherType
, lpszLocator, lpdwBufferLength);
}
#else
inline DWord __stdcall GopherCreateLocator(char * lpszHost, Word nServerPort, char * lpszDisplayString
, char * lpszSelectorString, int dwGopherType, char * lpszLocator, int &lpdwBufferLength)
{
return GopherCreateLocatorA(lpszHost, nServerPort, lpszDisplayString, lpszSelectorString, dwGopherType
, lpszLocator, lpdwBufferLength);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall GopherGetLocatorType(wchar_t * lpszLocator, int &lpdwGopherType)
{
return GopherGetLocatorTypeW(lpszLocator, lpdwGopherType);
}
#else
inline DWord __stdcall GopherGetLocatorType(char * lpszLocator, int &lpdwGopherType)
{
return GopherGetLocatorTypeA(lpszLocator, lpdwGopherType);
}
#endif
#if defined(UNICODE)
inline void * __stdcall GopherFindFirstFile(void * hGopherSession, wchar_t * lpszLocator, wchar_t *
lpszSearchString, TGopherFindData &lpFindData, int dwFlags, int dwContext)
{
return GopherFindFirstFileW(hGopherSession, lpszLocator, lpszSearchString, lpFindData, dwFlags, dwContext
);
}
#else
inline void * __stdcall GopherFindFirstFile(void * hGopherSession, char * lpszLocator, char * lpszSearchString
, TGopherFindData &lpFindData, int dwFlags, int dwContext)
{
return GopherFindFirstFileA(hGopherSession, lpszLocator, lpszSearchString, lpFindData, dwFlags, dwContext
);
}
#endif
#if defined(UNICODE)
inline void * __stdcall GopherOpenFile(void * hGopherSession, wchar_t * lpszLocator, wchar_t * lpszView
, int dwFlags, int dwContext)
{
return GopherOpenFileW(hGopherSession, lpszLocator, lpszView, dwFlags, dwContext);
}
#else
inline void * __stdcall GopherOpenFile(void * hGopherSession, char * lpszLocator, char * lpszView, int
dwFlags, int dwContext)
{
return GopherOpenFileA(hGopherSession, lpszLocator, lpszView, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall GopherGetAttribute(void * hGopherSession, wchar_t * lpszLocator, wchar_t * lpszAttributeName
, void * lpBuffer, int dwBufferLength, int &lpdwCharactersReturned, PFNGopherAttributeEnumerator lpfnEnumerator
, int dwContext)
{
return GopherGetAttributeW(hGopherSession, lpszLocator, lpszAttributeName, lpBuffer, dwBufferLength
, lpdwCharactersReturned, lpfnEnumerator, dwContext);
}
#else
inline DWord __stdcall GopherGetAttribute(void * hGopherSession, char * lpszLocator, char * lpszAttributeName
, void * lpBuffer, int dwBufferLength, int &lpdwCharactersReturned, PFNGopherAttributeEnumerator lpfnEnumerator
, int dwContext)
{
return GopherGetAttributeA(hGopherSession, lpszLocator, lpszAttributeName, lpBuffer, dwBufferLength
, lpdwCharactersReturned, lpfnEnumerator, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall GopherSendData(void * hGopherSession, wchar_t * lpszLocator, wchar_t * lpszBuffer
, int dwNumberOfCharactersToSend, int &lpdwNumberOfCharactersSent, int dwContext)
{
return GopherSendDataW(hGopherSession, lpszLocator, lpszBuffer, dwNumberOfCharactersToSend, lpdwNumberOfCharactersSent
, dwContext);
}
#else
inline DWord __stdcall GopherSendData(void * hGopherSession, char * lpszLocator, char * lpszBuffer,
int dwNumberOfCharactersToSend, int &lpdwNumberOfCharactersSent, int dwContext)
{
return GopherSendDataA(hGopherSession, lpszLocator, lpszBuffer, dwNumberOfCharactersToSend, lpdwNumberOfCharactersSent
, dwContext);
}
#endif
#if defined(UNICODE)
inline void * __stdcall HttpOpenRequest(void * hHttpSession, wchar_t * lpszVerb, wchar_t * lpszObjectName
, wchar_t * lpszVersion, wchar_t * lpszReferrer, wchar_t * lplpszAcceptTypes, int dwFlags, int dwContext
)
{
return HttpOpenRequestW(hHttpSession, lpszVerb, lpszObjectName, lpszVersion, lpszReferrer, lplpszAcceptTypes
, dwFlags, dwContext);
}
#else
inline void * __stdcall HttpOpenRequest(void * hHttpSession, char * lpszVerb, char * lpszObjectName,
char * lpszVersion, char * lpszReferrer, char * lplpszAcceptTypes, int dwFlags, int dwContext)
{
return HttpOpenRequestA(hHttpSession, lpszVerb, lpszObjectName, lpszVersion, lpszReferrer, lplpszAcceptTypes
, dwFlags, dwContext);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall HttpAddRequestHeaders(void * hHttpRequest, wchar_t * lpszHeaders, int dwHeadersLength
, int dwReserved)
{
return HttpAddRequestHeadersW(hHttpRequest, lpszHeaders, dwHeadersLength, dwReserved);
}
#else
inline DWord __stdcall HttpAddRequestHeaders(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength
, int dwReserved)
{
return HttpAddRequestHeadersA(hHttpRequest, lpszHeaders, dwHeadersLength, dwReserved);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall HttpSendRequest(void * hHttpRequest, wchar_t * lpszHeaders, int dwHeadersLength
, void * lpOptional, int dwOptionalLength)
{
return HttpSendRequestW(hHttpRequest, lpszHeaders, dwHeadersLength, lpOptional, dwOptionalLength);
}
#else
inline DWord __stdcall HttpSendRequest(void * hHttpRequest, char * lpszHeaders, int dwHeadersLength,
void * lpOptional, int dwOptionalLength)
{
return HttpSendRequestA(hHttpRequest, lpszHeaders, dwHeadersLength, lpOptional, dwOptionalLength);
}
#endif
#if defined(UNICODE)
inline DWord __stdcall HttpQueryInfo(void * hHttpRequest, int dwInfoLevel, void * lpvBuffer, int &lpdwBufferLength
, int &lpdwReserved)
{
return HttpQueryInfoW(hHttpRequest, dwInfoLevel, lpvBuffer, lpdwBufferLength, lpdwReserved);
}
#else
inline DWord __stdcall HttpQueryInfo(void * hHttpRequest, int dwInfoLevel, void * lpvBuffer, int &lpdwBufferLength
, int &lpdwReserved)
{
return HttpQueryInfoA(hHttpRequest, dwInfoLevel, lpvBuffer, lpdwBufferLength, lpdwReserved);
}
#endif
} /* namespace Wininet */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Wininet;
#endif
//-- end unit ----------------------------------------------------------------
#endif // WinInet