DXGK_SPB_INTERFACE structure

Contains pointers to functions in the Simple Peripheral Bus (SPB) Interface that the display miniport driver can call to inspect and alter SPB resources.

For more information on SPB architecture, see Simple Peripheral Buses and SPB Peripheral Device Driver Overview.

Syntax


typedef struct _DXGK_SPB_INTERFACE {
  USHORT                 Size;
  USHORT                 Version;
  PVOID                  Context;
  PINTERFACE_REFERENCE   InterfaceReference;
  PINTERFACE_DEREFERENCE InterfaceDereference;
  NTSTATUS               (*OpenSpbResource)(
      _In_ HANDLE DeviceHandle, 
      _In_ LARGE_INTEGER SpbReourceId, 
      _In_opt_ UNICODE_STRING *SpbResourceSubName, 
      _In_ ACCESS_MASK DesiredAccess, 
      _In_ ULONG ShareAccess, 
      _In_ ULONG OpenOptions, 
      _Out_ VOID **SpbResource);
  NTSTATUS               (*CloseSpbResource)(
      _In_ HANDLE DeviceHandle, 
      _In_ VOID *SpbResource);
  NTSTATUS               (*ReadSpbResource)(
      _In_ HANDLE DeviceHandle, 
      _In_ VOID *SpbResource, 
      _In_ ULONG Length, 
      _Out_ VOID *Buffer, 
      _In_opt_ LARGE_INTEGER *ByteOffset, 
      _In_opt_ HANDLE EventHandle, 
      _Out_ IO_STATUS_BLOCK *IoStatusBlock);
  NTSTATUS               (*WriteSpbResource)(
      _In_ HANDLE DeviceHandle, 
      _In_ VOID *SpbResource, 
      _In_ ULONG Length, 
      _In_ VOID *Buffer, 
      _In_opt_ LARGE_INTEGER *ByteOffset, 
      _In_opt_ HANDLE EventHandle, 
      _Out_ IO_STATUS_BLOCK *IoStatusBlock);
  NTSTATUS               (*SpbResourceIoControl)(
      _In_ HANDLE DeviceHandle, 
      _In_ VOID *SpbResource, 
      _In_ ULONG IoControlCode, 
      _In_ ULONG InBufferSize, 
      _In_ VOID *InputBuffer, 
      _In_ ULONG OutBufferSize, 
      _Out_ VOID *OutputBuffer, 
      _In_opt_ HANDLE EventHandle, 
      _Out_ IO_STATUS_BLOCK *IoStatusBlock);
} DXGK_SPB_INTERFACE, *PDXGK_SPB_INTERFACE;

Members

Size

The size, in bytes, of this structure.

Version

The version number of the SPB interface. Version number constants are defined in Dispmprt.h (for example, DXGK_SPB_INTERFACE_VERSION_1).

Context

A pointer to a context that is provided by the display miniport driver.

InterfaceReference

A pointer to an interface reference function that is implemented by the display miniport driver.

InterfaceDereference

A pointer to an interface dereference function that is implemented by the display miniport driver.

OpenSpbResource

A pointer to the display miniport driver's OpenSpbResource function.

CloseSpbResource

A pointer to the display miniport driver's CloseSpbResource function.

ReadSpbResource

A pointer to the display miniport driver's ReadSpbResource function.

WriteSpbResource

A pointer to the display miniport driver's WriteSpbResource function.

SpbResourceIoControl

A pointer to the display miniport driver's SpbResourceIoControl function.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Dispmprt.h (include Dispmprt.h)

See also

CloseSpbResource
OpenSpbResource
ReadSpbResource
SpbResourceIoControl
WriteSpbResource

 

 

Send comments about this topic to Microsoft

Show: