Partager via


DrWatsonWriteData (Compact 2013)

3/28/2014

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

Syntax

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

Parameters

  • dwOffset
    [in] Offset into the Windows Embedded Compact error reporting dump area to start writing data to.
  • pData
    [in] Data to be written to the Windows Embedded Compact 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 Compact 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

See Also

Reference

Kernel Functions
KernelIoControl
DrWatsonGetSize
DrWatsonFlush
DrWatsonClear
DrWatsonReadData