DrWatsonWriteData (Windows Embedded CE 6.0)

1/6/2010

This function writes data to the Windows Embedded CE error reporting dump area.

Syntax

DWORD DrWatsonWriteData(
  DWORD dwOffset,
  LPVOID pData,
  DWORD cbSize
);

Parameters

  • dwOffset
    [in] Offset into the Windows Embedded CE error reporting dump area to start writing data to.
  • pData
    [in] Data to be written to the Windows Embedded CE error reporting dump area.
  • cbSize
    [in] Size, in bytes, of the data.

Return Value

The size, in bytes, of the data written to the Windows Embedded CE error reporting dump.

Remarks

A successful write operation does not guarantee that the data is flushed to the underlining storage. Use the DrWatsonFlush function after writing the data to guarantee that the data is flushed.

This function calls KernelIoControl with IOCTL_KLIB_WRITEWATSON.

You can replace the DrWatsonWriteData functionality by changing the pointer pfnNKDrWatsonWrite.

Requirements

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

See Also

Reference

Kernel Functions
DrWatsonGetSize
DrWatsonFlush
DrWatsonClear
DrWatsonReadData

Concepts

Kernel Mode APIs

Other Resources

pfnNKDrWatsonWrite
KernelIoControl