DnsUninitialize Function  
 
VOID WINAPI DnsUninitialize();

The DnsUninitialize function terminates the use of the library.

Parameters

There are no parameters.

Return Value

None.

Remarks

An application is required to perform a successful DnsInitialize call before it can call any of the other the library functions. When it has finished using the library, the application must call DnsUninitialize to allow the library to free any resources allocated on behalf of the process. Any pending blocking or asynchronous calls in this process are canceled without posting any notification messages, and all sockets that were opened by the process are closed.

There should be a call to DnsUninitialize for every successful call to DnsInitialize made by a process. In a multithreaded environment, operations for all threads in the client are terminated.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csdnsv12.lib

See Also