Kernel32WerRegisterFile Method
Registers a file to be collected when WER creates an error report.
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 WerRegisterFile(
string file,
WerRegisterFileType regFileType,
WerRegisterFileTypeFlags flags
)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
static HResult WerRegisterFile(
String^ file,
WerRegisterFileType regFileType,
WerRegisterFileTypeFlags flags
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
static member WerRegisterFile :
file : string *
regFileType : WerRegisterFileType *
flags : WerRegisterFileTypeFlags -> HResult
No code example is currently available or this language may not be supported.
- file String
-
The full path to the file. The maximum length of this path is MAX_PATH characters.
- regFileType WerRegisterFileType
-
The file type.
- flags WerRegisterFileTypeFlags
-
Flags.
HResult
Returns
S_OK on success, or an
HResult error code on failure.