다음을 통해 공유


InternetDeInitializeAutoProxyDll function

Note

This function is deprecated. For autoproxy support, use HTTP Services (WinHTTP) version 5.1 instead. For more information, see WinHTTP AutoProxy Support.

Frees the script engine used to process the autoproxy script. This function can be called only by dynamically linking to "JSProxy.dll". For autoproxy support, use Microsoft Windows HTTP Services (WinHTTP) version 5.1 instead. For more information, see WinHTTP AutoProxy Support.

Syntax

BOOL InternetDeInitializeAutoProxyDll(
  _In_ LPSTR lpszMime,
  _In_ DWORD dwReserved
);

Parameters

  • lpszMime [in]
    This parameter is reserved and must be NULL.

  • dwReserved [in]
    This parameter is reserved and must be 0.

Return value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

To call InternetDeInitializeAutoProxyDll, you must dynamically link to it using the defined function-pointer type pfnInternetDeInitializeAutoProxyDll. The code snippet below shows how to declare an instance of this function-pointer type and then initialize and call it.


HMODULE hModJS;                               // Handle for loading the DLL
pfnInternetDeInitializeAutoProxyDll pIIDAPD;  // Function-pointer instance

hModJS = LoadLibrary( TEXT("jsproxy.dll") );
if (!hModJS)    
{
   printf("\nLoadLibrary failed to load jsproxy.dll with error: %d\n",
           GetLastError( ) );
   return( FALSE );
}

pIIDAPD = (pfnInternetDeInitializeAutoProxyDll)
           GetProcAddress( hModJS, "InternetDeInitializeAutoProxyDll" );
if (!pIIDAPD)       
{
   printf("\nGetProcAddress failed to find InternetDeInitializeAutoProxyDll, error: %d\n",
           GetLastError( ) );
   return( FALSE );
}

// The initialized function pointer can now be used to call 
// InternetDeInitializeAutoProxyDll
pIIDAPD( NULL, 0 ); 

Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wininet.h

DLL

JSProxy.dll

See also

InternetInitializeAutoProxyDll

InternetGetProxyInfo

DetectAutoProxyUrl