Windows Internet

Overview of the Windows Internet technology.

To develop Windows Internet, you need these headers:

For programming guidance for this technology, see:

Enumerations

Title Description
INTERNET_SCHEME Defines the flags used with the nScheme member of the URL_COMPONENTS structure.
InternetCookieState The InternetCookieState enumeration defines the state of the cookie.

Functions

Title Description
CommitUrlCacheEntryA Stores data in the specified file in the Internet cache and associates it with the specified URL.
CommitUrlCacheEntryW Stores data in the specified file in the Internet cache and associates it with the specified URL.
CreateMD5SSOHash The CreateMD5SSOHash function obtains the default Microsoft Passport password for a specified account or realm, creates an MD5 hash from it using a specified wide-character challenge string, and returns the result as a string of hexadecimal digit bytes.
CreateMD5SSOHash The CreateMD5SSOHash function obtains the default Microsoft Passport password for a specified account or realm, creates an MD5 hash from it using a specified wide-character challenge string, and returns the result as a string of hexadecimal digit bytes.
CreateUrlCacheContainerA Creates a cache container in the specified cache path to hold cache entries based on the specified name, cache prefix, and container type.
CreateUrlCacheContainerW Creates a cache container in the specified cache path to hold cache entries based on the specified name, cache prefix, and container type.
CreateUrlCacheEntryA Creates a local file name for saving the cache entry based on the specified URL and the file name extension.
CreateUrlCacheEntryW Creates a local file name for saving the cache entry based on the specified URL and the file name extension.
CreateUrlCacheGroup Generates cache group identifications.
DeleteUrlCacheContainerA Deletes a cache container (which contains cache entries) based on the specified name.
DeleteUrlCacheContainerW Deletes a cache container (which contains cache entries) based on the specified name.
DeleteUrlCacheEntry Removes the file associated with the source name from the cache, if the file exists.
DeleteUrlCacheEntryA Removes the file associated with the source name from the cache, if the file exists.
DeleteUrlCacheEntryW Removes the file associated with the source name from the cache, if the file exists.
DeleteUrlCacheGroup Releases the specified GROUPID and any associated state in the cache index file.
DetectAutoProxyUrl Attempts to determine the location of a WPAD autoproxy script.
DetectAutoProxyUrl Attempts to determine the location of a WPAD autoproxy script.
FindCloseUrlCache Closes the specified cache enumeration handle.
FindFirstUrlCacheEntryA Begins the enumeration of the Internet cache.
FindFirstUrlCacheEntryExA Starts a filtered enumeration of the Internet cache.
FindFirstUrlCacheEntryExW Starts a filtered enumeration of the Internet cache.
FindFirstUrlCacheEntryW Begins the enumeration of the Internet cache.
FindFirstUrlCacheGroup Initiates the enumeration of the cache groups in the Internet cache.
FindNextUrlCacheEntryA Retrieves the next entry in the Internet cache.
FindNextUrlCacheEntryExA Finds the next cache entry in a cache enumeration started by the FindFirstUrlCacheEntryEx function.
FindNextUrlCacheEntryExW Finds the next cache entry in a cache enumeration started by the FindFirstUrlCacheEntryEx function.
FindNextUrlCacheEntryW Retrieves the next entry in the Internet cache.
FindNextUrlCacheGroup Retrieves the next cache group in a cache group enumeration started by FindFirstUrlCacheGroup.
FreeUrlCacheSpaceA Frees space in the cache.
FreeUrlCacheSpaceW Frees space in the cache.
FtpCommandA Sends commands directly to an FTP server.
FtpCommandW Sends commands directly to an FTP server.
FtpCreateDirectoryA Creates a new directory on the FTP server.
FtpCreateDirectoryW Creates a new directory on the FTP server.
FtpDeleteFileA Deletes a file stored on the FTP server.
FtpDeleteFileW Deletes a file stored on the FTP server.
FtpFindFirstFileA Searches the specified directory of the given FTP session. File and directory entries are returned to the application in the WIN32_FIND_DATA structure.
FtpFindFirstFileW Searches the specified directory of the given FTP session. File and directory entries are returned to the application in the WIN32_FIND_DATA structure.
FtpGetCurrentDirectoryA Retrieves the current directory for the specified FTP session.
FtpGetCurrentDirectoryW Retrieves the current directory for the specified FTP session.
FtpGetFileA Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.
FtpGetFileSize Retrieves the file size of the requested FTP resource.
FtpGetFileW Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.
FtpOpenFileA Initiates access to a remote file on an FTP server for reading or writing.
FtpOpenFileW Initiates access to a remote file on an FTP server for reading or writing.
FtpPutFileA Stores a file on the FTP server.
FtpPutFileW Stores a file on the FTP server.
FtpRemoveDirectoryA Removes the specified directory on the FTP server.
FtpRemoveDirectoryW Removes the specified directory on the FTP server.
FtpRenameFileA Renames a file stored on the FTP server.
FtpRenameFileW Renames a file stored on the FTP server.
FtpSetCurrentDirectoryA Changes to a different working directory on the FTP server.
FtpSetCurrentDirectoryW Changes to a different working directory on the FTP server.
GetCookieInfoForUri Gets cookie information for the supplied URI to be used for proof of possession cookies.
GetUrlCacheConfigInfoA Retrieves information about cache configuration.
GetUrlCacheConfigInfoW Retrieves information about cache configuration.
GetUrlCacheEntryInfoA Retrieves information about a cache entry.
GetUrlCacheEntryInfoExA Retrieves information on the cache entry associated with the specified URL, taking into account any redirections that are applied in offline mode by the HttpSendRequest function.
GetUrlCacheEntryInfoExW Retrieves information on the cache entry associated with the specified URL, taking into account any redirections that are applied in offline mode by the HttpSendRequest function.
GetUrlCacheEntryInfoW Retrieves information about a cache entry.
GetUrlCacheGroupAttributeA Retrieves the attribute information of the specified cache group.
GetUrlCacheGroupAttributeW Retrieves the attribute information of the specified cache group.
GOPHER_ATTRIBUTE_ENUMERATOR Prototype for a callback function that processes attribute information from a Gopher server.
GopherCreateLocatorA Creates a Gopher or Gopher+ locator string from the selector string's component parts.
GopherCreateLocatorW Creates a Gopher or Gopher+ locator string from the selector string's component parts.
GopherFindFirstFileA Uses a Gopher locator and search criteria to create a session with the server and locate the requested documents, binary files, index servers, or directory trees.
GopherFindFirstFileW Uses a Gopher locator and search criteria to create a session with the server and locate the requested documents, binary files, index servers, or directory trees.
GopherGetAttributeA Retrieves the specific attribute information from the server.
GopherGetAttributeW Retrieves the specific attribute information from the server.
GopherGetLocatorTypeA Parses a Gopher locator and determines its attributes.
GopherGetLocatorTypeW Parses a Gopher locator and determines its attributes.
GopherOpenFileA Begins reading a Gopher data file from a Gopher server.
GopherOpenFileW Begins reading a Gopher data file from a Gopher server.
HttpAddRequestHeadersA Adds one or more HTTP request headers to the HTTP request handle.
HttpAddRequestHeadersW Adds one or more HTTP request headers to the HTTP request handle.
HttpEndRequestA Ends an HTTP request that was initiated by HttpSendRequestEx.
HttpEndRequestW Ends an HTTP request that was initiated by HttpSendRequestEx.
HttpOpenRequestA Creates an HTTP request handle.
HttpOpenRequestW Creates an HTTP request handle.
HttpQueryInfoA Retrieves header information associated with an HTTP request.
HttpQueryInfoW Retrieves header information associated with an HTTP request.
HttpSendRequestA Sends the specified request to the HTTP server, allowing callers to send extra data beyond what is normally passed to HttpSendRequestEx.
HttpSendRequestExA Sends the specified request to the HTTP server.
HttpSendRequestExW Sends the specified request to the HTTP server.
HttpSendRequestW Sends the specified request to the HTTP server, allowing callers to send extra data beyond what is normally passed to HttpSendRequestEx.
INTERNET_STATUS_CALLBACK Defines a pointer to this callback function.
InternetAttemptConnect Attempts to make a connection to the Internet.
InternetAutodial Causes the modem to automatically dial the default Internet connection.
InternetAutodial Causes the modem to automatically dial the default Internet connection.
InternetAutodialHangup Disconnects an automatic dial-up connection.
InternetAutodialHangup Disconnects an automatic dial-up connection.
InternetCanonicalizeUrlA Canonicalizes a URL, which includes converting unsafe characters and spaces into escape sequences.
InternetCanonicalizeUrlW Canonicalizes a URL, which includes converting unsafe characters and spaces into escape sequences.
InternetCheckConnectionA Allows an application to check if a connection to the Internet can be established.
InternetCheckConnectionW Allows an application to check if a connection to the Internet can be established.
InternetClearAllPerSiteCookieDecisions Clears all decisions that were made about cookies on a site by site basis.
InternetCloseHandle Closes a single Internet handle.
InternetCombineUrlA Combines a base and relative URL into a single URL. The resultant URL is canonicalized (see InternetCanonicalizeUrl).
InternetCombineUrlW Combines a base and relative URL into a single URL. The resultant URL is canonicalized (see InternetCanonicalizeUrl).
InternetConfirmZoneCrossing Checks for changes between secure and nonsecure URLs. Always inform the user when a change occurs in security between two URLs. Typically, an application should allow the user to acknowledge the change through interaction with a dialog box.
InternetConfirmZoneCrossingA Checks for changes between secure and nonsecure URLs. Always inform the user when a change occurs in security between two URLs. Typically, an application should allow the user to acknowledge the change through interaction with a dialog box.
InternetConfirmZoneCrossingW Checks for changes between secure and nonsecure URLs. Always inform the user when a change occurs in security between two URLs. Typically, an application should allow the user to acknowledge the change through interaction with a dialog box.
InternetConnectA Opens an File Transfer Protocol (FTP) or HTTP session for a given site.
InternetConnectW Opens an File Transfer Protocol (FTP) or HTTP session for a given site.
InternetCrackUrlA Cracks a URL into its component parts.
InternetCrackUrlW Cracks a URL into its component parts.
InternetCreateUrlA Creates a URL from its component parts.
InternetCreateUrlW Creates a URL from its component parts.
InternetDial Initiates a connection to the Internet using a modem.
InternetDial Initiates a connection to the Internet using a modem.
InternetDialA Initiates a connection to the Internet using a modem.
InternetDialA Initiates a connection to the Internet using a modem.
InternetDialW Initiates a connection to the Internet using a modem.
InternetDialW Initiates a connection to the Internet using a modem.
InternetEnumPerSiteCookieDecisionA Retrieves the domains and cookie settings of websites for which site-specific cookie regulations are set.
InternetEnumPerSiteCookieDecisionA Retrieves the domains and cookie settings of websites for which site-specific cookie regulations are set.
InternetEnumPerSiteCookieDecisionW Retrieves the domains and cookie settings of websites for which site-specific cookie regulations are set.
InternetEnumPerSiteCookieDecisionW Retrieves the domains and cookie settings of websites for which site-specific cookie regulations are set.
InternetErrorDlg Displays a dialog box for the error that is passed to InternetErrorDlg, if an appropriate dialog box exists.
InternetFindNextFileA Continues a file search started as a result of a previous call to FtpFindFirstFile.Windows XP and Windows Server 2003 R2 and earlier:  Or continues a file search as a result of a previous call to GopherFindFirstFile.
InternetFindNextFileW Continues a file search started as a result of a previous call to FtpFindFirstFile.Windows XP and Windows Server 2003 R2 and earlier:  Or continues a file search as a result of a previous call to GopherFindFirstFile.
InternetGetConnectedState Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the local system.
InternetGetConnectedState Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the local system.
InternetGetConnectedStateEx Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetConnectedStateEx Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetConnectedStateExA Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetConnectedStateExA Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetConnectedStateExW Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetConnectedStateExW Note  Using this API is not recommended, use the INetworkListManager::GetConnectivity method instead. Retrieves the connected state of the specified Internet connection.
InternetGetCookieA Retrieves the cookie for the specified URL.
InternetGetCookieExA Retrieves data stored in cookies associated with a specified URL.
InternetGetCookieExW Retrieves data stored in cookies associated with a specified URL.
InternetGetCookieW Retrieves the cookie for the specified URL.
InternetGetLastResponseInfoA Retrieves the last error description or server response on the thread calling this function.
InternetGetLastResponseInfoW Retrieves the last error description or server response on the thread calling this function.
InternetGetPerSiteCookieDecisionA Retrieves a decision on cookies for a given domain.
InternetGetPerSiteCookieDecisionW Retrieves a decision on cookies for a given domain.
InternetGoOnline Prompts the user for permission to initiate connection to a URL.
InternetGoOnline Prompts the user for permission to initiate connection to a URL.
InternetGoOnlineA Prompts the user for permission to initiate connection to a URL.
InternetGoOnlineA Prompts the user for permission to initiate connection to a URL.
InternetGoOnlineW Prompts the user for permission to initiate connection to a URL.
InternetGoOnlineW Prompts the user for permission to initiate connection to a URL.
InternetHangUp Instructs the modem to disconnect from the Internet.
InternetHangUp Instructs the modem to disconnect from the Internet.
InternetInitializeAutoProxyDll There are two WinINet functions named InternetInitializeAutoProxyDll.
InternetInitializeAutoProxyDll There are two WinINet functions named InternetInitializeAutoProxyDll.
InternetLockRequestFile Places a lock on the file that is being used.
InternetOpenA Initializes an application's use of the WinINet functions.
InternetOpenUrlA Opens a resource specified by a complete FTP or HTTP URL.
InternetOpenUrlW Opens a resource specified by a complete FTP or HTTP URL.
InternetOpenW Initializes an application's use of the WinINet functions.
InternetQueryDataAvailable Queries the server to determine the amount of data available.
InternetQueryOptionA Queries an Internet option on the specified handle.
InternetQueryOptionW Queries an Internet option on the specified handle.
InternetReadFile Reads data from a handle opened by the InternetOpenUrl, FtpOpenFile, or HttpOpenRequest function.
InternetReadFileExA Reads data from a handle opened by the InternetOpenUrl or HttpOpenRequest function.
InternetReadFileExW Reads data from a handle opened by the InternetOpenUrl or HttpOpenRequest function.
InternetSetCookieA Creates a cookie associated with the specified URL.
InternetSetCookieExA The InternetSetCookieEx function creates a cookie with a specified name that is associated with a specified URL. This function differs from the InternetSetCookie function by being able to create third-party cookies.
InternetSetCookieExW The InternetSetCookieEx function creates a cookie with a specified name that is associated with a specified URL. This function differs from the InternetSetCookie function by being able to create third-party cookies.
InternetSetCookieW Creates a cookie associated with the specified URL.
InternetSetDialState Not supported.This function is obsolete. Do not use.
InternetSetDialState Not supported.This function is obsolete. Do not use.
InternetSetDialStateA Not supported.This function is obsolete. Do not use.
InternetSetDialStateA Not supported.This function is obsolete. Do not use.
InternetSetDialStateW Not supported.This function is obsolete. Do not use.
InternetSetDialStateW Not supported.This function is obsolete. Do not use.
InternetSetFilePointer Sets a file position for InternetReadFile. This is a synchronous call; however, subsequent calls to InternetReadFile might block or return pending if the data is not available from the cache and the server does not support random access.
InternetSetOptionA Sets an Internet option.
InternetSetOptionExA Not supported.Implemented only as a stub that calls the InternetSetOption function; InternetSetOptionEx has no functionality of its own. Do not use this function at this time.
InternetSetOptionExW Not supported.Implemented only as a stub that calls the InternetSetOption function; InternetSetOptionEx has no functionality of its own. Do not use this function at this time.
InternetSetOptionW Sets an Internet option.
InternetSetPerSiteCookieDecisionA Sets a decision on cookies for a given domain.
InternetSetPerSiteCookieDecisionW Sets a decision on cookies for a given domain.
InternetSetStatusCallback Sets up a callback function that WinINet functions can call as progress is made during an operation.
InternetTimeFromSystemTime Formats a date and time according to the HTTP version 1.0 specification.
InternetTimeFromSystemTimeA Formats a date and time according to the HTTP version 1.0 specification.
InternetTimeFromSystemTimeW Formats a date and time according to the HTTP version 1.0 specification.
InternetTimeToSystemTime Converts an HTTP time/date string to a SYSTEMTIME structure.
InternetTimeToSystemTimeA Converts an HTTP time/date string to a SYSTEMTIME structure.
InternetTimeToSystemTimeW Converts an HTTP time/date string to a SYSTEMTIME structure.
InternetUnlockRequestFile Unlocks a file that was locked using InternetLockRequestFile.
InternetWriteFile Writes data to an open Internet file.
PrivacyGetZonePreferenceW Retrieves the privacy settings for a given URLZONE and PrivacyType.
PrivacyGetZonePreferenceW Retrieves the privacy settings for a given URLZONE and PrivacyType.
PrivacySetZonePreferenceW Sets the privacy settings for a given URLZONE and PrivacyType.
PrivacySetZonePreferenceW Sets the privacy settings for a given URLZONE and PrivacyType.
ReadUrlCacheEntryStream Reads the cached data from a stream that has been opened using the RetrieveUrlCacheEntryStream function.
ResumeSuspendedDownload The ResumeSuspendedDownload function resumes a request that is suspended by a user interface dialog box.
RetrieveUrlCacheEntryFileA Locks the cache entry file associated with the specified URL.
RetrieveUrlCacheEntryFileW Locks the cache entry file associated with the specified URL.
RetrieveUrlCacheEntryStreamA Provides the most efficient and implementation-independent way to access the cache data.
RetrieveUrlCacheEntryStreamW Provides the most efficient and implementation-independent way to access the cache data.
SetUrlCacheEntryGroup Adds entries to or removes entries from a cache group.
SetUrlCacheEntryGroupA Adds entries to or removes entries from a cache group.
SetUrlCacheEntryGroupW Adds entries to or removes entries from a cache group.
SetUrlCacheEntryInfoA Sets the specified members of the INTERNET_CACHE_ENTRY_INFO structure.
SetUrlCacheEntryInfoW Sets the specified members of the INTERNET_CACHE_ENTRY_INFO structure.
SetUrlCacheGroupAttributeA Sets the attribute information of the specified cache group.
SetUrlCacheGroupAttributeW Sets the attribute information of the specified cache group.
UnlockUrlCacheEntryFile Unlocks the cache entry that was locked while the file was retrieved for use from the cache.
UnlockUrlCacheEntryFileA Unlocks the cache entry that was locked while the file was retrieved for use from the cache.
UnlockUrlCacheEntryFileW Unlocks the cache entry that was locked while the file was retrieved for use from the cache.
UnlockUrlCacheEntryStream Closes the stream that has been retrieved using the RetrieveUrlCacheEntryStream function.

