DiskQuotaControl.ShutdownNameResolution method

Shuts down the user name resolution thread.

Syntax

DiskQuotaControl.ShutdownNameResolution()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

The security identifier (SID) name resolver translates SID to user names on a background thread. This thread is shut down automatically when the associated quota control object is destroyed. However, there are some cases when the thread is no longer needed, but the object is not yet ready to be destroyed. A typical example is when no further processing is taking place, but clients are still holding references to the object. The ShutdownNameResolution method allows you to terminate the resolver thread and free the associated resources without destroying the quota control object.

Note

When you shut down the resolver thread, asynchronous name resolution immediately stops. If calls are subsequently made to methods such as AddUser or FindUser, the quota object might re-create the resolver thread.

 

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Dskquota.h
DLL
Shell32.dll (version 5.0 or later)

See also

DiskQuotaControl Object