ReactOS 0.4.16-dev-319-g6cf4263
scsiwmi.h File Reference
#include "srb.h"
Include dependency graph for scsiwmi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SCSIWMI_REQUEST_CONTEXT
 
struct  _GUID
 
struct  _SCSIWMIGUIDREGINFO
 
struct  _SCSIWMILIB_CONTEXT
 

Macros

#define _SCSIWMI_
 
#define GUID_DEFINED
 
#define ScsiPortWmiFireAdapterEvent( HwDeviceExtension, Guid, InstanceIndex, EventDataSize, EventData)
 
#define ScsiPortWmiGetReturnSize(RequestContext)    ((RequestContext)->ReturnSize)
 
#define ScsiPortWmiGetReturnStatus(RequestContext)    ((RequestContext)->ReturnStatus)
 

Typedefs

typedef struct _SCSIWMI_REQUEST_CONTEXT SCSIWMI_REQUEST_CONTEXT
 
typedef struct _SCSIWMI_REQUEST_CONTEXTPSCSIWMI_REQUEST_CONTEXT
 
typedef struct _GUID GUID
 
typedef struct _SCSIWMIGUIDREGINFO SCSIWMIGUIDREGINFO
 
typedef struct _SCSIWMIGUIDREGINFOPSCSIWMIGUIDREGINFO
 
typedef _Must_inspect_result_ UCHAR(NTAPIPSCSIWMI_QUERY_REGINFO) (_In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _Out_ PWCHAR *MofResourceName)
 
typedef _Must_inspect_result_ BOOLEAN(NTAPIPSCSIWMI_QUERY_DATABLOCK) (_In_ PVOID Context, _In_ PSCSIWMI_REQUEST_CONTEXT DispatchContext, _In_ ULONG GuidIndex, _In_ ULONG InstanceIndex, _In_ ULONG InstanceCount, _Inout_ PULONG InstanceLengthArray, _In_ ULONG BufferAvail, _Out_writes_bytes_(BufferAvail) PUCHAR Buffer)
 
typedef _Must_inspect_result_ BOOLEAN(NTAPIPSCSIWMI_SET_DATABLOCK) (_In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ ULONG GuidIndex, _In_ ULONG InstanceIndex, _In_ ULONG BufferSize, _In_reads_bytes_(BufferSize) PUCHAR Buffer)
 
typedef _Must_inspect_result_ BOOLEAN(NTAPIPSCSIWMI_SET_DATAITEM) (_In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ ULONG GuidIndex, _In_ ULONG InstanceIndex, _In_ ULONG DataItemId, _In_ ULONG BufferSize, _In_reads_bytes_(BufferSize) PUCHAR Buffer)
 
typedef _Must_inspect_result_ BOOLEAN(NTAPIPSCSIWMI_EXECUTE_METHOD) (_In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ ULONG GuidIndex, _In_ ULONG InstanceIndex, _In_ ULONG MethodId, _In_ ULONG InBufferSize, _In_ ULONG OutBufferSize, _Inout_updates_bytes_to_(InBufferSize, OutBufferSize) PUCHAR Buffer)
 
typedef enum _SCSIWMI_ENABLE_DISABLE_CONTROL SCSIWMI_ENABLE_DISABLE_CONTROL
 
typedef _Must_inspect_result_ BOOLEAN(NTAPIPSCSIWMI_FUNCTION_CONTROL) (_In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ ULONG GuidIndex, _In_ SCSIWMI_ENABLE_DISABLE_CONTROL Function, _In_ BOOLEAN Enable)
 
typedef struct _SCSIWMILIB_CONTEXT SCSI_WMILIB_CONTEXT
 
typedef struct _SCSIWMILIB_CONTEXTPSCSI_WMILIB_CONTEXT
 

Enumerations

enum  _SCSIWMI_ENABLE_DISABLE_CONTROL { ScsiWmiEventControl , ScsiWmiDataBlockControl }
 

Functions

_Must_inspect_result_ SCSIPORT_API BOOLEAN NTAPI ScsiPortWmiDispatchFunction (_In_ PSCSI_WMILIB_CONTEXT WmiLibInfo, _In_ UCHAR MinorFunction, _In_ PVOID DeviceContext, _In_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ PVOID DataPath, _In_ ULONG BufferSize, _In_ PVOID Buffer)
 
SCSIPORT_API VOID NTAPI ScsiPortWmiPostProcess (_Inout_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ UCHAR SrbStatus, _In_ ULONG BufferUsed)
 
