TdhUnloadManifest function (tdh.h)

Unloads the manifest that was loaded by the TdhLoadManifest function.

Syntax

TDHSTATUS TdhUnloadManifest(
  [in] PWSTR Manifest
);

Parameters

[in] Manifest

The full path to the loaded manifest.

Return value

Returns ERROR_SUCCESS if successful. Otherwise, this function returns one of the following return codes in addition to others.

Return code Description
ERROR_FILE_NOT_FOUND
The manifest file was not found at the specified path.
ERROR_INVALID_PARAMETER
The Manifest parameter cannot be NULL and the path cannot exceed MAX_PATH.
ERROR_XML_PARSE_ERROR
The manifest did not pass validation. To determine the validation errors, run the manifest through the message compiler (mc.exe).

Remarks

You must call this function after processing all the events. For example, you can call this function after calling CloseTrace.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header tdh.h
Library Tdh.lib
DLL Tdh.dll

See also

TdhLoadManifest