WerUnregisterFile function

Removes a file from the list of files to be added to reports generated for the current process.

Syntax


HRESULT WINAPI WerUnregisterFile(
  _In_  PCWSTR pwzFilePath
);

Parameters

pwzFilePath [in]

The full path to the file. This file must have been registered using the WerRegisterFile function.

Return value

This function returns S_OK on success or an error code on failure, including the following error code.

Return codeDescription
WER_E_INVALID_STATE

The process state is not valid. For example, the process is in application recovery mode.

WER_E_NOT_FOUND

The list of registered files does not contain the specified file.

 

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Werapi.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

WER Functions
WerRegisterFile
Windows Error Reporting

 

 

Community Additions

ADD
Show:
© 2014 Microsoft