GetKernelConnectionOptions method

The GetKernelConnectionOptions method returns the connection options for the current kernel target.

Syntax

HRESULT GetKernelConnectionOptions(
  [out, optional] PSTR   Buffer,
  [in]            ULONG  BufferSize,
  [out, optional] PULONG OptionsSize
);

Parameters

Buffer

Specifies the buffer to receive the connection options.

BufferSize

Specifies the size in characters of the buffer Buffer.

OptionsSize

Receives the size in characters of the connection options. If OptionsSize is NULL, this information is not returned.

Return Value

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

Return code Description
S_OK
The method was successful.
S_FALSE
The size of the string was greater than the size of the buffer, so it was truncated to fit into the buffer.
E_UNEXPECTED
The current target is not a standard live kernel target.

Remarks

This method is available only for live kernel targets that are not local and not connected through eXDI.

The connection options returned are the same options used to connect to the kernel.

For more information about connecting to live kernel-mode targets, see Live Kernel-Mode Targets.

Requirements

   
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)
Library dbgeng.h

See Also

IDebugClient3

IDebugClient2

AttachKernel

IDebugClient5

IDebugClient

IDebugClient4

IDebugClient2

Send comments about this topic to Microsoft