ReactOS  0.4.14-dev-77-gd9e7c48
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_ SCSIPORTAPI 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)
 
SCSIPORTAPI VOID NTAPI ScsiPortWmiPostProcess (_Inout_ PSCSIWMI_REQUEST_CONTEXT RequestContext, _In_ UCHAR SrbStatus, _In_ ULONG BufferUsed)
 
SCSIPORTAPI 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)
SCSIPORTAPI 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)
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1057
static GUID * Guid
Definition: apphelp.c:93
_In_ LPGUID _In_ ULONG _In_ ULONG EventDataSize
Definition: classpnp.h:1057

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 68 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

Function Documentation

◆ ScsiPortWmiDispatchFunction()

_Must_inspect_result_ SCSIPORTAPI 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()

SCSIPORTAPI 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()

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

Referenced by BT958QueryWmiDataBlock().