Interfaces

Title Description
IProofOfPossessionCookieInfoManager Supports the creation of proof of possession cookies.

Structures

Title Description
AUTO_PROXY_SCRIPT_BUFFER The AUTO_PROXY_SCRIPT_BUFFER structure is used to pass an autoproxy script in a buffer to InternetInitializeAutoProxyDll , instead of identifying a file that InternetInitializeAutoProxyDll opens.
AutoProxyHelperFunctions The AutoProxyHelperFunctions structure is used create a v-table of Proxy Auto-Config functions that can be passed to InternetInitializeAutoProxyDll.
AutoProxyHelperVtbl The AutoProxyHelperVtbl structure creates a v-table of pointers to Proxy AutoConfig (PAC) helper functions.See the Navigator Proxy Auto-Config (PAC) File Format documentation for a specification of the form and use of Proxy Auto-Config helper functions.
GOPHER_ATTRIBUTE_TYPE Contains the relevant information of a single Gopher attribute for an object.
GOPHER_FIND_DATAA Contains information retrieved by the GopherFindFirstFile and InternetFindNextFile functions.
GOPHER_FIND_DATAW Contains information retrieved by the GopherFindFirstFile and InternetFindNextFile functions.
HTTP_VERSION_INFO Contains the global HTTP version.
INTERNET_ASYNC_RESULT Contains the result of a call to an asynchronous function. This structure is used with InternetStatusCallback.
INTERNET_AUTH_NOTIFY_DATA Contains the notification data for an authentication request.
INTERNET_BUFFERSA Contains both the data and header information.
INTERNET_BUFFERSW Contains both the data and header information.
INTERNET_CACHE_CONFIG_INFOA Contains information about the configuration of the Internet cache.
INTERNET_CACHE_CONFIG_INFOW Contains information about the configuration of the Internet cache.
INTERNET_CACHE_ENTRY_INFOA Contains information about an entry in the Internet cache.
INTERNET_CACHE_ENTRY_INFOW Contains information about an entry in the Internet cache.
INTERNET_CACHE_GROUP_INFOA Contains the information for a particular cache group.
INTERNET_CACHE_GROUP_INFOW Contains the information for a particular cache group.
INTERNET_CACHE_TIMESTAMPS Contains the LastModified and Expire times for a resource stored in the Internet cache.
INTERNET_CERTIFICATE_INFO Contains certificate information returned from the server. This structure is used by the InternetQueryOption function.
INTERNET_CONNECTED_INFO Contains the information to set the global online/offline state.
INTERNET_DIAGNOSTIC_SOCKET_INFO The INTERNET_DIAGNOSTIC_SOCKET_INFO structure is returned by the InternetQueryOption function when the INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO flag is passed to it together with a handle to an HTTP Request.
INTERNET_PER_CONN_OPTION_LISTA Contains the list of options for a particular Internet connection.
INTERNET_PER_CONN_OPTION_LISTW Contains the list of options for a particular Internet connection.
INTERNET_PER_CONN_OPTIONA Contains the value of an option.
INTERNET_PER_CONN_OPTIONW Contains the value of an option.
INTERNET_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.
INTERNET_VERSION_INFO Contains the HTTP version number of the server. This structure is used when passing the INTERNET_OPTION_VERSION flag to the InternetQueryOption function.
InternetCookieHistory The InternetCookieHistory structure contains the cookie history.
URL_COMPONENTSA Contains the constituent parts of a URL. This structure is used with the InternetCrackUrl and InternetCreateUrl functions.
URL_COMPONENTSW Contains the constituent parts of a URL. This structure is used with the InternetCrackUrl and InternetCreateUrl functions.