Share via


DrWatsonGetSize (Compact 2013)

3/28/2014

This function retrieves the size of the Windows Embedded Compact error reporting dump area.

Syntax

DWORD DrWatsonGetSize(void);

Parameters

None.

Return Value

The size of the Windows Embedded Compact error reporting dump area indicates success. It returns zero in user mode. A size of zero indicates that Windows Embedded Compact error reporting is not implemented by the OEM.

Remarks

This function calls KernelIoControl with IOCTL_KLIB_GETWATSONSIZE.

You must initialize the cbErrReportSize variable to the amount of memory needed for the dump files in OEMInit. Reserve a minimum of 128 KB for dump files. The amount of memory must be a multiple of the PAGE_SIZE of the device.

Note

If dwNKDrWatsonSize is not initialized, Windows Embedded Compact error reporting dump files are not supported.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions
KernelIoControl
DrWatsonFlush
DrWatsonClear
DrWatsonWriteData
DrWatsonReadData

Other Resources

OEMInit