Kernel32WerUnregisterFile Method
Removes a file from the list of files to be added to reports generated for the current process.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
public static HResult WerUnregisterFile(
string filePath
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true>]
Public Shared Function WerUnregisterFile (
filePath As String
) As HResult
Dim filePath As String
Dim returnValue As HResult
returnValue = Kernel32.WerUnregisterFile(filePath)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
static HResult WerUnregisterFile(
String^ filePath
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
static member WerUnregisterFile :
filePath : string -> HResult
No code example is currently available or this language may not be supported.
- filePath String
-
The full path to the file.
This file must have been registered using the WerRegisterFile(String, WerRegisterFileType, WerRegisterFileTypeFlags) function.
HResult
Returns
S_OK on success, or an
HResult error code on failure.