IDebugDataSpaces2::WriteControl method (dbgeng.h)

The WriteControl method writes implementation-specific system data.

Syntax

HRESULT WriteControl(
  [in]            ULONG   Processor,
  [in]            ULONG64 Offset,
  [in]            PVOID   Buffer,
  [in]            ULONG   BufferSize,
  [out, optional] PULONG  BytesWritten
);

Parameters

[in] Processor

Specifies the processor whose information is to be written.

[in] Offset

Specifies the offset of the control space of the memory to write.

[in] Buffer

Specifies the data to write to the control-space memory.

[in] BufferSize

Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes that will be written.

[out, optional] BytesWritten

Receives the number of bytes returned in the buffer Buffer. If BytesWritten is NULL, this information is not returned.

Return value

This method can also return error values. See Return Values for more details.

Return code Description
S_OK
The method was successful.

Remarks

This method is only available in kernel-mode debugging.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)