SCSIPORT_API VOID NTAPI ScsiPortWmiFireLogicalUnitEvent (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ LPGUID Guid, _In_ ULONG InstanceIndex, _In_ ULONG EventDataSize, _In_ PVOID EventData)
 

Macro Definition Documentation

◆ _SCSIWMI_

#define _SCSIWMI_

Definition at line 26 of file scsiwmi.h.

◆ GUID_DEFINED

#define GUID_DEFINED

Definition at line 50 of file scsiwmi.h.

◆ ScsiPortWmiFireAdapterEvent

#define ScsiPortWmiFireAdapterEvent (   HwDeviceExtension,
  Guid,
  InstanceIndex,
  EventDataSize,
  EventData 
)
Value:
HwDeviceExtension, \
0xff, \
0, \
0, \
Guid, \
EventData)
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1251
SCSIPORT_API VOID NTAPI ScsiPortWmiFireLogicalUnitEvent(_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ LPGUID Guid, _In_ ULONG InstanceIndex, _In_ ULONG EventDataSize, _In_ PVOID EventData)
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:762
_Must_inspect_result_ _In_ WDFWMIINSTANCE _In_opt_ ULONG EventDataSize
Definition: wdfwmi.h:617

Definition at line 161 of file scsiwmi.h.

◆ ScsiPortWmiGetReturnSize

#define ScsiPortWmiGetReturnSize (   RequestContext)     ((RequestContext)->ReturnSize)

Definition at line 182 of file scsiwmi.h.

◆ ScsiPortWmiGetReturnStatus

#define ScsiPortWmiGetReturnStatus (   RequestContext)     ((RequestContext)->ReturnStatus)

Definition at line 189 of file scsiwmi.h.

Typedef Documentation

◆ GUID

typedef struct _GUID GUID

◆ PSCSI_WMILIB_CONTEXT

◆ PSCSIWMI_EXECUTE_METHOD

◆ PSCSIWMI_FUNCTION_CONTROL

◆ PSCSIWMI_QUERY_DATABLOCK

◆ PSCSIWMI_QUERY_REGINFO

Definition at line 67 of file scsiwmi.h.

◆ PSCSIWMI_REQUEST_CONTEXT

◆ PSCSIWMI_SET_DATABLOCK

◆ PSCSIWMI_SET_DATAITEM

◆ PSCSIWMIGUIDREGINFO

◆ SCSI_WMILIB_CONTEXT

◆ SCSIWMI_ENABLE_DISABLE_CONTROL

◆ SCSIWMI_REQUEST_CONTEXT

◆ SCSIWMIGUIDREGINFO

Enumeration Type Documentation

◆ _SCSIWMI_ENABLE_DISABLE_CONTROL

Enumerator
ScsiWmiEventControl 
ScsiWmiDataBlockControl 

Definition at line 122 of file scsiwmi.h.

122 {
enum _SCSIWMI_ENABLE_DISABLE_CONTROL SCSIWMI_ENABLE_DISABLE_CONTROL
@ ScsiWmiDataBlockControl
Definition: scsiwmi.h:124
@ ScsiWmiEventControl
Definition: scsiwmi.h:123

Function Documentation

◆ ScsiPortWmiDispatchFunction()

_Must_inspect_result_ SCSIPORT_API BOOLEAN NTAPI ScsiPortWmiDispatchFunction ( _In_ PSCSI_WMILIB_CONTEXT  WmiLibInfo,
_In_ UCHAR  MinorFunction,
_In_ PVOID  DeviceContext,
_In_ PSCSIWMI_REQUEST_CONTEXT  RequestContext,
_In_ PVOID  DataPath,
_In_ ULONG  BufferSize,
_In_ PVOID  Buffer 
)

Referenced by BT958WmiSrb().

◆ ScsiPortWmiFireLogicalUnitEvent()

SCSIPORT_API VOID NTAPI ScsiPortWmiFireLogicalUnitEvent ( _In_ PVOID  HwDeviceExtension,
_In_ UCHAR  PathId,
_In_ UCHAR  TargetId,
_In_ UCHAR  Lun,
_In_ LPGUID  Guid,
_In_ ULONG  InstanceIndex,
_In_ ULONG  EventDataSize,
_In_ PVOID  EventData 
)

◆ ScsiPortWmiPostProcess()

SCSIPORT_API VOID NTAPI ScsiPortWmiPostProcess ( _Inout_ PSCSIWMI_REQUEST_CONTEXT  RequestContext,
_In_ UCHAR  SrbStatus,
_In_ ULONG  BufferUsed 
)

Referenced by BT958QueryWmiDataBlock().