DrWatsonGetSize (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

DWORD DrWatsonGetSize(void);

Parameters

None.

Return Value

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

Remarks

This function calls KernelIoControl with IOCTL_KLIB_GETWATSONSIZE.

You must initialize the dwNKDrWatsonSize 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 CE error reporting dump files are not supported.

Requirements

Header pkfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Kernel Functions
DrWatsonFlush
DrWatsonClear
DrWatsonWriteData
DrWatsonReadData

Concepts

Kernel Mode APIs

Other Resources

pfnNKDrWatsonFlush
KernelIoControl
OEMInit