Brought to you by the |
This list identifies the Win32 Internet function data structures and their uses.
typedef struct { DWORD CategoryId DWORD AttributeId union { GOPHER_ADMIN_ATTRIBUTE Admin; GOPHER_MOD_DATE_ATTRIBUTE ModDate; GOPHER_SCORE_ATTRIBUTE Score; GOPHER_SCORE_RANGE_ATTRIBUTE ScoreRange; GOPHER_SITE_ATTRIBUTE Site; GOPHER_ORGANIZATION_ATTRIBUTE Organization; GOPHER_LOCATION_ATTRIBUTE Location; GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE GeographicalLocation; GOPHER_TIMEZONE_ATTRIBUTE TimeZone; GOPHER_PROVIDER_ATTRIBUTE Provider; GOPHER_VERSION_ATTRIBUTE Version; GOPHER_ABSTRACT_ATTRIBUTE Abstract; GOPHER_VIEW_ATTRIBUTE View; GOPHER_VERONICA_ATTRIBUTE Veronica; GOPHER_ASK_ATTRIBUTE_TYPE Ask; GOPHER_UNKNOWN_ATTRIBUTE Unknown; } AttributeType; } GOPHER_ATTRIBUTE_TYPE, *LPGOPHER_ATTRIBUTE_TYPE;
Contains the relevant information of a single Gopher attribute for an object.
GOPHER_CATEGORY_ID_ALL |
GOPHER_CATEGORY_ID_INFO |
GOPHER_CATEGORY_ID_ADMIN |
GOPHER_CATEGORY_ID_VIEWS |
GOPHER_CATEGORY_ID_ABSTRACT |
GOPHER_CATEGORY_ID_VERONICA |
GOPHER_CATEGORY_ID_UNKNOWN |
GOPHER_ATTRIBUTE_ID_ADMIN |
GOPHER_ATTRIBUTE_ID_MOD_DATE |
GOPHER_ATTRIBUTE_ID_TTL |
GOPHER_ATTRIBUTE_ID_SCORE |
GOPHER_ATTRIBUTE_ID_RANGE |
GOPHER_ATTRIBUTE_ID_SITE |
GOPHER_ATTRIBUTE_ID_ORG |
GOPHER_ATTRIBUTE_ID_LOCATION |
GOPHER_ATTRIBUTE_ID_GEOG |
GOPHER_ATTRIBUTE_ID_TIMEZONE |
GOPHER_ATTRIBUTE_ID_PROVIDER |
GOPHER_ATTRIBUTE_ID_VERSION |
GOPHER_ATTRIBUTE_ID_ABSTRACT |
GOPHER_ATTRIBUTE_ID_VIEW |
GOPHER_ATTRIBUTE_ID_TREEWALK |
GOPHER_ATTRIBUTE_ID_UNKNOWN |
See also GopherGetAttribute
typedef struct { TCHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1]; DWORD GopherType; DWORD SizeLow; DWORD SizeHigh; FILETIME LastModificationTime; TCHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1]; } GOPHER_FIND_DATA, FAR *LPGOPHER_FIND_DATA;
Contain information retrieved by the GopherFindFirstFile and InternetFindNextFile functions.
See also GopherFindFirstFile
typedef struct { DWORD dwResult; DWORD dwError; } INTERNET_ASYNC_RESULT, * LPINTERNET_ASYNC_RESULT;
Contains the result of a call to an asynchronous function. This structure is used with the InternetStatusCallback function.
See also InternetStatusCallback
typedef struct _CACHE_ENTRY_INFO { DWORD dwStructSize; LPSTR lpszSourceUrlName; LPTSTR lpszLocalFileName; DWORD CacheEntryType; DWORD dwUseCount; DWORD dwHitRate; DWORD dwSizeLow; DWORD dwSizeHigh; FILETIME LastModifiedTime; FILETIME ExpireTime; FILETIME LastAccessTime; FILETIME LastSyncTime; LPBYTE lpHeaderInfo; DWORD dwHeaderInfoSize; LPTSTR lpszFileExtension; DWORD dwReserved; } INTERNET_CACHE_ENTRY_INFO, *LPINTERNET_CACHE_ENTRY_INFO;
Contains information about an entry in the cache.
Value | Meaning |
NORMAL_CACHE_ENTRY | Normal cache entry; may be deleted to recover space for new entries. |
STABLE_CACHE_ENTRY | Stable cache entry such as graphic and audio/video files; may be deleted to recover space for the new entries only when there is no more NORMAL_CACHE_ENTRY. |
STICKY_CACHE_ENTRY | Entries that will never be removed automatically by the cache management system. |
SPARSE_CACHE_ENTRY | This cache entry is incomplete. |
OCX_CACHE_ENTRY | Special OCX type cache entry. |
The MAX_CACHE_ENTRY_INFO_SIZE value defines the maximum size of the INTERNET_CACHE_ENTRY_INFO structure that could be returned by the implementation of the cache functions. Thus passing in a buffer of this size in functions returning INTERNET_CACHE_ENTRY_INFO guarantees that the function does not fail because of an insufficient buffer.
typedef struct { FILETIME ftExpiry; FILETIME ftStart; LPTSTR lpszSubjectInfo; LPTSTR lpszIssuerInfo; LPTSTR lpszProtocolName; LPTSTR lpszSignatureAlgName; LPTSTR lpszEncryptionAlgName; DWORD dwKeySize; } INTERNET_CERTIFICATE_INFO, * LPINTERNET_CERTIFICATE_INFO;
Contains certificate information returned from the server. This structure is used by the InternetQueryOption function.
Applications requesting this information must free pointers that are allocated and placed in the returned structure.
See also InternetQueryOption
typedef struct { DWORD dwStatus; DWORD dwSize; } INTERNET_PREFETCH_STATUS, * LPINTERNET_PREFETCH_STATUS;
Contains the status of a prefetch download operation.
INTERNET_PREFETCH_PROGRESS | The operation is in progress. |
INTERNET_PREFETCH_COMPLETE | The operation has completed. |
INTERNET_PREFETCH_ABORTED | The operation was aborted. |
typedef struct { DWORD dwAccessType; LPCTSTR lpszProxy; LPCTSTR lpszProxyBypass; } INTERNET_PROXY_INFO, * LPINTERNET_PROXY_INFO;
Contains information that is supplied with the INTERNET_OPTION_PROXY value to get or set proxy information on a handle obtained from a call to the InternetOpen function.
Value | Meaning |
INTERNET_OPEN_TYPE_DIRECT | Internet accessed through a direct connection. |
INTERNET_OPEN_TYPE_PROXY | Internet accessed using a proxy. |
INTERNET_OPEN_TYPE_PRECONFIG | Applies only when setting proxy information. |
typedef enum { INTERNET_SCHEME_PARTIAL = -2, INTERNET_SCHEME_UNKNOWN = -1, INTERNET_SCHEME_DEFAULT = 0, INTERNET_SCHEME_FTP, INTERNET_SCHEME_GOPHER, INTERNET_SCHEME_HTTP, INTERNET_SCHEME_HTTPS, INTERNET_SCHEME_FILE, INTERNET_SCHEME_NEWS, INTERNET_SCHEME_MAILTO, INTERNET_SCHEME_FIRST = INTERNET_SCHEME_FTP, INTERNET_SCHEME_LAST = INTERNET_SCHEME_MAILTO } INTERNET_SCHEME, * LPINTERNET_SCHEME;
Defines the flags used with the nScheme member of the URL_COMPONENTS structure.
typedef struct { DWORD dwMajorVersion; DWORD dwMinorVersion; } INTERNET_VERSION_INFO, * LPINTERNET_VERSION_INFO;
Contains the version number of the DLL that contains the Windows Internet functions (Wininet.dll). This structure is used when passing the INTERNET_OPTION_VERSION flag to the InternetQueryOption function.
typedef struct { DWORD dwStructSize; LPSTR lpszScheme; DWORD dwSchemeLength; INTERNET_SCHEME nScheme; LPSTR lpszHostName; DWORD dwHostNameLength; INTERNET_PORT nPort; LPSTR lpszUserName; DWORD dwUserNameLength; LPSTR lpszPassword; DWORD dwPasswordLength' LPSTR lpszUrlPath; DWORD dwUrlPathLength; LPTSTR lpszExtraInfo; DWORD dwExtraInfoLength; } URL_COMPONENTS;
Contains the constituent parts of a URL. This structure is used with the InternetCrackUrl and InternetCreateUrl functions.
For InternetCrackUrl, if a pointer member and its corresponding length member are both zero, that component is not returned. If the pointer member is NULL but the length member is not zero, both the pointer and length members are returned. If both pointer and corresponding length members are non-zero, the pointer member points to a buffer where the component is copied. The component may be un-escaped, depending on the dwFlags parameter of InternetCrackUrl.
For InternetCreateUrl, the pointer members should be NULL if the component is not required. If the corresponding length member is zero, the pointer member is the address of a zero-terminated string. If the length member is not zero, it is the string length of the corresponding pointer member