[mingw-Bugs-1424461]

*include/imagehlp.h: Comment out IN, OUT and OPTIONAL,
	throughout.
	*include/rpcdce.h: Don't define IN, OUT or OPTIONAL if
	_NO_W32_PSEUDO_MODIFIERS.
	*include/rpcnsi.h: Comment out IN, OUT and OPTIONAL,
	throughout.
	*include/rpcnsip.h: Likewise.
	*include/windef.h: Don't define IN, OUT or OPTIONAL
	if _NO_W32_PSEUDO_MODIFIERS.
	*include/ddk/batclass.h: Comment out IN, OUT and OPTIONAL,
	throughout.
	*include/ddk/cfgmgr32.h: Likewise.
	*include/ddk/ddkmapi.h: Likewise.
	*include/ddk/hidclass.h: Likewise.
	*include/ddk/hidpi.h: Likewise.
	*include/ddk/kbdmou.h: Likewise.
	*include/ddk/mcd.h: Likewise.
	*include/ddk/miniport.h: Likewise.
	*include/ddk/minitape.h: Likewise.
	*include/ddk/ndis.h: Likewise.
	*include/ddk/ndistapi.h: Likewise.
	*include/ddk/ndiswan.h: Likewise.
	*include/ddk/ntapi.h: Likewise.
	*include/ddk/ntdd8042.h: Likewise.
	*include/ddk/ntddpcm.h: Likewise.
	*include/ddk/ntifs.h: Likewise.
	*include/ddk/ntpoapi.h: Likewise.
	*include/ddk/parallel.h: Likewise.
	*include/ddk/pfhook.h: Likewise.
	*include/ddk/scsiwmi.h: Likewise.
	*include/ddk/smbus.h: Likewise.
	*include/ddk/srb.h: Likewise.
	*include/ddk/storport.h: Likewise.
	*include/ddk/tdikrnl.h: Likewise.
	*include/ddk/upssvc.h: Likewise.
	*include/ddk/usbcamdi.h: Likewise.
	*include/ddk/usbscan.h: Likewise.
	*include/ddk/video.h: Likewise.
	*include/ddk/videoagp.h: Likewise.
	*include/ddk/win2k.h: Likewise.
	*include/ddk/winddi.h: Likewise.
	*include/ddk/winddk.h: Don't define IN, OUT or OPTIONAL
	if _NO_W32_PSEUDO_MODIFIERS.
	Comment out IN, OUT and OPTIONAL, throughout.
	*include/ddk/winnt4.h: Comment out IN, OUT and OPTIONAL,
	throughout.
	*include/ddk/ws2san.h: Likewise.
This commit is contained in:
Danny Smith 2006-06-12 00:55:06 +00:00
parent 0a253b906e
commit d73228210d
41 changed files with 8716 additions and 8548 deletions

View File

@ -1,3 +1,54 @@
2006-06-12 Danny Smith <dannysmith@users.sourceforge.net>
[mingw-Bugs-1424461]
*include/imagehlp.h: Comment out IN, OUT and OPTIONAL,
throughout.
*include/rpcdce.h: Don't define IN, OUT or OPTIONAL if
_NO_W32_PSEUDO_MODIFIERS.
*include/rpcnsi.h: Comment out IN, OUT and OPTIONAL,
throughout.
*include/rpcnsip.h: Likewise.
*include/windef.h: Don't define IN, OUT or OPTIONAL
if _NO_W32_PSEUDO_MODIFIERS.
*include/ddk/batclass.h: Comment out IN, OUT and OPTIONAL,
throughout.
*include/ddk/cfgmgr32.h: Likewise.
*include/ddk/ddkmapi.h: Likewise.
*include/ddk/hidclass.h: Likewise.
*include/ddk/hidpi.h: Likewise.
*include/ddk/kbdmou.h: Likewise.
*include/ddk/mcd.h: Likewise.
*include/ddk/miniport.h: Likewise.
*include/ddk/minitape.h: Likewise.
*include/ddk/ndis.h: Likewise.
*include/ddk/ndistapi.h: Likewise.
*include/ddk/ndiswan.h: Likewise.
*include/ddk/ntapi.h: Likewise.
*include/ddk/ntdd8042.h: Likewise.
*include/ddk/ntddpcm.h: Likewise.
*include/ddk/ntifs.h: Likewise.
*include/ddk/ntpoapi.h: Likewise.
*include/ddk/parallel.h: Likewise.
*include/ddk/pfhook.h: Likewise.
*include/ddk/scsiwmi.h: Likewise.
*include/ddk/smbus.h: Likewise.
*include/ddk/srb.h: Likewise.
*include/ddk/storport.h: Likewise.
*include/ddk/tdikrnl.h: Likewise.
*include/ddk/upssvc.h: Likewise.
*include/ddk/usbcamdi.h: Likewise.
*include/ddk/usbscan.h: Likewise.
*include/ddk/video.h: Likewise.
*include/ddk/videoagp.h: Likewise.
*include/ddk/win2k.h: Likewise.
*include/ddk/winddi.h: Likewise.
*include/ddk/winddk.h: Don't define IN, OUT or OPTIONAL
if _NO_W32_PSEUDO_MODIFIERS.
Comment out IN, OUT and OPTIONAL, throughout.
*include/ddk/winnt4.h: Comment out IN, OUT and OPTIONAL,
throughout.
*include/ddk/ws2san.h: Likewise.
2006-06-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/Makefile.in: Added hlguids-uuid as source and object.

View File

@ -187,41 +187,41 @@ typedef struct _BATTERY_WAIT_STATUS {
typedef NTSTATUS DDKAPI
(*BCLASS_DISABLE_STATUS_NOTIFY)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef NTSTATUS DDKAPI
(*BCLASS_QUERY_INFORMATION)(
IN PVOID Context,
IN ULONG BatteryTag,
IN BATTERY_QUERY_INFORMATION_LEVEL Level,
IN LONG AtRate OPTIONAL,
OUT PVOID Buffer,
IN ULONG BufferLength,
OUT PULONG ReturnedLength);
/*IN*/ PVOID Context,
/*IN*/ ULONG BatteryTag,
/*IN*/ BATTERY_QUERY_INFORMATION_LEVEL Level,
/*IN*/ LONG AtRate /*OPTIONAL*/,
/*OUT*/ PVOID Buffer,
/*IN*/ ULONG BufferLength,
/*OUT*/ PULONG ReturnedLength);
typedef NTSTATUS DDKAPI
(*BCLASS_QUERY_STATUS)(
IN PVOID Context,
IN ULONG BatteryTag,
OUT PBATTERY_STATUS BatteryStatus);
/*IN*/ PVOID Context,
/*IN*/ ULONG BatteryTag,
/*OUT*/ PBATTERY_STATUS BatteryStatus);
typedef NTSTATUS DDKAPI
(*BCLASS_QUERY_TAG)(
IN PVOID Context,
OUT PULONG BatteryTag);
/*IN*/ PVOID Context,
/*OUT*/ PULONG BatteryTag);
typedef NTSTATUS DDKAPI
(*BCLASS_SET_INFORMATION)(
IN PVOID Context,
IN ULONG BatteryTag,
IN BATTERY_SET_INFORMATION_LEVEL Level,
IN PVOID Buffer OPTIONAL);
/*IN*/ PVOID Context,
/*IN*/ ULONG BatteryTag,
/*IN*/ BATTERY_SET_INFORMATION_LEVEL Level,
/*IN*/ PVOID Buffer /*OPTIONAL*/);
typedef NTSTATUS DDKAPI
(*BCLASS_SET_STATUS_NOTIFY)(
IN PVOID Context,
IN ULONG BatteryTag,
IN PBATTERY_NOTIFY BatteryNotify);
/*IN*/ PVOID Context,
/*IN*/ ULONG BatteryTag,
/*IN*/ PBATTERY_NOTIFY BatteryNotify);
typedef struct _BATTERY_MINIPORT_INFO {
@ -247,49 +247,49 @@ BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassInitializeDevice(
IN PBATTERY_MINIPORT_INFO MiniportInfo,
IN PVOID *ClassData);
/*IN*/ PBATTERY_MINIPORT_INFO MiniportInfo,
/*IN*/ PVOID *ClassData);
BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassIoctl(
IN PVOID ClassData,
IN PIRP Irp);
/*IN*/ PVOID ClassData,
/*IN*/ PIRP Irp);
BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassQueryWmiDataBlock(
IN PVOID ClassData,
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN ULONG GuidIndex,
IN OUT PULONG InstanceLengthArray,
IN ULONG OutBufferSize,
OUT PUCHAR Buffer);
/*IN*/ PVOID ClassData,
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ PIRP Irp,
/*IN*/ ULONG GuidIndex,
/*IN OUT*/ PULONG InstanceLengthArray,
/*IN*/ ULONG OutBufferSize,
/*OUT*/ PUCHAR Buffer);
BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassStatusNotify(
IN PVOID ClassData);
/*IN*/ PVOID ClassData);
BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassSystemControl(
IN PVOID ClassData,
IN PWMILIB_CONTEXT WmiLibContext,
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
OUT PSYSCTL_IRP_DISPOSITION Disposition);
/*IN*/ PVOID ClassData,
/*IN*/ PWMILIB_CONTEXT WmiLibContext,
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ PIRP Irp,
/*OUT*/ PSYSCTL_IRP_DISPOSITION Disposition);
BCLASSAPI
NTSTATUS
DDKAPI
BatteryClassUnload(
IN PVOID ClassData);
/*IN*/ PVOID ClassData);
#ifdef __cplusplus
}

File diff suppressed because it is too large Load Diff

View File

@ -43,11 +43,11 @@ DXAPI
DWORD
FAR PASCAL
DxApi(
IN DWORD dwFunctionNum,
IN LPVOID lpvInBuffer,
IN DWORD cbInBuffer,
OUT LPVOID lpvOutBuffer,
OUT DWORD cbOutBuffer);
/*IN*/ DWORD dwFunctionNum,
/*IN*/ LPVOID lpvInBuffer,
/*IN*/ DWORD cbInBuffer,
/*OUT*/ LPVOID lpvOutBuffer,
/*OUT*/ DWORD cbOutBuffer);
typedef DWORD (FAR PASCAL *LPDXAPI)(
DWORD dwFunctionNum,

View File

@ -92,8 +92,8 @@ typedef VOID DDKAPI (*PHID_STATUS_CHANGE)(
enum DeviceObjectState State);
typedef NTSTATUS DDKAPI (*PHIDP_GETCAPS)(
IN PHIDP_PREPARSED_DATA PreparsedData,
OUT PHIDP_CAPS Capabilities);
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*OUT*/ PHIDP_CAPS Capabilities);
typedef struct _HID_COLLECTION_INFORMATION {
ULONG DescriptorSize;

View File

@ -75,9 +75,9 @@ typedef struct _HIDP_KEYBOARD_MODIFIER_STATE {
} HIDP_KEYBOARD_MODIFIER_STATE, *PHIDP_KEYBOARD_MODIFIER_STATE;
typedef BOOLEAN (DDKAPI *PHIDP_INSERT_SCANCODES)(
IN PVOID Context,
IN PCHAR NewScanCodes,
IN ULONG Length);
/*IN*/ PVOID Context,
/*IN*/ PCHAR NewScanCodes,
/*IN*/ ULONG Length);
typedef struct _USAGE_AND_PAGE {
USAGE Usage;
@ -88,23 +88,23 @@ HIDAPI
NTSTATUS
DDKAPI
HidP_TranslateUsageAndPagesToI8042ScanCodes(
IN PUSAGE_AND_PAGE ChangedUsageList,
IN ULONG UsageListLength,
IN HIDP_KEYBOARD_DIRECTION KeyAction,
IN OUT PHIDP_KEYBOARD_MODIFIER_STATE ModifierState,
IN PHIDP_INSERT_SCANCODES InsertCodesProcedure,
IN PVOID InsertCodesContext);
/*IN*/ PUSAGE_AND_PAGE ChangedUsageList,
/*IN*/ ULONG UsageListLength,
/*IN*/ HIDP_KEYBOARD_DIRECTION KeyAction,
/*IN OUT*/ PHIDP_KEYBOARD_MODIFIER_STATE ModifierState,
/*IN*/ PHIDP_INSERT_SCANCODES InsertCodesProcedure,
/*IN*/ PVOID InsertCodesContext);
HIDAPI
NTSTATUS
DDKAPI
HidP_TranslateUsagesToI8042ScanCodes(
IN PUSAGE ChangedUsageList,
IN ULONG UsageListLength,
IN HIDP_KEYBOARD_DIRECTION KeyAction,
IN OUT PHIDP_KEYBOARD_MODIFIER_STATE ModifierState,
IN PHIDP_INSERT_SCANCODES InsertCodesProcedure,
IN PVOID InsertCodesContext);
/*IN*/ PUSAGE ChangedUsageList,
/*IN*/ ULONG UsageListLength,
/*IN*/ HIDP_KEYBOARD_DIRECTION KeyAction,
/*IN OUT*/ PHIDP_KEYBOARD_MODIFIER_STATE ModifierState,
/*IN*/ PHIDP_INSERT_SCANCODES InsertCodesProcedure,
/*IN*/ PVOID InsertCodesContext);
typedef struct _HIDP_BUTTON_CAPS {
USAGE UsagePage;
@ -260,10 +260,10 @@ typedef enum _HIDP_REPORT_TYPE {
/*
* NTSTATUS
* HidP_GetButtonCaps(
* IN HIDP_REPORT_TYPE ReportType,
* OUT PHIDP_BUTTON_CAPS ButtonCaps,
* IN OUT PULONG ButtonCapsLength,
* IN PHIDP_PREPARSED_DATA PreparsedData);
* IN HIDP_REPORT_TYPE ReportType,
* OUT PHIDP_BUTTON_CAPS ButtonCaps,
* IN OUT PULONG ButtonCapsLength,
* IN PHIDP_PREPARSED_DATA PreparsedData);
*/
#define HidP_GetButtonCaps(_Type_, _Caps_, _Len_, _Data_) \
HidP_GetSpecificButtonCaps(_Type_, 0, 0, 0, _Caps_, _Len_, _Data_)
@ -271,14 +271,14 @@ typedef enum _HIDP_REPORT_TYPE {
/*
* NTSTATUS
* HidP_GetButtons(
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* OUT USAGE *UsageList,
* IN OUT ULONG *UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN PCHAR Report,
* IN ULONG ReportLength);
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* OUT USAGE *UsageList,
* IN OUT ULONG *UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN PCHAR Report,
* IN ULONG ReportLength);
*/
#define HidP_GetButtons(Rty, UPa, LCo, ULi, ULe, Ppd, Rep, RLe) \
HidP_GetUsages(Rty, UPa, LCo, ULi, ULe, Ppd, Rep, RLe)
@ -290,13 +290,13 @@ typedef enum _HIDP_REPORT_TYPE {
/*
* NTSTATUS
* HidP_GetButtonsEx(
* IN HIDP_REPORT_TYPE ReportType,
* IN USHORT LinkCollection,
* OUT PUSAGE_AND_PAGE ButtonList,
* IN OUT ULONG *UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN PCHAR Report,
* IN ULONG ReportLength);
* IN HIDP_REPORT_TYPE ReportType,
* IN USHORT LinkCollection,
* OUT PUSAGE_AND_PAGE ButtonList,
* IN OUT ULONG *UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN PCHAR Report,
* IN ULONG ReportLength);
*/
#define HidP_GetButtonsEx(RT, LC, BL, UL, PD, R, RL) \
HidP_GetUsagesEx(RT, LC, BL, UL, PD, R, RL)
@ -305,134 +305,134 @@ HIDAPI
NTSTATUS
DDKAPI
HidP_GetCaps(
IN PHIDP_PREPARSED_DATA PreparsedData,
OUT PHIDP_CAPS Capabilities);
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*OUT*/ PHIDP_CAPS Capabilities);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetData(
IN HIDP_REPORT_TYPE ReportType,
OUT PHIDP_DATA DataList,
IN OUT PULONG DataLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*OUT*/ PHIDP_DATA DataList,
/*IN OUT*/ PULONG DataLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetExtendedAttributes(
IN HIDP_REPORT_TYPE ReportType,
IN USHORT DataIndex,
IN PHIDP_PREPARSED_DATA PreparsedData,
OUT PHIDP_EXTENDED_ATTRIBUTES Attributes,
IN OUT PULONG LengthAttributes);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USHORT DataIndex,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*OUT*/ PHIDP_EXTENDED_ATTRIBUTES Attributes,
/*IN OUT*/ PULONG LengthAttributes);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetLinkCollectionNodes(
OUT PHIDP_LINK_COLLECTION_NODE LinkCollectionNodes,
IN OUT PULONG LinkCollectionNodesLength,
IN PHIDP_PREPARSED_DATA PreparsedData);
/*OUT*/ PHIDP_LINK_COLLECTION_NODE LinkCollectionNodes,
/*IN OUT*/ PULONG LinkCollectionNodesLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetScaledUsageValue(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection OPTIONAL,
IN USAGE Usage,
OUT PLONG UsageValue,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*IN*/ USAGE Usage,
/*OUT*/ PLONG UsageValue,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetSpecificButtonCaps(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection,
IN USAGE Usage,
OUT PHIDP_BUTTON_CAPS ButtonCaps,
IN OUT PULONG ButtonCapsLength,
IN PHIDP_PREPARSED_DATA PreparsedData);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection,
/*IN*/ USAGE Usage,
/*OUT*/ PHIDP_BUTTON_CAPS ButtonCaps,
/*IN OUT*/ PULONG ButtonCapsLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetSpecificValueCaps(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection,
IN USAGE Usage,
OUT PHIDP_VALUE_CAPS ValueCaps,
IN OUT PULONG ValueCapsLength,
IN PHIDP_PREPARSED_DATA PreparsedData);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection,
/*IN*/ USAGE Usage,
/*OUT*/ PHIDP_VALUE_CAPS ValueCaps,
/*IN OUT*/ PULONG ValueCapsLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetUsages(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection OPTIONAL,
OUT USAGE *UsageList,
IN OUT ULONG *UsageLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*OUT*/ USAGE *UsageList,
/*IN OUT*/ ULONG *UsageLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetUsagesEx(
IN HIDP_REPORT_TYPE ReportType,
IN USHORT LinkCollection,
OUT PUSAGE_AND_PAGE ButtonList,
IN OUT ULONG *UsageLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USHORT LinkCollection,
/*OUT*/ PUSAGE_AND_PAGE ButtonList,
/*IN OUT*/ ULONG *UsageLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetUsageValue(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection,
IN USAGE Usage,
OUT PULONG UsageValue,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection,
/*IN*/ USAGE Usage,
/*OUT*/ PULONG UsageValue,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_GetUsageValueArray(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection OPTIONAL,
IN USAGE Usage,
OUT PCHAR UsageValue,
IN USHORT UsageValueByteLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*IN*/ USAGE Usage,
/*OUT*/ PCHAR UsageValue,
/*IN*/ USHORT UsageValueByteLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
/*
* NTSTATUS
* HidP_GetValueCaps(
* IN HIDP_REPORT_TYPE ReportType,
* OUT PHIDP_VALUE_CAPS ValueCaps,
* IN OUT PULONG ValueCapsLength,
* IN PHIDP_PREPARSED_DATA PreparsedData);
* IN HIDP_REPORT_TYPE ReportType,
* OUT PHIDP_VALUE_CAPS ValueCaps,
* IN OUT PULONG ValueCapsLength,
* IN PHIDP_PREPARSED_DATA PreparsedData);
*/
#define HidP_GetValueCaps(_Type_, _Caps_, _Len_, _Data_) \
HidP_GetSpecificValueCaps (_Type_, 0, 0, 0, _Caps_, _Len_, _Data_)
@ -441,11 +441,11 @@ HIDAPI
NTSTATUS
DDKAPI
HidP_InitializeReportForID(
IN HIDP_REPORT_TYPE ReportType,
IN UCHAR ReportID,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ UCHAR ReportID,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
/*
* BOOLEAN
@ -459,28 +459,28 @@ HIDAPI
ULONG
DDKAPI
HidP_MaxDataListLength(
IN HIDP_REPORT_TYPE ReportType,
IN PHIDP_PREPARSED_DATA PreparsedData);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData);
HIDAPI
ULONG
DDKAPI
HidP_MaxUsageListLength(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage OPTIONAL,
IN PHIDP_PREPARSED_DATA PreparsedData);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage /*OPTIONAL*/,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData);
/*
* NTSTATUS
* HidP_SetButtons(
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* IN PUSAGE UsageList,
* IN OUT PULONG UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN OUT PCHAR Report,
* IN ULONG ReportLength);
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* IN PUSAGE UsageList,
* IN OUT PULONG UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN OUT PCHAR Report,
* IN ULONG ReportLength);
*/
#define HidP_SetButtons(RT, UP, LC, UL1, UL2, PD, R, RL) \
HidP_SetUsages(RT, UP, LC, UL1, UL2, PD, R, RL)
@ -489,77 +489,77 @@ HIDAPI
NTSTATUS
DDKAPI
HidP_SetData(
IN HIDP_REPORT_TYPE ReportType,
IN PHIDP_DATA DataList,
IN OUT PULONG DataLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ PHIDP_DATA DataList,
/*IN OUT*/ PULONG DataLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_SetScaledUsageValue(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection OPTIONAL,
IN USAGE Usage,
IN LONG UsageValue,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*IN*/ USAGE Usage,
/*IN*/ LONG UsageValue,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_SetUsages(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection, /* Optional */
IN PUSAGE UsageList,
IN OUT PULONG UsageLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*IN*/ PUSAGE UsageList,
/*IN OUT*/ PULONG UsageLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_SetUsageValue(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection,
IN USAGE Usage,
IN ULONG UsageValue,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection,
/*IN*/ USAGE Usage,
/*IN*/ ULONG UsageValue,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_SetUsageValueArray(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection OPTIONAL,
IN USAGE Usage,
IN PCHAR UsageValue,
IN USHORT UsageValueByteLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection /*OPTIONAL*/,
/*IN*/ USAGE Usage,
/*IN*/ PCHAR UsageValue,
/*IN*/ USHORT UsageValueByteLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
/*
* NTSTATUS
* HidP_UnsetButtons(
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* IN PUSAGE UsageList,
* IN OUT PULONG UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN OUT PCHAR Report,
* IN ULONG ReportLength);
* IN HIDP_REPORT_TYPE ReportType,
* IN USAGE UsagePage,
* IN USHORT LinkCollection,
* IN PUSAGE UsageList,
* IN OUT PULONG UsageLength,
* IN PHIDP_PREPARSED_DATA PreparsedData,
* IN OUT PCHAR Report,
* IN ULONG ReportLength);
*/
#define HidP_UnsetButtons(RT, UP, LC, UL1, UL2, PD, R, RL) \
HidP_UnsetUsages(RT, UP, LC, UL1, UL2, PD, R, RL)
@ -568,34 +568,34 @@ HIDAPI
NTSTATUS
DDKAPI
HidP_UnsetUsages(
IN HIDP_REPORT_TYPE ReportType,
IN USAGE UsagePage,
IN USHORT LinkCollection,
IN PUSAGE UsageList,
IN OUT PULONG UsageLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
IN OUT PCHAR Report,
IN ULONG ReportLength);
/*IN*/ HIDP_REPORT_TYPE ReportType,
/*IN*/ USAGE UsagePage,
/*IN*/ USHORT LinkCollection,
/*IN*/ PUSAGE UsageList,
/*IN OUT*/ PULONG UsageLength,
/*IN*/ PHIDP_PREPARSED_DATA PreparsedData,
/*IN OUT*/ PCHAR Report,
/*IN*/ ULONG ReportLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_UsageAndPageListDifference(
IN PUSAGE_AND_PAGE PreviousUsageList,
IN PUSAGE_AND_PAGE CurrentUsageList,
OUT PUSAGE_AND_PAGE BreakUsageList,
OUT PUSAGE_AND_PAGE MakeUsageList,
IN ULONG UsageListLength);
/*IN*/ PUSAGE_AND_PAGE PreviousUsageList,
/*IN*/ PUSAGE_AND_PAGE CurrentUsageList,
/*OUT*/ PUSAGE_AND_PAGE BreakUsageList,
/*OUT*/ PUSAGE_AND_PAGE MakeUsageList,
/*IN*/ ULONG UsageListLength);
HIDAPI
NTSTATUS
DDKAPI
HidP_UsageListDifference(
IN PUSAGE PreviousUsageList,
IN PUSAGE CurrentUsageList,
OUT PUSAGE BreakUsageList,
OUT PUSAGE MakeUsageList,
IN ULONG UsageListLength);
/*IN*/ PUSAGE PreviousUsageList,
/*IN*/ PUSAGE CurrentUsageList,
/*OUT*/ PUSAGE BreakUsageList,
/*OUT*/ PUSAGE MakeUsageList,
/*IN*/ ULONG UsageListLength);
#ifdef __cplusplus
}

View File

@ -83,9 +83,9 @@ typedef struct _CONNECT_DATA {
typedef VOID
(STDAPICALLTYPE *PSERVICE_CALLBACK_ROUTINE)(
IN PVOID NormalContext,
IN PVOID SystemArgument1,
IN PVOID SystemArgument2,
IN OUT PVOID SystemArgument3);
/*IN*/ PVOID NormalContext,
/*IN*/ PVOID SystemArgument1,
/*IN*/ PVOID SystemArgument2,
/*IN OUT*/ PVOID SystemArgument3);
#endif /* __KBDMOU_H */

View File

@ -58,8 +58,8 @@ CHANGERAPI
PVOID
DDKAPI
ChangerClassAllocatePool(
IN POOL_TYPE PoolType,
IN ULONG NumberOfBytes);
/*IN*/ POOL_TYPE PoolType,
/*IN*/ ULONG NumberOfBytes);
VOID
ChangerClassDebugPrint(
@ -71,22 +71,22 @@ CHANGERAPI
PVOID
DDKAPI
ChangerClassFreePool(
IN PVOID PoolToFree);
/*IN*/ PVOID PoolToFree);
CHANGERAPI
NTSTATUS
DDKAPI
ChangerClassSendSrbSynchronous(
IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_REQUEST_BLOCK Srb,
IN PVOID Buffer,
IN ULONG BufferSize,
IN BOOLEAN WriteToDevice);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ PSCSI_REQUEST_BLOCK Srb,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG BufferSize,
/*IN*/ BOOLEAN WriteToDevice);
typedef NTSTATUS DDKAPI
(*CHANGER_INITIALIZE)(
IN PDEVICE_OBJECT DeviceObject);
/*IN*/ PDEVICE_OBJECT DeviceObject);
typedef ULONG DDKAPI
(*CHANGER_EXTENSION_SIZE)(
@ -101,13 +101,13 @@ typedef VOID DDKAPI
typedef NTSTATUS DDKAPI
(*CHANGER_COMMAND_ROUTINE)(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ PIRP Irp);
typedef NTSTATUS DDKAPI
(*CHANGER_PERFORM_DIAGNOSTICS)(
IN PDEVICE_OBJECT DeviceObject,
OUT PWMI_CHANGER_PROBLEM_DEVICE_ERROR ChangerDeviceError);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*OUT*/ PWMI_CHANGER_PROBLEM_DEVICE_ERROR ChangerDeviceError);
typedef struct _MCD_INIT_DATA {
ULONG InitDataSize;
@ -132,9 +132,9 @@ CHANGERAPI
NTSTATUS
DDKAPI
ChangerClassInitialize(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
IN PMCD_INIT_DATA MCDInitData);
/*IN*/ PDRIVER_OBJECT DriverObject,
/*IN*/ PUNICODE_STRING RegistryPath,
/*IN*/ PMCD_INIT_DATA MCDInitData);
#ifdef __cplusplus
}

View File

@ -66,9 +66,9 @@ typedef struct _VIDEO_ACCESS_RANGE {
typedef VOID DDKAPI
(*PBANKED_SECTION_ROUTINE)(
IN ULONG ReadBank,
IN ULONG WriteBank,
IN PVOID Context);
/*IN*/ ULONG ReadBank,
/*IN*/ ULONG WriteBank,
/*IN*/ PVOID Context);
#ifdef __cplusplus
}

View File

@ -158,30 +158,30 @@ typedef struct _MODE_CAPABILITIES_PAGE {
typedef BOOLEAN DDKAPI
(*TAPE_VERIFY_INQUIRY_ROUTINE)(
IN PINQUIRYDATA InquiryData,
IN PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage);
/*IN*/ PINQUIRYDATA InquiryData,
/*IN*/ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage);
typedef VOID DDKAPI
(*TAPE_EXTENSION_INIT_ROUTINE)(
IN PVOID MinitapeExtension,
IN PINQUIRYDATA InquiryData,
IN PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage);
/*IN*/ PVOID MinitapeExtension,
/*IN*/ PINQUIRYDATA InquiryData,
/*IN*/ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage);
typedef VOID DDKAPI
(*TAPE_ERROR_ROUTINE)(
IN PVOID MinitapeExtension,
IN PSCSI_REQUEST_BLOCK Srb,
IN OUT PTAPE_STATUS TapeStatus);
/*IN*/ PVOID MinitapeExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb,
/*IN OUT*/ PTAPE_STATUS TapeStatus);
typedef TAPE_STATUS DDKAPI
(*TAPE_PROCESS_COMMAND_ROUTINE)(
IN OUT PVOID MinitapeExtension,
IN OUT PVOID CommandExtension,
IN OUT PVOID CommandParameters,
IN OUT PSCSI_REQUEST_BLOCK Srb,
IN ULONG CallNumber,
IN TAPE_STATUS StatusOfLastCommand,
IN OUT PULONG RetryFlags);
/*IN OUT*/ PVOID MinitapeExtension,
/*IN OUT*/ PVOID CommandExtension,
/*IN OUT*/ PVOID CommandParameters,
/*IN OUT*/ PSCSI_REQUEST_BLOCK Srb,
/*IN*/ ULONG CallNumber,
/*IN*/ TAPE_STATUS StatusOfLastCommand,
/*IN OUT*/ PULONG RetryFlags);
#define TAPE_RETRY_MASK 0x0000FFFF
#define IGNORE_ERRORS 0x00010000
@ -206,7 +206,7 @@ typedef struct _TAPE_INIT_DATA {
TAPE_PROCESS_COMMAND_ROUTINE SetMediaParameters;
TAPE_PROCESS_COMMAND_ROUTINE SetPosition;
TAPE_PROCESS_COMMAND_ROUTINE WriteMarks;
TAPE_PROCESS_COMMAND_ROUTINE PreProcessReadWrite; /* optional */
TAPE_PROCESS_COMMAND_ROUTINE PreProcessReadWrite /* OPTIONAL */;
} TAPE_INIT_DATA, *PTAPE_INIT_DATA;
typedef struct _TAPE_PHYS_POSITION {

File diff suppressed because it is too large Load Diff

View File

@ -963,256 +963,256 @@ typedef struct _VAR_STRING {
} VAR_STRING, *PVAR_STRING;
typedef struct _NDIS_TAPI_ANSWER {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulUserUserInfoSize;
IN UCHAR UserUserInfo[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulUserUserInfoSize;
/*IN*/ UCHAR UserUserInfo[1];
} NDIS_TAPI_ANSWER, *PNDIS_TAPI_ANSWER;
typedef struct _NDIS_TAPI_CLOSE {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
} NDIS_TAPI_CLOSE, *PNDIS_TAPI_CLOSE;
typedef struct _NDIS_TAPI_CLOSE_CALL {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
} NDIS_TAPI_CLOSE_CALL, *PNDIS_TAPI_CLOSE_CALL;
typedef struct _NDIS_TAPI_CONDITIONAL_MEDIA_DETECTION {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulMediaModes;
IN LINE_CALL_PARAMS LineCallParams;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulMediaModes;
/*IN*/ LINE_CALL_PARAMS LineCallParams;
} NDIS_TAPI_CONDITIONAL_MEDIA_DETECTION, *PNDIS_TAPI_CONDITIONAL_MEDIA_DETECTION;
typedef struct _NDIS_TAPI_DROP {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulUserUserInfoSize;
IN UCHAR UserUserInfo[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulUserUserInfoSize;
/*IN*/ UCHAR UserUserInfo[1];
} NDIS_TAPI_DROP, *PNDIS_TAPI_DROP;
typedef struct _NDIS_TAPI_PROVIDER_SHUTDOWN {
IN ULONG ulRequestID;
/*IN*/ ULONG ulRequestID;
} NDIS_TAPI_PROVIDER_SHUTDOWN, *PNDIS_TAPI_PROVIDER_SHUTDOWN;
typedef struct _NDIS_TAPI_SET_APP_SPECIFIC {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulAppSpecific;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulAppSpecific;
} NDIS_TAPI_SET_APP_SPECIFIC, *PNDIS_TAPI_SET_APP_SPECIFIC;
typedef struct _NDIS_TAPI_SET_CALL_PARAMS {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulBearerMode;
IN ULONG ulMinRate;
IN ULONG ulMaxRate;
IN BOOLEAN bSetLineDialParams;
IN LINE_DIAL_PARAMS LineDialParams;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulBearerMode;
/*IN*/ ULONG ulMinRate;
/*IN*/ ULONG ulMaxRate;
/*IN*/ BOOLEAN bSetLineDialParams;
/*IN*/ LINE_DIAL_PARAMS LineDialParams;
} NDIS_TAPI_SET_CALL_PARAMS, *PNDIS_TAPI_SET_CALL_PARAMS;
typedef struct _NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulMediaModes;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulMediaModes;
} NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION, *PNDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION;
typedef struct _NDIS_TAPI_SET_DEV_CONFIG {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulDeviceClassSize;
IN ULONG ulDeviceClassOffset;
IN ULONG ulDeviceConfigSize;
IN UCHAR DeviceConfig[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulDeviceClassSize;
/*IN*/ ULONG ulDeviceClassOffset;
/*IN*/ ULONG ulDeviceConfigSize;
/*IN*/ UCHAR DeviceConfig[1];
} NDIS_TAPI_SET_DEV_CONFIG, *PNDIS_TAPI_SET_DEV_CONFIG;
typedef struct _NDIS_TAPI_SET_MEDIA_MODE {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulMediaMode;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulMediaMode;
} NDIS_TAPI_SET_MEDIA_MODE, *PNDIS_TAPI_SET_MEDIA_MODE;
typedef struct _NDIS_TAPI_SET_STATUS_MESSAGES {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulLineStates;
IN ULONG ulAddressStates;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulLineStates;
/*IN*/ ULONG ulAddressStates;
} NDIS_TAPI_SET_STATUS_MESSAGES, *PNDIS_TAPI_SET_STATUS_MESSAGES;
typedef struct _NDIS_TAPI_ACCEPT {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulUserUserInfoSize;
IN UCHAR UserUserInfo[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulUserUserInfoSize;
/*IN*/ UCHAR UserUserInfo[1];
} NDIS_TAPI_ACCEPT, *PNDIS_TAPI_ACCEPT;
typedef struct _NDIS_TAPI_DIAL {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulDestAddressSize;
IN CHAR szDestAddress[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulDestAddressSize;
/*IN*/ CHAR szDestAddress[1];
} NDIS_TAPI_DIAL, *PNDIS_TAPI_DIAL;
typedef struct _NDIS_TAPI_EVENT {
IN HTAPI_LINE htLine;
IN HTAPI_CALL htCall;
IN ULONG ulMsg;
IN ULONG ulParam1;
IN ULONG ulParam2;
IN ULONG ulParam3;
/*IN*/ HTAPI_LINE htLine;
/*IN*/ HTAPI_CALL htCall;
/*IN*/ ULONG ulMsg;
/*IN*/ ULONG ulParam1;
/*IN*/ ULONG ulParam2;
/*IN*/ ULONG ulParam3;
} NDIS_TAPI_EVENT, *PNDIS_TAPI_EVENT;
typedef struct _NDIS_TAPI_OPEN {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN HTAPI_LINE htLine;
OUT HDRV_LINE hdLine;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ HTAPI_LINE htLine;
/*OUT*/ HDRV_LINE hdLine;
} NDIS_TAPI_OPEN, *PNDIS_TAPI_OPEN;
typedef struct _NDIS_TAPI_SECURE_CALL {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
} NDIS_TAPI_SECURE_CALL, *PNDIS_TAPI_SECURE_CALL;
typedef struct _NDIS_TAPI_SELECT_EXT_VERSION {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulExtVersion;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulExtVersion;
} NDIS_TAPI_SELECT_EXT_VERSION, *PNDIS_TAPI_SELECT_EXT_VERSION;
typedef struct _NDIS_TAPI_SEND_USER_USER_INFO {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
IN ULONG ulUserUserInfoSize;
IN UCHAR UserUserInfo[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulUserUserInfoSize;
/*IN*/ UCHAR UserUserInfo[1];
} NDIS_TAPI_SEND_USER_USER_INFO, *PNDIS_TAPI_SEND_USER_USER_INFO;
typedef struct _NDIS_TAPI_CONFIG_DIALOG {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulDeviceClassSize;
IN ULONG ulDeviceClassOffset;
IN ULONG ulLibraryNameTotalSize;
OUT ULONG ulLibraryNameNeededSize;
OUT CHAR szLibraryName[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulDeviceClassSize;
/*IN*/ ULONG ulDeviceClassOffset;
/*IN*/ ULONG ulLibraryNameTotalSize;
/*OUT*/ ULONG ulLibraryNameNeededSize;
/*OUT*/ CHAR szLibraryName[1];
} NDIS_TAPI_CONFIG_DIALOG, *PNDIS_TAPI_CONFIG_DIALOG;
typedef struct _NDIS_TAPI_DEV_SPECIFIC {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulAddressID;
IN HDRV_CALL hdCall;
IN OUT ULONG ulParamsSize;
IN OUT UCHAR Params[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulAddressID;
/*IN*/ HDRV_CALL hdCall;
/*IN OUT*/ ULONG ulParamsSize;
/*IN OUT*/ UCHAR Params[1];
} NDIS_TAPI_DEV_SPECIFIC, *PNDIS_TAPI_DEV_SPECIFIC;
typedef struct _NDIS_TAPI_GET_ADDRESS_CAPS {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulAddressID;
IN ULONG ulExtVersion;
OUT LINE_ADDRESS_CAPS LineAddressCaps;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulAddressID;
/*IN*/ ULONG ulExtVersion;
/*OUT*/ LINE_ADDRESS_CAPS LineAddressCaps;
} NDIS_TAPI_GET_ADDRESS_CAPS, *PNDIS_TAPI_GET_ADDRESS_CAPS;
typedef struct _NDIS_TAPI_GET_ADDRESS_ID {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
OUT ULONG ulAddressID;
IN ULONG ulAddressMode;
IN ULONG ulAddressSize;
IN CHAR szAddress[1];
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*OUT*/ ULONG ulAddressID;
/*IN*/ ULONG ulAddressMode;
/*IN*/ ULONG ulAddressSize;
/*IN*/ CHAR szAddress[1];
} NDIS_TAPI_GET_ADDRESS_ID, *PNDIS_TAPI_GET_ADDRESS_ID;
typedef struct _NDIS_TAPI_GET_ADDRESS_STATUS {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulAddressID;
OUT LINE_ADDRESS_STATUS LineAddressStatus;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulAddressID;
/*OUT*/ LINE_ADDRESS_STATUS LineAddressStatus;
} NDIS_TAPI_GET_ADDRESS_STATUS, *PNDIS_TAPI_GET_ADDRESS_STATUS;
typedef struct _NDIS_TAPI_GET_CALL_ADDRESS_ID {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
OUT ULONG ulAddressID;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*OUT*/ ULONG ulAddressID;
} NDIS_TAPI_GET_CALL_ADDRESS_ID, *PNDIS_TAPI_GET_CALL_ADDRESS_ID;
typedef struct _NDIS_TAPI_GET_CALL_INFO {
ULONG ulRequestID;
IN HDRV_CALL hdCall;
OUT LINE_CALL_INFO LineCallInfo;
/*IN*/ HDRV_CALL hdCall;
/*OUT*/ LINE_CALL_INFO LineCallInfo;
} NDIS_TAPI_GET_CALL_INFO, *PNDIS_TAPI_GET_CALL_INFO;
typedef struct _NDIS_TAPI_GET_CALL_STATUS {
IN ULONG ulRequestID;
IN HDRV_CALL hdCall;
OUT LINE_CALL_STATUS LineCallStatus;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_CALL hdCall;
/*OUT*/ LINE_CALL_STATUS LineCallStatus;
} NDIS_TAPI_GET_CALL_STATUS, *PNDIS_TAPI_GET_CALL_STATUS;
typedef struct _NDIS_TAPI_GET_DEV_CAPS {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulExtVersion;
OUT LINE_DEV_CAPS LineDevCaps;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulExtVersion;
/*OUT*/ LINE_DEV_CAPS LineDevCaps;
} NDIS_TAPI_GET_DEV_CAPS, *PNDIS_TAPI_GET_DEV_CAPS;
typedef struct _NDIS_TAPI_GET_DEV_CONFIG {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulDeviceClassSize;
IN ULONG ulDeviceClassOffset;
OUT VAR_STRING DeviceConfig;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulDeviceClassSize;
/*IN*/ ULONG ulDeviceClassOffset;
/*OUT*/ VAR_STRING DeviceConfig;
} NDIS_TAPI_GET_DEV_CONFIG, *PNDIS_TAPI_GET_DEV_CONFIG;
typedef struct _NDIS_TAPI_GET_EXTENSION_ID {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
OUT LINE_EXTENSION_ID LineExtensionID;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*OUT*/ LINE_EXTENSION_ID LineExtensionID;
} NDIS_TAPI_GET_EXTENSION_ID, *PNDIS_TAPI_GET_EXTENSION_ID;
typedef struct _NDIS_TAPI_GET_ID {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN ULONG ulAddressID;
IN HDRV_CALL hdCall;
IN ULONG ulSelect;
IN ULONG ulDeviceClassSize;
IN ULONG ulDeviceClassOffset;
OUT VAR_STRING DeviceID;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ ULONG ulAddressID;
/*IN*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulSelect;
/*IN*/ ULONG ulDeviceClassSize;
/*IN*/ ULONG ulDeviceClassOffset;
/*OUT*/ VAR_STRING DeviceID;
} NDIS_TAPI_GET_ID, *PNDIS_TAPI_GET_ID;
typedef struct _NDIS_TAPI_GET_LINE_DEV_STATUS {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
OUT LINE_DEV_STATUS LineDevStatus;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*OUT*/ LINE_DEV_STATUS LineDevStatus;
} NDIS_TAPI_GET_LINE_DEV_STATUS, *PNDIS_TAPI_GET_LINE_DEV_STATUS;
typedef struct _NDIS_TAPI_MAKE_CALL {
IN ULONG ulRequestID;
IN HDRV_LINE hdLine;
IN HTAPI_CALL htCall;
OUT HDRV_CALL hdCall;
IN ULONG ulDestAddressSize;
IN ULONG ulDestAddressOffset;
IN BOOLEAN bUseDefaultLineCallParams;
IN LINE_CALL_PARAMS LineCallParams;
/*IN*/ ULONG ulRequestID;
/*IN*/ HDRV_LINE hdLine;
/*IN*/ HTAPI_CALL htCall;
/*OUT*/ HDRV_CALL hdCall;
/*IN*/ ULONG ulDestAddressSize;
/*IN*/ ULONG ulDestAddressOffset;
/*IN*/ BOOLEAN bUseDefaultLineCallParams;
/*IN*/ LINE_CALL_PARAMS LineCallParams;
} NDIS_TAPI_MAKE_CALL, *PNDIS_TAPI_MAKE_CALL;
typedef struct _NDIS_TAPI_NEGOTIATE_EXT_VERSION {
IN ULONG ulRequestID;
IN ULONG ulDeviceID;
IN ULONG ulLowVersion;
IN ULONG ulHighVersion;
OUT ULONG ulExtVersion;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceID;
/*IN*/ ULONG ulLowVersion;
/*IN*/ ULONG ulHighVersion;
/*OUT*/ ULONG ulExtVersion;
} NDIS_TAPI_NEGOTIATE_EXT_VERSION, *PNDIS_TAPI_NEGOTIATE_EXT_VERSION;
typedef struct _NDIS_TAPI_PROVIDER_INITIALIZE {
IN ULONG ulRequestID;
IN ULONG ulDeviceIDBase;
OUT ULONG ulNumLineDevs;
OUT ULONG ulProviderID;
/*IN*/ ULONG ulRequestID;
/*IN*/ ULONG ulDeviceIDBase;
/*OUT*/ ULONG ulNumLineDevs;
/*OUT*/ ULONG ulProviderID;
} NDIS_TAPI_PROVIDER_INITIALIZE, *PNDIS_TAPI_PROVIDER_INITIALIZE;
@ -1225,25 +1225,25 @@ typedef struct _NDIS_TAPI_PROVIDER_INITIALIZE {
#define AF_TAPI_SAP_TYPE 0x00008000
typedef struct _CO_TAPI_ADDRESS_CAPS {
IN ULONG ulLineID;
IN ULONG ulAddressID;
OUT ULONG ulFlags;
OUT LINE_ADDRESS_CAPS LineAddressCaps;
/*IN*/ ULONG ulLineID;
/*IN*/ ULONG ulAddressID;
/*OUT*/ ULONG ulFlags;
/*OUT*/ LINE_ADDRESS_CAPS LineAddressCaps;
} CO_TAPI_ADDRESS_CAPS, *PCO_TAPI_ADDRESS_CAPS;
/* CO_TAPI_CM_CAPS.ulFlags constants */
#define CO_TAPI_FLAG_PER_LINE_CAPS 0x00000001
typedef struct _CO_TAPI_CM_CAPS {
OUT ULONG ulCoTapiVersion;
OUT ULONG ulNumLines;
OUT ULONG ulFlags;
/*OUT*/ ULONG ulCoTapiVersion;
/*OUT*/ ULONG ulNumLines;
/*OUT*/ ULONG ulFlags;
} CO_TAPI_CM_CAPS, *PCO_TAPI_CM_CAPS;
typedef struct _CO_TAPI_CALL_DIAGNOSTICS {
OUT ULONG ulOrigin;
OUT ULONG ulReason;
OUT NDIS_VAR_DATA_DESC DiagInfo;
/*OUT*/ ULONG ulOrigin;
/*OUT*/ ULONG ulReason;
/*OUT*/ NDIS_VAR_DATA_DESC DiagInfo;
} CO_TAPI_CALL_DIAGNOSTICS, *PCO_TAPI_CALL_DIAGNOSTICS;
@ -1251,24 +1251,24 @@ typedef struct _CO_TAPI_CALL_DIAGNOSTICS {
#define CO_TAPI_FLAG_PER_ADDRESS_CAPS 0x00000001
typedef struct _CO_TAPI_LINE_CAPS {
IN ULONG ulLineID;
OUT ULONG ulFlags;
OUT LINE_DEV_CAPS LineDevCaps;
/*IN*/ ULONG ulLineID;
/*OUT*/ ULONG ulFlags;
/*OUT*/ LINE_DEV_CAPS LineDevCaps;
} CO_TAPI_LINE_CAPS, *PCO_TAPI_LINE_CAPS;
typedef struct _CO_TAPI_TRANSLATE_NDIS_CALLPARAMS {
IN ULONG ulFlags;
IN NDIS_VAR_DATA_DESC NdisCallParams;
OUT NDIS_VAR_DATA_DESC LineCallInfo;
/*IN*/ ULONG ulFlags;
/*IN*/ NDIS_VAR_DATA_DESC NdisCallParams;
/*OUT*/ NDIS_VAR_DATA_DESC LineCallInfo;
} CO_TAPI_TRANSLATE_NDIS_CALLPARAMS, *PCO_TAPI_TRANSLATE_NDIS_CALLPARAMS;
typedef struct _CO_TAPI_TRANSLATE_TAPI_CALLPARAMS {
IN ULONG ulLineID;
IN ULONG ulAddressID;
IN ULONG ulFlags;
IN NDIS_VAR_DATA_DESC DestAddress;
IN NDIS_VAR_DATA_DESC LineCallParams;
OUT NDIS_VAR_DATA_DESC NdisCallParams;
/*IN*/ ULONG ulLineID;
/*IN*/ ULONG ulAddressID;
/*IN*/ ULONG ulFlags;
/*IN*/ NDIS_VAR_DATA_DESC DestAddress;
/*IN*/ NDIS_VAR_DATA_DESC LineCallParams;
/*OUT*/ NDIS_VAR_DATA_DESC NdisCallParams;
} CO_TAPI_TRANSLATE_TAPI_CALLPARAMS, *PCO_TAPI_TRANSLATE_TAPI_CALLPARAMS;
/* CO_TAPI_TRANSLATE_SAP.ulLineID constants */
@ -1278,27 +1278,27 @@ typedef struct _CO_TAPI_TRANSLATE_TAPI_CALLPARAMS {
#define CO_TAPI_ADDRESS_ID_UNSPECIFIED 0xFFFFFFFF
typedef struct _CO_TAPI_TRANSLATE_SAP {
IN ULONG ulLineID;
IN ULONG ulAddressID;
IN ULONG ulMediaModes;
IN ULONG Reserved;
OUT ULONG NumberOfSaps;
OUT NDIS_VAR_DATA_DESC NdisSapParams[1];
/*IN*/ ULONG ulLineID;
/*IN*/ ULONG ulAddressID;
/*IN*/ ULONG ulMediaModes;
/*IN*/ ULONG Reserved;
/*OUT*/ ULONG NumberOfSaps;
/*OUT*/ NDIS_VAR_DATA_DESC NdisSapParams[1];
} CO_AF_TAPI_SAP, *PCO_AF_TAPI_SAP;
typedef struct _CO_AF_TAPI_INCOMING_CALL_PARAMETERS {
IN ULONG ulLineID;
IN ULONG ulAddressID;
IN ULONG ulFlags;
IN NDIS_VAR_DATA_DESC LineCallInfo;
/*IN*/ ULONG ulLineID;
/*IN*/ ULONG ulAddressID;
/*IN*/ ULONG ulFlags;
/*IN*/ NDIS_VAR_DATA_DESC LineCallInfo;
} CO_AF_TAPI_INCOMING_CALL_PARAMETERS, *PCO_AF_TAPI_INCOMING_CALL_PARAMETERS;
typedef struct _CO_AF_TAPI_MAKE_CALL_PARAMETERS {
IN ULONG ulLineID;
IN ULONG ulAddressID;
IN ULONG ulFlags;
IN NDIS_VAR_DATA_DESC DestAddress;
IN NDIS_VAR_DATA_DESC LineCallParams;
/*IN*/ ULONG ulLineID;
/*IN*/ ULONG ulAddressID;
/*IN*/ ULONG ulFlags;
/*IN*/ NDIS_VAR_DATA_DESC DestAddress;
/*IN*/ NDIS_VAR_DATA_DESC LineCallParams;
} CO_AF_TAPI_MAKE_CALL_PARAMETERS, *PCO_AF_TAPI_MAKE_CALL_PARAMETERS;
#ifdef __cplusplus

View File

@ -76,43 +76,43 @@ extern "C" {
#define TAPI_PROVIDER 0x80000000
typedef struct _NDIS_WAN_INFO {
OUT ULONG MaxFrameSize;
OUT ULONG MaxTransmit;
OUT ULONG HeaderPadding;
OUT ULONG TailPadding;
OUT ULONG Endpoints;
OUT UINT MemoryFlags;
OUT NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress;
OUT ULONG FramingBits;
OUT ULONG DesiredACCM;
/*OUT*/ ULONG MaxFrameSize;
/*OUT*/ ULONG MaxTransmit;
/*OUT*/ ULONG HeaderPadding;
/*OUT*/ ULONG TailPadding;
/*OUT*/ ULONG Endpoints;
/*OUT*/ UINT MemoryFlags;
/*OUT*/ NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress;
/*OUT*/ ULONG FramingBits;
/*OUT*/ ULONG DesiredACCM;
} NDIS_WAN_INFO, *PNDIS_WAN_INFO;
typedef struct _NDIS_WAN_GET_LINK_INFO {
IN NDIS_HANDLE NdisLinkHandle;
OUT ULONG MaxSendFrameSize;
OUT ULONG MaxRecvFrameSize;
OUT ULONG HeaderPadding;
OUT ULONG TailPadding;
OUT ULONG SendFramingBits;
OUT ULONG RecvFramingBits;
OUT ULONG SendCompressionBits;
OUT ULONG RecvCompressionBits;
OUT ULONG SendACCM;
OUT ULONG RecvACCM;
/*IN*/ NDIS_HANDLE NdisLinkHandle;
/*OUT*/ ULONG MaxSendFrameSize;
/*OUT*/ ULONG MaxRecvFrameSize;
/*OUT*/ ULONG HeaderPadding;
/*OUT*/ ULONG TailPadding;
/*OUT*/ ULONG SendFramingBits;
/*OUT*/ ULONG RecvFramingBits;
/*OUT*/ ULONG SendCompressionBits;
/*OUT*/ ULONG RecvCompressionBits;
/*OUT*/ ULONG SendACCM;
/*OUT*/ ULONG RecvACCM;
} NDIS_WAN_GET_LINK_INFO, *PNDIS_WAN_GET_LINK_INFO;
typedef struct _NDIS_WAN_SET_LINK_INFO {
IN NDIS_HANDLE NdisLinkHandle;
IN ULONG MaxSendFrameSize;
IN ULONG MaxRecvFrameSize;
IN ULONG HeaderPadding;
IN ULONG TailPadding;
IN ULONG SendFramingBits;
IN ULONG RecvFramingBits;
IN ULONG SendCompressionBits;
IN ULONG RecvCompressionBits;
IN ULONG SendACCM;
IN ULONG RecvACCM;
/*IN*/ NDIS_HANDLE NdisLinkHandle;
/*IN*/ ULONG MaxSendFrameSize;
/*IN*/ ULONG MaxRecvFrameSize;
/*IN*/ ULONG HeaderPadding;
/*IN*/ ULONG TailPadding;
/*IN*/ ULONG SendFramingBits;
/*IN*/ ULONG RecvFramingBits;
/*IN*/ ULONG SendCompressionBits;
/*IN*/ ULONG RecvCompressionBits;
/*IN*/ ULONG SendACCM;
/*IN*/ ULONG RecvACCM;
} NDIS_WAN_SET_LINK_INFO, *PNDIS_WAN_SET_LINK_INFO;
/* NDIS_WAN_COMPRESS_INFO.MSCompType constants */
@ -148,33 +148,33 @@ typedef struct _NDIS_WAN_COMPRESS_INFO {
typedef NDIS_WAN_COMPRESS_INFO *PNDIS_WAN_COMPRESS_INFO;
typedef struct _NDIS_WAN_GET_COMP_INFO {
IN NDIS_HANDLE NdisLinkHandle;
OUT NDIS_WAN_COMPRESS_INFO SendCapabilities;
OUT NDIS_WAN_COMPRESS_INFO RecvCapabilities;
/*IN*/ NDIS_HANDLE NdisLinkHandle;
/*OUT*/ NDIS_WAN_COMPRESS_INFO SendCapabilities;
/*OUT*/ NDIS_WAN_COMPRESS_INFO RecvCapabilities;
} NDIS_WAN_GET_COMP_INFO, *PNDIS_WAN_GET_COMP_INFO;
typedef struct _NDIS_WAN_SET_COMP_INFO {
IN NDIS_HANDLE NdisLinkHandle;
IN NDIS_WAN_COMPRESS_INFO SendCapabilities;
IN NDIS_WAN_COMPRESS_INFO RecvCapabilities;
/*IN*/ NDIS_HANDLE NdisLinkHandle;
/*IN*/ NDIS_WAN_COMPRESS_INFO SendCapabilities;
/*IN*/ NDIS_WAN_COMPRESS_INFO RecvCapabilities;
} NDIS_WAN_SET_COMP_INFO, *PNDIS_WAN_SET_COMP_INFO;
typedef struct _NDIS_WAN_GET_STATS_INFO {
IN NDIS_HANDLE NdisLinkHandle;
OUT ULONG BytesSent;
OUT ULONG BytesRcvd;
OUT ULONG FramesSent;
OUT ULONG FramesRcvd;
OUT ULONG CRCErrors;
OUT ULONG TimeoutErrors;
OUT ULONG AlignmentErrors;
OUT ULONG SerialOverrunErrors;
OUT ULONG FramingErrors;
OUT ULONG BufferOverrunErrors;
OUT ULONG BytesTransmittedUncompressed;
OUT ULONG BytesReceivedUncompressed;
OUT ULONG BytesTransmittedCompressed;
OUT ULONG BytesReceivedCompressed;
/*IN*/ NDIS_HANDLE NdisLinkHandle;
/*OUT*/ ULONG BytesSent;
/*OUT*/ ULONG BytesRcvd;
/*OUT*/ ULONG FramesSent;
/*OUT*/ ULONG FramesRcvd;
/*OUT*/ ULONG CRCErrors;
/*OUT*/ ULONG TimeoutErrors;
/*OUT*/ ULONG AlignmentErrors;
/*OUT*/ ULONG SerialOverrunErrors;
/*OUT*/ ULONG FramingErrors;
/*OUT*/ ULONG BufferOverrunErrors;
/*OUT*/ ULONG BytesTransmittedUncompressed;
/*OUT*/ ULONG BytesReceivedUncompressed;
/*OUT*/ ULONG BytesTransmittedCompressed;
/*OUT*/ ULONG BytesReceivedCompressed;
} NDIS_WAN_GET_STATS_INFO, *PNDIS_WAN_GET_STATS_INFO;
#define NdisMWanInitializeWrapper(NdisWrapperHandle, \
@ -189,59 +189,59 @@ typedef struct _NDIS_WAN_GET_STATS_INFO {
}
typedef struct _NDIS_WAN_CO_INFO {
OUT ULONG MaxFrameSize;
OUT ULONG MaxSendWindow;
OUT ULONG FramingBits;
OUT ULONG DesiredACCM;
/*OUT*/ ULONG MaxFrameSize;
/*OUT*/ ULONG MaxSendWindow;
/*OUT*/ ULONG FramingBits;
/*OUT*/ ULONG DesiredACCM;
} NDIS_WAN_CO_INFO, *PNDIS_WAN_CO_INFO;
typedef struct _NDIS_WAN_CO_GET_LINK_INFO {
OUT ULONG MaxSendFrameSize;
OUT ULONG MaxRecvFrameSize;
OUT ULONG SendFramingBits;
OUT ULONG RecvFramingBits;
OUT ULONG SendCompressionBits;
OUT ULONG RecvCompressionBits;
OUT ULONG SendACCM;
OUT ULONG RecvACCM;
/*OUT*/ ULONG MaxSendFrameSize;
/*OUT*/ ULONG MaxRecvFrameSize;
/*OUT*/ ULONG SendFramingBits;
/*OUT*/ ULONG RecvFramingBits;
/*OUT*/ ULONG SendCompressionBits;
/*OUT*/ ULONG RecvCompressionBits;
/*OUT*/ ULONG SendACCM;
/*OUT*/ ULONG RecvACCM;
} NDIS_WAN_CO_GET_LINK_INFO, *PNDIS_WAN_CO_GET_LINK_INFO;
typedef struct _NDIS_WAN_CO_SET_LINK_INFO {
IN ULONG MaxSendFrameSize;
IN ULONG MaxRecvFrameSize;
IN ULONG SendFramingBits;
IN ULONG RecvFramingBits;
IN ULONG SendCompressionBits;
IN ULONG RecvCompressionBits;
IN ULONG SendACCM;
IN ULONG RecvACCM;
/*IN*/ ULONG MaxSendFrameSize;
/*IN*/ ULONG MaxRecvFrameSize;
/*IN*/ ULONG SendFramingBits;
/*IN*/ ULONG RecvFramingBits;
/*IN*/ ULONG SendCompressionBits;
/*IN*/ ULONG RecvCompressionBits;
/*IN*/ ULONG SendACCM;
/*IN*/ ULONG RecvACCM;
} NDIS_WAN_CO_SET_LINK_INFO, *PNDIS_WAN_CO_SET_LINK_INFO;
typedef struct _NDIS_WAN_CO_GET_COMP_INFO {
OUT NDIS_WAN_COMPRESS_INFO SendCapabilities;
OUT NDIS_WAN_COMPRESS_INFO RecvCapabilities;
/*OUT*/ NDIS_WAN_COMPRESS_INFO SendCapabilities;
/*OUT*/ NDIS_WAN_COMPRESS_INFO RecvCapabilities;
} NDIS_WAN_CO_GET_COMP_INFO, *PNDIS_WAN_CO_GET_COMP_INFO;
typedef struct _NDIS_WAN_CO_SET_COMP_INFO {
IN NDIS_WAN_COMPRESS_INFO SendCapabilities;
IN NDIS_WAN_COMPRESS_INFO RecvCapabilities;
/*IN*/ NDIS_WAN_COMPRESS_INFO SendCapabilities;
/*IN*/ NDIS_WAN_COMPRESS_INFO RecvCapabilities;
} NDIS_WAN_CO_SET_COMP_INFO, *PNDIS_WAN_CO_SET_COMP_INFO;
typedef struct _NDIS_WAN_CO_GET_STATS_INFO {
OUT ULONG BytesSent;
OUT ULONG BytesRcvd;
OUT ULONG FramesSent;
OUT ULONG FramesRcvd;
OUT ULONG CRCErrors;
OUT ULONG TimeoutErrors;
OUT ULONG AlignmentErrors;
OUT ULONG SerialOverrunErrors;
OUT ULONG FramingErrors;
OUT ULONG BufferOverrunErrors;
OUT ULONG BytesTransmittedUncompressed;
OUT ULONG BytesReceivedUncompressed;
OUT ULONG BytesTransmittedCompressed;
OUT ULONG BytesReceivedCompressed;
/*OUT*/ ULONG BytesSent;
/*OUT*/ ULONG BytesRcvd;
/*OUT*/ ULONG FramesSent;
/*OUT*/ ULONG FramesRcvd;
/*OUT*/ ULONG CRCErrors;
/*OUT*/ ULONG TimeoutErrors;
/*OUT*/ ULONG AlignmentErrors;
/*OUT*/ ULONG SerialOverrunErrors;
/*OUT*/ ULONG FramingErrors;
/*OUT*/ ULONG BufferOverrunErrors;
/*OUT*/ ULONG BytesTransmittedUncompressed;
/*OUT*/ ULONG BytesReceivedUncompressed;
/*OUT*/ ULONG BytesTransmittedCompressed;
/*OUT*/ ULONG BytesReceivedCompressed;
} NDIS_WAN_CO_GET_STATS_INFO, *PNDIS_WAN_CO_GET_STATS_INFO;
#ifdef __cplusplus

View File

@ -43,7 +43,7 @@ UpdateDriverForPlugAndPlayDevicesA(
LPCSTR HardwareId,
LPCSTR FullInfPath,
DWORD InstallFlags,
PBOOL bRebootRequired OPTIONAL);
PBOOL bRebootRequired /*OPTIONAL*/);
BOOL WINAPI
UpdateDriverForPlugAndPlayDevicesW(
@ -51,7 +51,7 @@ UpdateDriverForPlugAndPlayDevicesW(
LPCWSTR HardwareId,
LPCWSTR FullInfPath,
DWORD InstallFlags,
PBOOL bRebootRequired OPTIONAL);
PBOOL bRebootRequired /*OPTIONAL*/);
#ifdef UNICODE
#define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW

File diff suppressed because it is too large Load Diff

View File

@ -140,33 +140,33 @@ typedef struct _INTERNAL_I8042_START_INFORMATION {
typedef VOID DDKAPI
(*PI8042_ISR_WRITE_PORT)(
IN PVOID Context,
IN UCHAR Value);
/*IN*/ PVOID Context,
/*IN*/ UCHAR Value);
typedef VOID DDKAPI
(*PI8042_QUEUE_PACKET)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef NTSTATUS DDKAPI
(*PI8042_SYNCH_READ_PORT) (
IN PVOID Context,
OUT PUCHAR Value,
IN BOOLEAN WaitForACK);
/*IN*/ PVOID Context,
/*OUT*/ PUCHAR Value,
/*IN*/ BOOLEAN WaitForACK);
typedef NTSTATUS DDKAPI
(*PI8042_SYNCH_WRITE_PORT)(
IN PVOID Context,
IN UCHAR Value,
IN BOOLEAN WaitForACK);
/*IN*/ PVOID Context,
/*IN*/ UCHAR Value,
/*IN*/ BOOLEAN WaitForACK);
typedef NTSTATUS DDKAPI
(*PI8042_KEYBOARD_INITIALIZATION_ROUTINE)(
IN PVOID InitializationContext,
IN PVOID SynchFuncContext,
IN PI8042_SYNCH_READ_PORT ReadPort,
IN PI8042_SYNCH_WRITE_PORT WritePort,
OUT PBOOLEAN TurnTranslationOn);
/*IN*/ PVOID InitializationContext,
/*IN*/ PVOID SynchFuncContext,
/*IN*/ PI8042_SYNCH_READ_PORT ReadPort,
/*IN*/ PI8042_SYNCH_WRITE_PORT WritePort,
/*OUT*/ PBOOLEAN TurnTranslationOn);
typedef BOOLEAN DDKAPI
(*PI8042_KEYBOARD_ISR)(
@ -179,12 +179,12 @@ typedef BOOLEAN DDKAPI
PKEYBOARD_SCAN_STATE ScanState);
typedef struct _INTERNAL_I8042_HOOK_KEYBOARD {
OUT PVOID Context;
OUT PI8042_KEYBOARD_INITIALIZATION_ROUTINE InitializationRoutine;
OUT PI8042_KEYBOARD_ISR IsrRoutine;
IN PI8042_ISR_WRITE_PORT IsrWritePort;
IN PI8042_QUEUE_PACKET QueueKeyboardPacket;
IN PVOID CallContext;
/*OUT*/ PVOID Context;
/*OUT*/ PI8042_KEYBOARD_INITIALIZATION_ROUTINE InitializationRoutine;
/*OUT*/ PI8042_KEYBOARD_ISR IsrRoutine;
/*IN*/ PI8042_ISR_WRITE_PORT IsrWritePort;
/*IN*/ PI8042_QUEUE_PACKET QueueKeyboardPacket;
/*IN*/ PVOID CallContext;
} INTERNAL_I8042_HOOK_KEYBOARD, *PINTERNAL_I8042_HOOK_KEYBOARD;
typedef BOOLEAN DDKAPI
@ -199,11 +199,11 @@ typedef BOOLEAN DDKAPI
PMOUSE_RESET_SUBSTATE ResetSubState);
typedef struct _INTERNAL_I8042_HOOK_MOUSE {
OUT PVOID Context;
OUT PI8042_MOUSE_ISR IsrRoutine;
IN PI8042_ISR_WRITE_PORT IsrWritePort;
IN PI8042_QUEUE_PACKET QueueMousePacket;
IN PVOID CallContext;
/*OUT*/ PVOID Context;
/*OUT*/ PI8042_MOUSE_ISR IsrRoutine;
/*IN*/ PI8042_ISR_WRITE_PORT IsrWritePort;
/*IN*/ PI8042_QUEUE_PACKET QueueMousePacket;
/*IN*/ PVOID CallContext;
} INTERNAL_I8042_HOOK_MOUSE, *PINTERNAL_I8042_HOOK_MOUSE;
#ifdef __cplusplus

View File

@ -98,11 +98,11 @@ typedef ULONG MEMORY_SPACE;
typedef ULONG STDCALL
(*PPCMCIA_READ_WRITE_CONFIG)(
IN PVOID Context,
IN ULONG WhichSpace,
IN PUCHAR Buffer,
IN ULONG Offset,
IN ULONG Length);
/*IN*/ PVOID Context,
/*IN*/ ULONG WhichSpace,
/*IN*/ PUCHAR Buffer,
/*IN*/ ULONG Offset,
/*IN*/ ULONG Length);
#define PCCARD_PCI_CONFIGURATION_SPACE 0
#define PCCARD_ATTRIBUTE_MEMORY 1
@ -125,14 +125,14 @@ typedef struct _PCMCIA_BUS_INTERFACE_STANDARD {
typedef BOOLEAN STDCALL
(*PPCMCIA_MODIFY_MEMORY_WINDOW)(
IN PVOID Context,
IN ULONGLONG HostBase,
IN ULONGLONG CardBase,
IN BOOLEAN Enable,
IN ULONG WindowSize OPTIONAL,
IN UCHAR AccessSpeed OPTIONAL,
IN UCHAR BusWidth OPTIONAL,
IN BOOLEAN IsAttributeMemory OPTIONAL);
/*IN*/ PVOID Context,
/*IN*/ ULONGLONG HostBase,
/*IN*/ ULONGLONG CardBase,
/*IN*/ BOOLEAN Enable,
/*IN*/ ULONG WindowSize /*OPTIONAL*/,
/*IN*/ UCHAR AccessSpeed /*OPTIONAL*/,
/*IN*/ UCHAR BusWidth /*OPTIONAL*/,
/*IN*/ BOOLEAN IsAttributeMemory /*OPTIONAL*/);
#define PCMCIA_VPP_0V 0
#define PCMCIA_VPP_12V 1
@ -140,12 +140,12 @@ typedef BOOLEAN STDCALL
typedef BOOLEAN STDCALL
(*PPCMCIA_SET_VPP)(
IN PVOID Context,
IN UCHAR VppLevel);
/*IN*/ PVOID Context,
/*IN*/ UCHAR VppLevel);
typedef BOOLEAN STDCALL
(*PPCMCIA_IS_WRITE_PROTECTED)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef struct _PCMCIA_INTERFACE_STANDARD {
USHORT Size;

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@ typedef struct _PROCESSOR_IDLE_TIMES {
typedef BOOLEAN DDKFASTAPI
(*PPROCESSOR_IDLE_HANDLER)(
IN OUT PPROCESSOR_IDLE_TIMES IdleTimes);
/*IN OUT*/ PPROCESSOR_IDLE_TIMES IdleTimes);
typedef struct _PROCESSOR_IDLE_HANDLER_INFO {
ULONG HardwareLatency;
@ -55,11 +55,11 @@ typedef struct _PROCESSOR_IDLE_HANDLER_INFO {
typedef VOID DDKFASTAPI
(*PSET_PROCESSOR_THROTTLE)(
IN UCHAR Throttle);
/*IN*/ UCHAR Throttle);
typedef NTSTATUS DDKFASTAPI
(*PSET_PROCESSOR_THROTTLE2)(
IN UCHAR Throttle);
/*IN*/ UCHAR Throttle);
#define MAX_IDLE_HANDLERS 3
@ -84,15 +84,15 @@ typedef enum _POWER_STATE_HANDLER_TYPE {
typedef NTSTATUS DDKAPI
(*PENTER_STATE_SYSTEM_HANDLER)(
IN PVOID SystemContext);
/*IN*/ PVOID SystemContext);
typedef NTSTATUS DDKAPI
(*PENTER_STATE_HANDLER)(
IN PVOID Context,
IN PENTER_STATE_SYSTEM_HANDLER SystemHandler OPTIONAL,
IN PVOID SystemContext,
IN LONG NumberProcessors,
IN VOLATILE PLONG Number);
/*IN*/ PVOID Context,
/*IN*/ PENTER_STATE_SYSTEM_HANDLER SystemHandler /*OPTIONAL*/,
/*IN*/ PVOID SystemContext,
/*IN*/ LONG NumberProcessors,
/*IN*/ VOLATILE PLONG Number);
typedef struct _POWER_STATE_HANDLER {
POWER_STATE_HANDLER_TYPE Type;
@ -104,9 +104,9 @@ typedef struct _POWER_STATE_HANDLER {
typedef NTSTATUS STDCALL
(*PENTER_STATE_NOTIFY_HANDLER)(
IN POWER_STATE_HANDLER_TYPE State,
IN PVOID Context,
IN BOOLEAN Entering);
/*IN*/ POWER_STATE_HANDLER_TYPE State,
/*IN*/ PVOID Context,
/*IN*/ BOOLEAN Entering);
typedef struct _POWER_STATE_NOTIFY_HANDLER {
PENTER_STATE_NOTIFY_HANDLER Handler;
@ -117,11 +117,11 @@ NTOSAPI
NTSTATUS
DDKAPI
NtPowerInformation(
IN POWER_INFORMATION_LEVEL InformationLevel,
IN PVOID InputBuffer OPTIONAL,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer OPTIONAL,
IN ULONG OutputBufferLength);
/*IN*/ POWER_INFORMATION_LEVEL InformationLevel,
/*IN*/ PVOID InputBuffer /*OPTIONAL*/,
/*IN*/ ULONG InputBufferLength,
/*OUT*/ PVOID OutputBuffer /*OPTIONAL*/,
/*IN*/ ULONG OutputBufferLength);
#define PROCESSOR_STATE_TYPE_PERFORMANCE 1
#define PROCESSOR_STATE_TYPE_THROTTLE 2
@ -160,44 +160,44 @@ NTOSAPI
NTSTATUS
DDKAPI
NtSetThreadExecutionState(
IN EXECUTION_STATE esFlags,
OUT EXECUTION_STATE *PreviousFlags);
/*IN*/ EXECUTION_STATE esFlags,
/*OUT*/ EXECUTION_STATE *PreviousFlags);
NTOSAPI
NTSTATUS
DDKAPI
NtRequestWakeupLatency(
IN LATENCY_TIME latency);
/*IN*/ LATENCY_TIME latency);
NTOSAPI
NTSTATUS
DDKAPI
NtInitiatePowerAction(
IN POWER_ACTION SystemAction,
IN SYSTEM_POWER_STATE MinSystemState,
IN ULONG Flags,
IN BOOLEAN Asynchronous);
/*IN*/ POWER_ACTION SystemAction,
/*IN*/ SYSTEM_POWER_STATE MinSystemState,
/*IN*/ ULONG Flags,
/*IN*/ BOOLEAN Asynchronous);
NTOSAPI
NTSTATUS
DDKAPI
NtSetSystemPowerState(
IN POWER_ACTION SystemAction,
IN SYSTEM_POWER_STATE MinSystemState,
IN ULONG Flags);
/*IN*/ POWER_ACTION SystemAction,
/*IN*/ SYSTEM_POWER_STATE MinSystemState,
/*IN*/ ULONG Flags);
NTOSAPI
NTSTATUS
DDKAPI
NtGetDevicePowerState(
IN HANDLE Device,
OUT DEVICE_POWER_STATE *State);
/*IN*/ HANDLE Device,
/*OUT*/ DEVICE_POWER_STATE *State);
NTOSAPI
NTSTATUS
DDKAPI
NtCancelDeviceWakeupRequest(
IN HANDLE Device);
/*IN*/ HANDLE Device);
NTOSAPI
BOOLEAN
@ -209,7 +209,7 @@ NTOSAPI
NTSTATUS
DDKAPI
NtRequestDeviceWakeup(
IN HANDLE Device);
/*IN*/ HANDLE Device);
#define WINLOGON_LOCK_ON_SLEEP 0x00000001

View File

@ -76,38 +76,38 @@ typedef struct _PARALLEL_1284_COMMAND {
#define PAR_HAVE_PORT_KEEP_PORT 0x00000002
typedef struct _MORE_PARALLEL_PORT_INFORMATION {
INTERFACE_TYPE InterfaceType;
ULONG BusNumber;
ULONG InterruptLevel;
ULONG InterruptVector;
KAFFINITY InterruptAffinity;
KINTERRUPT_MODE InterruptMode;
INTERFACE_TYPE InterfaceType;
ULONG BusNumber;
ULONG InterruptLevel;
ULONG InterruptVector;
KAFFINITY InterruptAffinity;
KINTERRUPT_MODE InterruptMode;
} MORE_PARALLEL_PORT_INFORMATION, *PMORE_PARALLEL_PORT_INFORMATION;
typedef NTSTATUS DDKAPI
(*PPARALLEL_SET_CHIP_MODE)(
IN PVOID SetChipContext,
IN UCHAR ChipMode);
/*IN*/ PVOID SetChipContext,
/*IN*/ UCHAR ChipMode);
typedef NTSTATUS DDKAPI
(*PPARALLEL_CLEAR_CHIP_MODE)(
IN PVOID ClearChipContext,
IN UCHAR ChipMode);
/*IN*/ PVOID ClearChipContext,
/*IN*/ UCHAR ChipMode);
typedef NTSTATUS DDKAPI
(*PPARCHIP_CLEAR_CHIP_MODE)(
IN PVOID ClearChipContext,
IN UCHAR ChipMode);
/*IN*/ PVOID ClearChipContext,
/*IN*/ UCHAR ChipMode);
typedef NTSTATUS DDKAPI
(*PPARALLEL_TRY_SELECT_ROUTINE)(
IN PVOID TrySelectContext,
IN PVOID TrySelectCommand);
/*IN*/ PVOID TrySelectContext,
/*IN*/ PVOID TrySelectCommand);
typedef NTSTATUS DDKAPI
(*PPARALLEL_DESELECT_ROUTINE)(
IN PVOID DeselectContext,
IN PVOID DeselectCommand);
/*IN*/ PVOID DeselectContext,
/*IN*/ PVOID DeselectCommand);
/* PARALLEL_PNP_INFORMATION.HardwareCapabilities */
#define PPT_NO_HARDWARE_PRESENT 0x00000000
@ -140,15 +140,15 @@ typedef struct _PARALLEL_PNP_INFORMATION {
typedef BOOLEAN DDKAPI
(*PPARALLEL_TRY_ALLOCATE_ROUTINE)(
IN PVOID TryAllocateContext);
/*IN*/ PVOID TryAllocateContext);
typedef VOID DDKAPI
(*PPARALLEL_FREE_ROUTINE)(
IN PVOID FreeContext);
/*IN*/ PVOID FreeContext);
typedef ULONG DDKAPI
(*PPARALLEL_QUERY_WAITERS_ROUTINE)(
IN PVOID QueryAllocsContext);
/*IN*/ PVOID QueryAllocsContext);
typedef struct _PARALLEL_PORT_INFORMATION {
PHYSICAL_ADDRESS OriginalController;
@ -171,7 +171,7 @@ typedef struct _PARALLEL_CHIP_MODE {
typedef VOID DDKAPI
(*PPARALLEL_DEFERRED_ROUTINE)(
IN PVOID DeferredContext);
/*IN*/ PVOID DeferredContext);
typedef struct _PARALLEL_INTERRUPT_SERVICE_ROUTINE {
PKSERVICE_ROUTINE InterruptServiceRoutine;
@ -198,7 +198,7 @@ typedef struct _PARALLEL_INTERRUPT_SERVICE_ROUTINE {
typedef USHORT DDKAPI
(*PDETERMINE_IEEE_MODES)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef enum _PARALLEL_SAFETY {
SAFE_MODE,
@ -207,49 +207,49 @@ typedef enum _PARALLEL_SAFETY {
typedef NTSTATUS DDKAPI
(*PNEGOTIATE_IEEE_MODE)(
IN PVOID Context,
IN USHORT ModeMaskFwd,
IN USHORT ModeMaskRev,
IN PARALLEL_SAFETY ModeSafety,
IN BOOLEAN IsForward);
/*IN*/ PVOID Context,
/*IN*/ USHORT ModeMaskFwd,
/*IN*/ USHORT ModeMaskRev,
/*IN*/ PARALLEL_SAFETY ModeSafety,
/*IN*/ BOOLEAN IsForward);
typedef NTSTATUS DDKAPI
(*PTERMINATE_IEEE_MODE)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef NTSTATUS DDKAPI
(*PPARALLEL_IEEE_FWD_TO_REV)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef NTSTATUS DDKAPI
(*PPARALLEL_IEEE_REV_TO_FWD)(
IN PVOID Context);
/*IN*/ PVOID Context);
typedef NTSTATUS DDKAPI
(*PPARALLEL_READ)(
IN PVOID Context,
OUT PVOID Buffer,
IN ULONG NumBytesToRead,
OUT PULONG NumBytesRead,
IN UCHAR Channel);
/*IN*/ PVOID Context,
/*OUT*/ PVOID Buffer,
/*IN*/ ULONG NumBytesToRead,
/*OUT*/ PULONG NumBytesRead,
/*IN*/ UCHAR Channel);
typedef NTSTATUS DDKAPI
(*PPARALLEL_WRITE)(
IN PVOID Context,
OUT PVOID Buffer,
IN ULONG NumBytesToWrite,
OUT PULONG NumBytesWritten,
IN UCHAR Channel);
/*IN*/ PVOID Context,
/*OUT*/ PVOID Buffer,
/*IN*/ ULONG NumBytesToWrite,
/*OUT*/ PULONG NumBytesWritten,
/*IN*/ UCHAR Channel);
typedef NTSTATUS DDKAPI
(*PPARALLEL_TRYSELECT_DEVICE)(
IN PVOID Context,
IN PARALLEL_1284_COMMAND Command);
/*IN*/ PVOID Context,
/*IN*/ PARALLEL_1284_COMMAND Command);
typedef NTSTATUS DDKAPI
(*PPARALLEL_DESELECT_DEVICE)(
IN PVOID Context,
IN PARALLEL_1284_COMMAND Command);
/*IN*/ PVOID Context,
/*IN*/ PARALLEL_1284_COMMAND Command);
typedef struct _PARCLASS_INFORMATION {
PUCHAR Controller;

View File

@ -49,13 +49,13 @@ typedef enum _PF_FORWARD_ACTION {
typedef PF_FORWARD_ACTION STDCALL
(*PacketFilterExtensionPtr)(
IN unsigned char *PacketHeader,
IN unsigned char *Packet,
IN unsigned int PacketLength,
IN unsigned int RecvInterfaceIndex,
IN unsigned int SendInterfaceIndex,
IN IPAddr RecvLinkNextHop,
IN IPAddr SendLinkNextHop);
/*IN*/ unsigned char *PacketHeader,
/*IN*/ unsigned char *Packet,
/*IN*/ unsigned int PacketLength,
/*IN*/ unsigned int RecvInterfaceIndex,
/*IN*/ unsigned int SendInterfaceIndex,
/*IN*/ IPAddr RecvLinkNextHop,
/*IN*/ IPAddr SendLinkNextHop);
typedef struct _PF_SET_EXTENSION_HOOK_INFO {
PacketFilterExtensionPtr ExtensionPointer;

View File

@ -73,50 +73,50 @@ typedef struct _SCSIWMIGUIDREGINFO {
typedef UCHAR DDKAPI
(*PSCSIWMI_QUERY_REGINFO)(
IN PVOID DeviceContext,
IN PSCSIWMI_REQUEST_CONTEXT RequestContext,
OUT PWCHAR *MofResourceName);
/*IN*/ PVOID DeviceContext,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*OUT*/ PWCHAR *MofResourceName);
typedef BOOLEAN DDKAPI
(*PSCSIWMI_QUERY_DATABLOCK)(
IN PVOID Context,
IN PSCSIWMI_REQUEST_CONTEXT DispatchContext,
IN ULONG GuidIndex,
IN ULONG InstanceIndex,
IN ULONG InstanceCount,
IN OUT PULONG InstanceLengthArray,
IN ULONG BufferAvail,
OUT PUCHAR Buffer);
/*IN*/ PVOID Context,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT DispatchContext,
/*IN*/ ULONG GuidIndex,
/*IN*/ ULONG InstanceIndex,
/*IN*/ ULONG InstanceCount,
/*IN OUT*/ PULONG InstanceLengthArray,
/*IN*/ ULONG BufferAvail,
/*OUT*/ PUCHAR Buffer);
typedef BOOLEAN DDKAPI
(*PSCSIWMI_SET_DATABLOCK)(
IN PVOID DeviceContext,
IN PSCSIWMI_REQUEST_CONTEXT RequestContext,
IN ULONG GuidIndex,
IN ULONG InstanceIndex,
IN ULONG BufferSize,
IN PUCHAR Buffer);
/*IN*/ PVOID DeviceContext,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*IN*/ ULONG GuidIndex,
/*IN*/ ULONG InstanceIndex,
/*IN*/ ULONG BufferSize,
/*IN*/ PUCHAR Buffer);
typedef BOOLEAN DDKAPI
(*PSCSIWMI_SET_DATAITEM)(
IN PVOID DeviceContext,
IN PSCSIWMI_REQUEST_CONTEXT RequestContext,
IN ULONG GuidIndex,
IN ULONG InstanceIndex,
IN ULONG DataItemId,
IN ULONG BufferSize,
IN PUCHAR Buffer);
/*IN*/ PVOID DeviceContext,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*IN*/ ULONG GuidIndex,
/*IN*/ ULONG InstanceIndex,
/*IN*/ ULONG DataItemId,
/*IN*/ ULONG BufferSize,
/*IN*/ PUCHAR Buffer);
typedef BOOLEAN DDKAPI
(*PSCSIWMI_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,
IN OUT PUCHAR Buffer);
/*IN*/ PVOID DeviceContext,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*IN*/ ULONG GuidIndex,
/*IN*/ ULONG InstanceIndex,
/*IN*/ ULONG MethodId,
/*IN*/ ULONG InBufferSize,
/*IN*/ ULONG OutBufferSize,
/*IN OUT*/ PUCHAR Buffer);
typedef enum _SCSIWMI_ENABLE_DISABLE_CONTROL {
ScsiWmiEventControl,
@ -125,11 +125,11 @@ typedef enum _SCSIWMI_ENABLE_DISABLE_CONTROL {
typedef BOOLEAN DDKAPI
(*PSCSIWMI_FUNCTION_CONTROL)(
IN PVOID DeviceContext,
IN PSCSIWMI_REQUEST_CONTEXT RequestContext,
IN ULONG GuidIndex,
IN SCSIWMI_ENABLE_DISABLE_CONTROL Function,
IN BOOLEAN Enable);
/*IN*/ PVOID DeviceContext,
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*IN*/ ULONG GuidIndex,
/*IN*/ SCSIWMI_ENABLE_DISABLE_CONTROL Function,
/*IN*/ BOOLEAN Enable);
typedef struct _SCSIWMILIB_CONTEXT {
ULONG GuidCount;
@ -146,13 +146,13 @@ SCSIPORTAPI
BOOLEAN
DDKAPI
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);
/*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);
#define ScsiPortWmiFireAdapterEvent( \
HwDeviceExtension, \
@ -189,22 +189,22 @@ SCSIPORTAPI
VOID
DDKAPI
ScsiPortWmiPostProcess(
IN PSCSIWMI_REQUEST_CONTEXT RequestContext,
IN UCHAR SrbStatus,
IN ULONG BufferUsed);
/*IN*/ PSCSIWMI_REQUEST_CONTEXT RequestContext,
/*IN*/ UCHAR SrbStatus,
/*IN*/ ULONG BufferUsed);
SCSIPORTAPI
VOID
DDKAPI
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*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ LPGUID Guid,
/*IN*/ ULONG InstanceIndex,
/*IN*/ ULONG EventDataSize,
/*IN*/ PVOID EventData);
#pragma pack(pop)

View File

@ -105,18 +105,18 @@ typedef struct _SMB_REGISTER_ALARM {
typedef NTSTATUS DDKAPI
(*SMB_RESET_DEVICE)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
/*IN*/ struct _SMB_CLASS *SmbClass,
/*IN*/ PVOID SmbMiniport);
typedef VOID DDKAPI
(*SMB_START_IO)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
/*IN*/ struct _SMB_CLASS *SmbClass,
/*IN*/ PVOID SmbMiniport);
typedef NTSTATUS DDKAPI
(*SMB_STOP_DEVICE)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
/*IN*/ struct _SMB_CLASS *SmbClass,
/*IN*/ PVOID SmbMiniport);
typedef struct _SMB_CLASS {
USHORT MajorVersion;
@ -136,52 +136,52 @@ SMBCLASSAPI
VOID
DDKAPI
SmbClassAlarm(
IN PSMB_CLASS SmbClass,
IN UCHAR Address,
IN USHORT Data);
/*IN*/ PSMB_CLASS SmbClass,
/*IN*/ UCHAR Address,
/*IN*/ USHORT Data);
SMBCLASSAPI
VOID
DDKAPI
SmbClassCompleteRequest(
IN PSMB_CLASS SmbClass);
/*IN*/ PSMB_CLASS SmbClass);
typedef NTSTATUS DDKAPI
(*PSMB_INITIALIZE_MINIPORT)(
IN PSMB_CLASS SmbClass,
IN PVOID MiniportExtension,
IN PVOID MiniportContext);
/*IN*/ PSMB_CLASS SmbClass,
/*IN*/ PVOID MiniportExtension,
/*IN*/ PVOID MiniportContext);
SMBCLASSAPI
NTSTATUS
DDKAPI
SmbClassCreateFdo(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PDO,
IN ULONG MiniportExtensionSize,
IN PSMB_INITIALIZE_MINIPORT MiniportInitialize,
IN PVOID MiniportContext,
OUT PDEVICE_OBJECT *FDO);
/*IN*/ PDRIVER_OBJECT DriverObject,
/*IN*/ PDEVICE_OBJECT PDO,
/*IN*/ ULONG MiniportExtensionSize,
/*IN*/ PSMB_INITIALIZE_MINIPORT MiniportInitialize,
/*IN*/ PVOID MiniportContext,
/*OUT*/ PDEVICE_OBJECT *FDO);
SMBCLASSAPI
NTSTATUS
DDKAPI
SmbClassInitializeDevice(
IN ULONG MajorVersion,
IN ULONG MinorVersion,
IN PDRIVER_OBJECT DriverObject);
/*IN*/ ULONG MajorVersion,
/*IN*/ ULONG MinorVersion,
/*IN*/ PDRIVER_OBJECT DriverObject);
SMBCLASSAPI
VOID
DDKAPI
SmbClassLockDevice(
IN PSMB_CLASS SmbClass);
/*IN*/ PSMB_CLASS SmbClass);
SMBCLASSAPI
VOID
DDKAPI
SmbClassUnlockDevice(
IN PSMB_CLASS SmbClass);
/*IN*/ PSMB_CLASS SmbClass);
#ifdef __cplusplus
}

View File

@ -303,15 +303,15 @@ typedef struct _SCSI_SUPPORTED_CONTROL_TYPE_LIST {
typedef SCSI_ADAPTER_CONTROL_STATUS DDKAPI
(*PHW_ADAPTER_CONTROL)(
IN PVOID DeviceExtension,
IN SCSI_ADAPTER_CONTROL_TYPE ControlType,
IN PVOID Parameters);
/*IN*/ PVOID DeviceExtension,
/*IN*/ SCSI_ADAPTER_CONTROL_TYPE ControlType,
/*IN*/ PVOID Parameters);
typedef BOOLEAN DDKAPI
(*PHW_ADAPTER_STATE)(
IN PVOID DeviceExtension,
IN PVOID Context,
IN BOOLEAN SaveState);
/*IN*/ PVOID DeviceExtension,
/*IN*/ PVOID Context,
/*IN*/ BOOLEAN SaveState);
#define SP_RETURN_NOT_FOUND 0
#define SP_RETURN_FOUND 1
@ -320,38 +320,38 @@ typedef BOOLEAN DDKAPI
typedef ULONG DDKAPI
(*PHW_FIND_ADAPTER)(
IN PVOID DeviceExtension,
IN PVOID HwContext,
IN PVOID BusInformation,
IN PCHAR ArgumentString,
IN OUT PPORT_CONFIGURATION_INFORMATION ConfigInfo,
OUT PBOOLEAN Again);
/*IN*/ PVOID DeviceExtension,
/*IN*/ PVOID HwContext,
/*IN*/ PVOID BusInformation,
/*IN*/ PCHAR ArgumentString,
/*IN OUT*/ PPORT_CONFIGURATION_INFORMATION ConfigInfo,
/*OUT*/ PBOOLEAN Again);
typedef BOOLEAN DDKAPI
(*PHW_INITIALIZE)(
IN PVOID DeviceExtension);
/*IN*/ PVOID DeviceExtension);
typedef BOOLEAN DDKAPI
(*PHW_INTERRUPT)(
IN PVOID DeviceExtension);
/*IN*/ PVOID DeviceExtension);
typedef BOOLEAN DDKAPI
(*PHW_RESET_BUS)(
IN PVOID DeviceExtension,
IN ULONG PathId);
/*IN*/ PVOID DeviceExtension,
/*IN*/ ULONG PathId);
typedef VOID DDKAPI
(*PHW_DMA_STARTED)(
IN PVOID DeviceExtension);
/*IN*/ PVOID DeviceExtension);
typedef BOOLEAN DDKAPI
(*PHW_STARTIO)(
IN PVOID DeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb);
/*IN*/ PVOID DeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb);
typedef VOID DDKAPI
(*PHW_TIMER)(
IN PVOID DeviceExtension);
/*IN*/ PVOID DeviceExtension);
typedef struct _HW_INITIALIZATION_DATA {
ULONG HwInitializationDataSize;
@ -386,16 +386,16 @@ SCSIPORTAPI
VOID
DDKAPI
ScsiPortCompleteRequest(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN UCHAR SrbStatus);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ UCHAR SrbStatus);
/*
* ULONG
* ScsiPortConvertPhysicalAddressToUlong(
* IN SCSI_PHYSICAL_ADDRESS Address);
* IN SCSI_PHYSICAL_ADDRESS Address);
*/
#define ScsiPortConvertPhysicalAddressToUlong(Address) ((Address).LowPart)
@ -403,348 +403,348 @@ SCSIPORTAPI
SCSI_PHYSICAL_ADDRESS
DDKAPI
ScsiPortConvertUlongToPhysicalAddress(
IN ULONG UlongAddress);
/*IN*/ ULONG UlongAddress);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortFlushDma(
IN PVOID DeviceExtension);
/*IN*/ PVOID DeviceExtension);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortFreeDeviceBase(
IN PVOID HwDeviceExtension,
IN PVOID MappedAddress);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID MappedAddress);
SCSIPORTAPI
ULONG
DDKAPI
ScsiPortGetBusData(
IN PVOID DeviceExtension,
IN ULONG BusDataType,
IN ULONG SystemIoBusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Length);
/*IN*/ PVOID DeviceExtension,
/*IN*/ ULONG BusDataType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Length);
SCSIPORTAPI
PVOID
DDKAPI
ScsiPortGetDeviceBase(
IN PVOID HwDeviceExtension,
IN INTERFACE_TYPE BusType,
IN ULONG SystemIoBusNumber,
IN SCSI_PHYSICAL_ADDRESS IoAddress,
IN ULONG NumberOfBytes,
IN BOOLEAN InIoSpace);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ INTERFACE_TYPE BusType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ SCSI_PHYSICAL_ADDRESS IoAddress,
/*IN*/ ULONG NumberOfBytes,
/*IN*/ BOOLEAN InIoSpace);
SCSIPORTAPI
PVOID
DDKAPI
ScsiPortGetLogicalUnit(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun);
SCSIPORTAPI
SCSI_PHYSICAL_ADDRESS
DDKAPI
ScsiPortGetPhysicalAddress(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb OPTIONAL,
IN PVOID VirtualAddress,
OUT ULONG *Length);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb /*OPTIONAL*/,
/*IN*/ PVOID VirtualAddress,
/*OUT*/ ULONG *Length);
SCSIPORTAPI
PSCSI_REQUEST_BLOCK
DDKAPI
ScsiPortGetSrb(
IN PVOID DeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN LONG QueueTag);
/*IN*/ PVOID DeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ LONG QueueTag);
SCSIPORTAPI
PVOID
DDKAPI
ScsiPortGetUncachedExtension(
IN PVOID HwDeviceExtension,
IN PPORT_CONFIGURATION_INFORMATION ConfigInfo,
IN ULONG NumberOfBytes);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PPORT_CONFIGURATION_INFORMATION ConfigInfo,
/*IN*/ ULONG NumberOfBytes);
SCSIPORTAPI
PVOID
DDKAPI
ScsiPortGetVirtualAddress(
IN PVOID HwDeviceExtension,
IN SCSI_PHYSICAL_ADDRESS PhysicalAddress);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ SCSI_PHYSICAL_ADDRESS PhysicalAddress);
SCSIPORTAPI
ULONG
DDKAPI
ScsiPortInitialize(
IN PVOID Argument1,
IN PVOID Argument2,
IN struct _HW_INITIALIZATION_DATA *HwInitializationData,
IN PVOID HwContext OPTIONAL);
/*IN*/ PVOID Argument1,
/*IN*/ PVOID Argument2,
/*IN*/ struct _HW_INITIALIZATION_DATA *HwInitializationData,
/*IN*/ PVOID HwContext /*OPTIONAL*/);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortIoMapTransfer(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb,
IN ULONG LogicalAddress,
IN ULONG Length);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb,
/*IN*/ ULONG LogicalAddress,
/*IN*/ ULONG Length);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortLogError(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb OPTIONAL,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN ULONG ErrorCode,
IN ULONG UniqueId);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb /*OPTIONAL*/,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ ULONG ErrorCode,
/*IN*/ ULONG UniqueId);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortMoveMemory(
IN PVOID WriteBuffer,
IN PVOID ReadBuffer,
IN ULONG Length);
/*IN*/ PVOID WriteBuffer,
/*IN*/ PVOID ReadBuffer,
/*IN*/ ULONG Length);
SCSIPORTAPI
VOID
DDKCDECLAPI
ScsiPortNotification(
IN SCSI_NOTIFICATION_TYPE NotificationType,
IN PVOID HwDeviceExtension,
IN ...);
/*IN*/ SCSI_NOTIFICATION_TYPE NotificationType,
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ...);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortQuerySystemTime(
OUT PLARGE_INTEGER CurrentTime);
/*OUT*/ PLARGE_INTEGER CurrentTime);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadPortBufferUchar(
IN PUCHAR Port,
IN PUCHAR Buffer,
IN ULONG Count);
/*IN*/ PUCHAR Port,
/*IN*/ PUCHAR Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadPortBufferUlong(
IN PULONG Port,
IN PULONG Buffer,
IN ULONG Count);
/*IN*/ PULONG Port,
/*IN*/ PULONG Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadPortBufferUshort(
IN PUSHORT Port,
IN PUSHORT Buffer,
IN ULONG Count);
/*IN*/ PUSHORT Port,
/*IN*/ PUSHORT Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
UCHAR
DDKAPI
ScsiPortReadPortUchar(
IN PUCHAR Port);
/*IN*/ PUCHAR Port);
SCSIPORTAPI
ULONG
DDKAPI
ScsiPortReadPortUlong(
IN PULONG Port);
/*IN*/ PULONG Port);
SCSIPORTAPI
USHORT
DDKAPI
ScsiPortReadPortUshort(
IN PUSHORT Port);
/*IN*/ PUSHORT Port);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadRegisterBufferUchar(
IN PUCHAR Register,
IN PUCHAR Buffer,
IN ULONG Count);
/*IN*/ PUCHAR Register,
/*IN*/ PUCHAR Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadRegisterBufferUlong(
IN PULONG Register,
IN PULONG Buffer,
IN ULONG Count);
/*IN*/ PULONG Register,
/*IN*/ PULONG Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortReadRegisterBufferUshort(
IN PUSHORT Register,
IN PUSHORT Buffer,
IN ULONG Count);
/*IN*/ PUSHORT Register,
/*IN*/ PUSHORT Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
UCHAR
DDKAPI
ScsiPortReadRegisterUchar(
IN PUCHAR Register);
/*IN*/ PUCHAR Register);
SCSIPORTAPI
ULONG
DDKAPI
ScsiPortReadRegisterUlong(
IN PULONG Register);
/*IN*/ PULONG Register);
SCSIPORTAPI
USHORT
DDKAPI
ScsiPortReadRegisterUshort(
IN PUSHORT Register);
/*IN*/ PUSHORT Register);
SCSIPORTAPI
ULONG
DDKAPI
ScsiPortSetBusDataByOffset(
IN PVOID DeviceExtension,
IN ULONG BusDataType,
IN ULONG SystemIoBusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length);
/*IN*/ PVOID DeviceExtension,
/*IN*/ ULONG BusDataType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Offset,
/*IN*/ ULONG Length);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortStallExecution(
IN ULONG Delay);
/*IN*/ ULONG Delay);
SCSIPORTAPI
BOOLEAN
DDKAPI
ScsiPortValidateRange(
IN PVOID HwDeviceExtension,
IN INTERFACE_TYPE BusType,
IN ULONG SystemIoBusNumber,
IN SCSI_PHYSICAL_ADDRESS IoAddress,
IN ULONG NumberOfBytes,
IN BOOLEAN InIoSpace);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ INTERFACE_TYPE BusType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ SCSI_PHYSICAL_ADDRESS IoAddress,
/*IN*/ ULONG NumberOfBytes,
/*IN*/ BOOLEAN InIoSpace);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortBufferUchar(
IN PUCHAR Port,
IN PUCHAR Buffer,
IN ULONG Count);
/*IN*/ PUCHAR Port,
/*IN*/ PUCHAR Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortBufferUlong(
IN PULONG Port,
IN PULONG Buffer,
IN ULONG Count);
/*IN*/ PULONG Port,
/*IN*/ PULONG Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortBufferUshort(
IN PUSHORT Port,
IN PUSHORT Buffer,
IN ULONG Count);
/*IN*/ PUSHORT Port,
/*IN*/ PUSHORT Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortUchar(
IN PUCHAR Port,
IN UCHAR Value);
/*IN*/ PUCHAR Port,
/*IN*/ UCHAR Value);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortUlong(
IN PULONG Port,
IN ULONG Value);
/*IN*/ PULONG Port,
/*IN*/ ULONG Value);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWritePortUshort(
IN PUSHORT Port,
IN USHORT Value);
/*IN*/ PUSHORT Port,
/*IN*/ USHORT Value);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterBufferUchar(
IN PUCHAR Register,
IN PUCHAR Buffer,
IN ULONG Count);
/*IN*/ PUCHAR Register,
/*IN*/ PUCHAR Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterBufferUlong(
IN PULONG Register,
IN PULONG Buffer,
IN ULONG Count);
/*IN*/ PULONG Register,
/*IN*/ PULONG Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterBufferUshort(
IN PUSHORT Register,
IN PUSHORT Buffer,
IN ULONG Count);
/*IN*/ PUSHORT Register,
/*IN*/ PUSHORT Buffer,
/*IN*/ ULONG Count);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterUchar(
IN PUCHAR Register,
IN ULONG Value);
/*IN*/ PUCHAR Register,
/*IN*/ ULONG Value);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterUlong(
IN PULONG Register,
IN ULONG Value);
/*IN*/ PULONG Register,
/*IN*/ ULONG Value);
SCSIPORTAPI
VOID
DDKAPI
ScsiPortWriteRegisterUshort(
IN PUSHORT Register,
IN USHORT Value);
/*IN*/ PUSHORT Register,
/*IN*/ USHORT Value);
SCSIPORTAPI
VOID
DDKCDECLAPI
ScsiDebugPrint(
IN ULONG DebugPrintLevel,
IN PCCHAR DebugMessage,
IN ...);
/*IN*/ ULONG DebugPrintLevel,
/*IN*/ PCCHAR DebugMessage,
/*IN*/ ...);
#ifdef __cplusplus
}

View File

@ -83,331 +83,331 @@ STORPORTAPI
ULONG
DDKAPI
StorPortInitialize(
IN PVOID Argument1,
IN PVOID Argument2,
IN PHW_INITIALIZATION_DATA HwInitializationData,
IN PVOID Unused);
/*IN*/ PVOID Argument1,
/*IN*/ PVOID Argument2,
/*IN*/ PHW_INITIALIZATION_DATA HwInitializationData,
/*IN*/ PVOID Unused);
STORPORTAPI
VOID
DDKAPI
StorPortFreeDeviceBase(
IN PVOID HwDeviceExtension,
IN PVOID MappedAddress);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID MappedAddress);
STORPORTAPI
ULONG
DDKAPI
StorPortGetBusData(
IN PVOID DeviceExtension,
IN ULONG BusDataType,
IN ULONG SystemIoBusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Length);
/*IN*/ PVOID DeviceExtension,
/*IN*/ ULONG BusDataType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Length);
STORPORTAPI
ULONG
DDKAPI
StorPortSetBusDataByOffset(
IN PVOID DeviceExtension,
IN ULONG BusDataType,
IN ULONG SystemIoBusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length);
/*IN*/ PVOID DeviceExtension,
/*IN*/ ULONG BusDataType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Offset,
/*IN*/ ULONG Length);
STORPORTAPI
PVOID
DDKAPI
StorPortGetDeviceBase(
IN PVOID HwDeviceExtension,
IN INTERFACE_TYPE BusType,
IN ULONG SystemIoBusNumber,
IN SCSI_PHYSICAL_ADDRESS IoAddress,
IN ULONG NumberOfBytes,
IN BOOLEAN InIoSpace);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ INTERFACE_TYPE BusType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ SCSI_PHYSICAL_ADDRESS IoAddress,
/*IN*/ ULONG NumberOfBytes,
/*IN*/ BOOLEAN InIoSpace);
STORPORTAPI
PVOID
DDKAPI
StorPortGetLogicalUnit(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun);
STORPORTAPI
PSCSI_REQUEST_BLOCK
DDKAPI
StorPortGetSrb(
IN PVOID DeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN LONG QueueTag);
/*IN*/ PVOID DeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ LONG QueueTag);
STORPORTAPI
STOR_PHYSICAL_ADDRESS
DDKAPI
StorPortGetPhysicalAddress(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb,
IN PVOID VirtualAddress,
OUT ULONG *Length);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb,
/*IN*/ PVOID VirtualAddress,
/*OUT*/ ULONG *Length);
STORPORTAPI
PVOID
DDKAPI
StorPortGetVirtualAddress(
IN PVOID HwDeviceExtension,
IN STOR_PHYSICAL_ADDRESS PhysicalAddress);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ STOR_PHYSICAL_ADDRESS PhysicalAddress);
STORPORTAPI
PVOID
DDKAPI
StorPortGetUncachedExtension(
IN PVOID HwDeviceExtension,
IN PPORT_CONFIGURATION_INFORMATION ConfigInfo,
IN ULONG NumberOfBytes);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PPORT_CONFIGURATION_INFORMATION ConfigInfo,
/*IN*/ ULONG NumberOfBytes);
STORPORTAPI
VOID
DDKCDECLAPI
StorPortNotification(
IN SCSI_NOTIFICATION_TYPE NotificationType,
IN PVOID HwDeviceExtension,
IN ...);
/*IN*/ SCSI_NOTIFICATION_TYPE NotificationType,
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ...);
STORPORTAPI
VOID
DDKAPI
StorPortLogError(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb OPTIONAL,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN ULONG ErrorCode,
IN ULONG UniqueId);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb /*OPTIONAL*/,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ ULONG ErrorCode,
/*IN*/ ULONG UniqueId);
STORPORTAPI
VOID
DDKAPI
StorPortCompleteRequest(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN UCHAR SrbStatus);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ UCHAR SrbStatus);
STORPORTAPI
VOID
DDKAPI
StorPortMoveMemory(
IN PVOID WriteBuffer,
IN PVOID ReadBuffer,
IN ULONG Length);
/*IN*/ PVOID WriteBuffer,
/*IN*/ PVOID ReadBuffer,
/*IN*/ ULONG Length);
STORPORTAPI
VOID
DDKAPI
StorPortStallExecution(
IN ULONG Delay);
/*IN*/ ULONG Delay);
STORPORTAPI
STOR_PHYSICAL_ADDRESS
DDKAPI
StorPortConvertUlong64ToPhysicalAddress(
IN ULONG64 UlongAddress);
/*IN*/ ULONG64 UlongAddress);
STORPORTAPI
ULONG64
DDKAPI
StorPortConvertPhysicalAddressToUlong64(
IN STOR_PHYSICAL_ADDRESS Address);
/*IN*/ STOR_PHYSICAL_ADDRESS Address);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortValidateRange(
IN PVOID HwDeviceExtension,
IN INTERFACE_TYPE BusType,
IN ULONG SystemIoBusNumber,
IN STOR_PHYSICAL_ADDRESS IoAddress,
IN ULONG NumberOfBytes,
IN BOOLEAN InIoSpace);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ INTERFACE_TYPE BusType,
/*IN*/ ULONG SystemIoBusNumber,
/*IN*/ STOR_PHYSICAL_ADDRESS IoAddress,
/*IN*/ ULONG NumberOfBytes,
/*IN*/ BOOLEAN InIoSpace);
STORPORTAPI
VOID
DDKCDECLAPI
StorPortDebugPrint(
IN ULONG DebugPrintLevel,
IN PCCHAR DebugMessage,
IN ...);
/*IN*/ ULONG DebugPrintLevel,
/*IN*/ PCCHAR DebugMessage,
/*IN*/ ...);
STORPORTAPI
UCHAR
DDKAPI
StorPortReadPortUchar(
IN PUCHAR Port);
/*IN*/ PUCHAR Port);
STORPORTAPI
ULONG
DDKAPI
StorPortReadPortUlong(
IN PULONG Port);
/*IN*/ PULONG Port);
STORPORTAPI
USHORT
DDKAPI
StorPortReadPortUshort(
IN PUSHORT Port);
/*IN*/ PUSHORT Port);
STORPORTAPI
UCHAR
DDKAPI
StorPortReadRegisterUchar(
IN PUCHAR Register);
/*IN*/ PUCHAR Register);
STORPORTAPI
ULONG
DDKAPI
StorPortReadRegisterUlong(
IN PULONG Register);
/*IN*/ PULONG Register);
STORPORTAPI
USHORT
DDKAPI
StorPortReadRegisterUshort(
IN PUSHORT Register);
/*IN*/ PUSHORT Register);
STORPORTAPI
VOID
DDKAPI
StorPortWritePortUchar(
IN PUCHAR Port,
IN UCHAR Value);
/*IN*/ PUCHAR Port,
/*IN*/ UCHAR Value);
STORPORTAPI
VOID
DDKAPI
StorPortWritePortUlong(
IN PULONG Port,
IN ULONG Value);
/*IN*/ PULONG Port,
/*IN*/ ULONG Value);
STORPORTAPI
VOID
DDKAPI
StorPortWritePortUshort(
IN PUSHORT Port,
IN USHORT Value);
/*IN*/ PUSHORT Port,
/*IN*/ USHORT Value);
STORPORTAPI
VOID
DDKAPI
StorPortWriteRegisterUchar(
IN PUCHAR Port,
IN UCHAR Value);
/*IN*/ PUCHAR Port,
/*IN*/ UCHAR Value);
STORPORTAPI
VOID
DDKAPI
StorPortWriteRegisterUlong(
IN PULONG Port,
IN ULONG Value);
/*IN*/ PULONG Port,
/*IN*/ ULONG Value);
STORPORTAPI
VOID
DDKAPI
StorPortWriteRegisterUshort(
IN PUSHORT Port,
IN USHORT Value);
/*IN*/ PUSHORT Port,
/*IN*/ USHORT Value);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortPauseDevice(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN ULONG TimeOut);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ ULONG TimeOut);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortResumeDevice(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortPause(
IN PVOID HwDeviceExtension,
IN ULONG TimeOut);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ULONG TimeOut);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortResume(
IN PVOID HwDeviceExtension);
/*IN*/ PVOID HwDeviceExtension);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortDeviceBusy(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN ULONG RequestsToComplete);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun,
/*IN*/ ULONG RequestsToComplete);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortDeviceReady(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ UCHAR PathId,
/*IN*/ UCHAR TargetId,
/*IN*/ UCHAR Lun);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortBusy(
IN PVOID HwDeviceExtension,
IN ULONG RequestsToComplete);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ULONG RequestsToComplete);
STORPORTAPI
BOOLEAN
DDKAPI
StorPortReady(
IN PVOID HwDeviceExtension);
/*IN*/ PVOID HwDeviceExtension);
STORPORTAPI
PSTOR_SCATTER_GATHER_LIST
DDKAPI
StorPortGetScatterGatherList(
IN PVOID DeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb);
/*IN*/ PVOID DeviceExtension,
/*IN*/ PSCSI_REQUEST_BLOCK Srb);
typedef BOOLEAN DDKAPI
(*PSTOR_SYNCHRONIZED_ACCESS)(
IN PVOID HwDeviceExtension,
IN PVOID Context);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID Context);
STORPORTAPI
VOID
DDKAPI
StorPortSynchronizeAccess(
IN PVOID HwDeviceExtension,
IN PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine,
IN PVOID Context);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine,
/*IN*/ PVOID Context);
#ifdef DBG
#define DebugPrint(x) StorPortDebugPrint x

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
#ifndef __UPSSVC_H
#define __UPSSVC_H
#if __GNUC__ >=3
#if __GNUC__ >= 3
#pragma GCC system_header
#endif
@ -78,14 +78,14 @@ UPSAPI
VOID
DDKAPI
UPSTurnOff(
IN DWORD aTurnOffDelay);
/*IN*/ DWORD aTurnOffDelay);
UPSAPI
VOID
DDKAPI
UPSWaitForStateChange(
IN DWORD aCurrentState,
IN DWORD anInterval);
/*IN*/ DWORD aCurrentState,
/*IN*/ DWORD anInterval);
#ifdef __cplusplus
}

View File

@ -256,10 +256,10 @@ USBCAMAPI
ULONG
DDKAPI
USBCAMD_InitializeNewInterface(
IN PVOID DeviceContext,
IN PVOID DeviceData,
IN ULONG Version,
IN ULONG CamControlFlag);
/*IN*/ PVOID DeviceContext,
/*IN*/ PVOID DeviceData,
/*IN*/ ULONG Version,
/*IN*/ ULONG CamControlFlag);
typedef VOID DDKAPI
(*PCOMMAND_COMPLETE_FUNCTION)(
@ -269,64 +269,64 @@ typedef VOID DDKAPI
typedef NTSTATUS DDKAPI
(*PFNUSBCAMD_BulkReadWrite)(
IN PVOID DeviceContext,
IN USHORT PipeIndex,
IN PVOID Buffer,
IN ULONG BufferLength,
IN PCOMMAND_COMPLETE_FUNCTION CommandComplete,
IN PVOID CommandContext);
/*IN*/ PVOID DeviceContext,
/*IN*/ USHORT PipeIndex,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG BufferLength,
/*IN*/ PCOMMAND_COMPLETE_FUNCTION CommandComplete,
/*IN*/ PVOID CommandContext);
typedef NTSTATUS DDKAPI
(*PFNUSBCAMD_SetIsoPipeState)(
IN PVOID DeviceContext,
IN ULONG PipeStateFlags);
/*IN*/ PVOID DeviceContext,
/*IN*/ ULONG PipeStateFlags);
typedef NTSTATUS DDKAPI
(*PFNUSBCAMD_CancelBulkReadWrite)(
IN PVOID DeviceContext,
IN ULONG PipeIndex);
/*IN*/ PVOID DeviceContext,
/*IN*/ ULONG PipeIndex);
typedef NTSTATUS DDKAPI
(*PFNUSBCAMD_SetVideoFormat)(
IN PVOID DeviceContext,
IN PHW_STREAM_REQUEST_BLOCK pSrb);
/*IN*/ PVOID DeviceContext,
/*IN*/ PHW_STREAM_REQUEST_BLOCK pSrb);
typedef NTSTATUS DDKAPI
(*PFNUSBCAMD_WaitOnDeviceEvent)(
IN PVOID DeviceContext,
IN ULONG PipeIndex,
IN PVOID Buffer,
IN ULONG BufferLength,
IN PCOMMAND_COMPLETE_FUNCTION EventComplete,
IN PVOID EventContext,
IN BOOLEAN LoopBack);
/*IN*/ PVOID DeviceContext,
/*IN*/ ULONG PipeIndex,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG BufferLength,
/*IN*/ PCOMMAND_COMPLETE_FUNCTION EventComplete,
/*IN*/ PVOID EventContext,
/*IN*/ BOOLEAN LoopBack);
USBCAMAPI
PVOID
DDKAPI
USBCAMD_AdapterReceivePacket(
IN PHW_STREAM_REQUEST_BLOCK Srb,
IN PUSBCAMD_DEVICE_DATA DeviceData,
IN PDEVICE_OBJECT *DeviceObject,
IN BOOLEAN NeedsCompletion);
/*IN*/ PHW_STREAM_REQUEST_BLOCK Srb,
/*IN*/ PUSBCAMD_DEVICE_DATA DeviceData,
/*IN*/ PDEVICE_OBJECT *DeviceObject,
/*IN*/ BOOLEAN NeedsCompletion);
USBCAMAPI
NTSTATUS
DDKAPI
USBCAMD_ControlVendorCommand(
IN PVOID DeviceContext,
IN UCHAR Request,
IN USHORT Value,
IN USHORT Index,
IN PVOID Buffer,
IN OUT PULONG BufferLength,
IN BOOLEAN GetData,
IN PCOMMAND_COMPLETE_FUNCTION CommandComplete,
IN PVOID CommandContext);
/*IN*/ PVOID DeviceContext,
/*IN*/ UCHAR Request,
/*IN*/ USHORT Value,
/*IN*/ USHORT Index,
/*IN*/ PVOID Buffer,
/*IN OUT*/ PULONG BufferLength,
/*IN*/ BOOLEAN GetData,
/*IN*/ PCOMMAND_COMPLETE_FUNCTION CommandComplete,
/*IN*/ PVOID CommandContext);
typedef VOID DDKAPI
(*PADAPTER_RECEIVE_PACKET_ROUTINE)(
IN PHW_STREAM_REQUEST_BLOCK Srb);
/*IN*/ PHW_STREAM_REQUEST_BLOCK Srb);
USBCAMAPI
ULONG
@ -342,18 +342,18 @@ USBCAMAPI
NTSTATUS
DDKAPI
USBCAMD_GetRegistryKeyValue(
IN HANDLE Handle,
IN PWCHAR KeyNameString,
IN ULONG KeyNameStringLength,
IN PVOID Data,
IN ULONG DataLength);
/*IN*/ HANDLE Handle,
/*IN*/ PWCHAR KeyNameString,
/*IN*/ ULONG KeyNameStringLength,
/*IN*/ PVOID Data,
/*IN*/ ULONG DataLength);
USBCAMAPI
NTSTATUS
DDKAPI
USBCAMD_SelectAlternateInterface(
IN PVOID DeviceContext,
IN OUT PUSBD_INTERFACE_INFORMATION RequestInterface);
/*IN*/ PVOID DeviceContext,
/*IN OUT*/ PUSBD_INTERFACE_INFORMATION RequestInterface);
#define USBCAMD_VERSION_200 0x200
@ -368,9 +368,9 @@ typedef struct _USBCAMD_INTERFACE {
typedef VOID DDKAPI
(*PSTREAM_RECEIVE_PACKET)(
IN PVOID Srb,
IN PVOID DeviceContext,
IN PBOOLEAN Completed);
/*IN*/ PVOID Srb,
/*IN*/ PVOID DeviceContext,
/*IN*/ PBOOLEAN Completed);
#if defined(DEBUG_LOG)
@ -378,10 +378,10 @@ USBCAMAPI
VOID
DDKAPI
USBCAMD_Debug_LogEntry(
IN CHAR *Name,
IN ULONG Info1,
IN ULONG Info2,
IN ULONG Info3);
/*IN*/ CHAR *Name,
/*IN*/ ULONG Info1,
/*IN*/ ULONG Info2,
/*IN*/ ULONG Info3);
#define ILOGENTRY(sig, info1, info2, info3) \
USBCAMD_Debug_LogEntry(sig, (ULONG)info1, (ULONG)info2, (ULONG)info3)

View File

@ -78,45 +78,45 @@ extern "C" {
#define BULKIN_FLAG 0x80
typedef struct _CHANNEL_INFO {
OUT ULONG EventChannelSize;
OUT ULONG uReadDataAlignment;
OUT ULONG uWriteDataAlignment;
/*OUT*/ ULONG EventChannelSize;
/*OUT*/ ULONG uReadDataAlignment;
/*OUT*/ ULONG uWriteDataAlignment;
}CHANNEL_INFO, *PCHANNEL_INFO;
typedef struct _DEVICE_DESCRIPTOR {
OUT USHORT usVendorId;
OUT USHORT usProductId;
OUT USHORT usBcdDevice;
OUT USHORT usLanguageId;
/*OUT*/ USHORT usVendorId;
/*OUT*/ USHORT usProductId;
/*OUT*/ USHORT usBcdDevice;
/*OUT*/ USHORT usLanguageId;
} DEVICE_DESCRIPTOR, *PDEVICE_DESCRIPTOR;
typedef struct _DRV_VERSION {
OUT ULONG major;
OUT ULONG minor;
OUT ULONG internal;
/*OUT*/ ULONG major;
/*OUT*/ ULONG minor;
/*OUT*/ ULONG internal;
} DRV_VERSION, *PDRV_VERSION;
typedef struct _IO_BLOCK {
IN ULONG uOffset;
IN ULONG uLength;
IN OUT PUCHAR pbyData;
IN ULONG uIndex;
/*IN*/ ULONG uOffset;
/*IN*/ ULONG uLength;
/*IN OUT*/ PUCHAR pbyData;
/*IN*/ ULONG uIndex;
} IO_BLOCK, *PIO_BLOCK;
typedef struct _IO_BLOCK_EX {
IN ULONG uOffset;
IN ULONG uLength;
IN OUT PUCHAR pbyData;
IN ULONG uIndex;
IN UCHAR bRequest;
IN UCHAR bmRequestType;
IN UCHAR fTransferDirectionIn;
/*IN*/ ULONG uOffset;
/*IN*/ ULONG uLength;
/*IN OUT*/ PUCHAR pbyData;
/*IN*/ ULONG uIndex;
/*IN*/ UCHAR bRequest;
/*IN*/ UCHAR bmRequestType;
/*IN*/ UCHAR fTransferDirectionIn;
} IO_BLOCK_EX, *PIO_BLOCK_EX;
typedef struct _USBSCAN_GET_DESCRIPTOR {
IN UCHAR DescriptorType;
IN UCHAR Index;
IN USHORT LanguageId;
/*IN*/ UCHAR DescriptorType;
/*IN*/ UCHAR Index;
/*IN*/ USHORT LanguageId;
} USBSCAN_GET_DESCRIPTOR, *PUSBSCAN_GET_DESCRIPTOR;
typedef enum _RAW_PIPE_TYPE {
@ -134,14 +134,14 @@ typedef struct _USBSCAN_PIPE_INFORMATION {
} USBSCAN_PIPE_INFORMATION, *PUSBSCAN_PIPE_INFORMATION;
typedef struct _USBSCAN_PIPE_CONFIGURATION {
OUT ULONG NumberOfPipes;
OUT USBSCAN_PIPE_INFORMATION PipeInfo[MAX_NUM_PIPES];
/*OUT*/ ULONG NumberOfPipes;
/*OUT*/ USBSCAN_PIPE_INFORMATION PipeInfo[MAX_NUM_PIPES];
} USBSCAN_PIPE_CONFIGURATION, *PUSBSCAN_PIPE_CONFIGURATION;
typedef struct _USBSCAN_TIMEOUT {
IN ULONG TimeoutRead;
IN ULONG TimeoutWrite;
IN ULONG TimeoutEvent;
/*IN*/ ULONG TimeoutRead;
/*IN*/ ULONG TimeoutWrite;
/*IN*/ ULONG TimeoutEvent;
} USBSCAN_TIMEOUT, *PUSBSCAN_TIMEOUT;
typedef enum _PIPE_TYPE {

File diff suppressed because it is too large Load Diff

View File

@ -48,60 +48,60 @@ typedef enum _VIDEO_PORT_CACHE_TYPE {
typedef BOOLEAN DDKAPI
(*PAGP_COMMIT_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID PhysicalReserveContext,
/*IN*/ ULONG Pages,
/*IN*/ ULONG Offset);
typedef PVOID DDKAPI
(*PAGP_COMMIT_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID VirtualReserveContext,
/*IN*/ ULONG Pages,
/*IN*/ ULONG Offset);
typedef VOID DDKAPI
(*PAGP_FREE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID PhysicalReserveContext,
/*IN*/ ULONG Pages,
/*IN*/ ULONG Offset);
typedef VOID DDKAPI
(*PAGP_FREE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID VirtualReserveContext,
/*IN*/ ULONG Pages,
/*IN*/ ULONG Offset);
typedef VOID DDKAPI
(*PAGP_RELEASE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID PhysicalReserveContext);
typedef VOID DDKAPI
(*PAGP_RELEASE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVOID VirtualReserveContext);
typedef PHYSICAL_ADDRESS DDKAPI
(*PAGP_RESERVE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN ULONG Pages,
IN VIDEO_PORT_CACHE_TYPE Caching,
OUT PVOID *PhysicalReserveContext);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ULONG Pages,
/*IN*/ VIDEO_PORT_CACHE_TYPE Caching,
/*OUT*/ PVOID *PhysicalReserveContext);
typedef PVOID DDKAPI
(*PAGP_RESERVE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN HANDLE ProcessHandle,
IN PVOID PhysicalReserveContext,
OUT PVOID *VirtualReserveContext);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ HANDLE ProcessHandle,
/*IN*/ PVOID PhysicalReserveContext,
/*OUT*/ PVOID *VirtualReserveContext);
typedef BOOLEAN DDKAPI
(*PAGP_SET_RATE)(
IN PVOID HwDeviceExtension,
IN ULONG AgpRate);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ ULONG AgpRate);
typedef struct _VIDEO_PORT_AGP_SERVICES {
PAGP_RESERVE_PHYSICAL AgpReservePhysical;
@ -119,8 +119,8 @@ VPAPI
BOOLEAN
DDKAPI
VideoPortGetAgpServices(
IN PVOID HwDeviceExtension,
IN PVIDEO_PORT_AGP_SERVICES AgpServices);
/*IN*/ PVOID HwDeviceExtension,
/*IN*/ PVIDEO_PORT_AGP_SERVICES AgpServices);
#ifdef __cplusplus
}

View File

@ -56,40 +56,40 @@ NTOSAPI
VOID
DDKAPI
ExReleaseResourceForThreadLite(
IN PERESOURCE Resource,
IN ERESOURCE_THREAD ResourceThreadId);
/*IN*/ PERESOURCE Resource,
/*IN*/ ERESOURCE_THREAD ResourceThreadId);
NTOSAPI
NTSTATUS
DDKAPI
IoReadPartitionTable(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN BOOLEAN ReturnRecognizedPartitions,
OUT struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ ULONG SectorSize,
/*IN*/ BOOLEAN ReturnRecognizedPartitions,
/*OUT*/ struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer);
NTOSAPI
NTSTATUS
DDKAPI
IoSetPartitionInformation(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN ULONG PartitionNumber,
IN ULONG PartitionType);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ ULONG SectorSize,
/*IN*/ ULONG PartitionNumber,
/*IN*/ ULONG PartitionType);
NTOSAPI
NTSTATUS
DDKAPI
IoWritePartitionTable(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
IN ULONG SectorsPerTrack,
IN ULONG NumberOfHeads,
IN struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer);
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ ULONG SectorSize,
/*IN*/ ULONG SectorsPerTrack,
/*IN*/ ULONG NumberOfHeads,
/*IN*/ struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer);
/*
* PVOID MmGetSystemAddressForMdl(
* IN PMDL Mdl);
* IN PMDL Mdl);
*/
#define MmGetSystemAddressForMdl(Mdl) \
(((Mdl)->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | \

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ typedef struct _ZONE_HEADER {
static __inline PVOID
ExAllocateFromZone(
IN PZONE_HEADER Zone)
/*IN*/ PZONE_HEADER Zone)
{
if (Zone->FreeList.Next)
Zone->FreeList.Next = Zone->FreeList.Next->Next;
@ -56,14 +56,14 @@ NTOSAPI
NTSTATUS
DDKAPI
ExExtendZone(
IN PZONE_HEADER Zone,
IN PVOID Segment,
IN ULONG SegmentSize);
/*IN*/ PZONE_HEADER Zone,
/*IN*/ PVOID Segment,
/*IN*/ ULONG SegmentSize);
static __inline PVOID
ExFreeToZone(
IN PZONE_HEADER Zone,
IN PVOID Block)
/*IN*/ PZONE_HEADER Zone,
/*IN*/ PVOID Block)
{
((PSINGLE_LIST_ENTRY) Block)->Next = Zone->FreeList.Next;
Zone->FreeList.Next = ((PSINGLE_LIST_ENTRY) Block);
@ -74,16 +74,16 @@ NTOSAPI
NTSTATUS
DDKAPI
ExInitializeZone(
IN PZONE_HEADER Zone,
IN ULONG BlockSize,
IN PVOID InitialSegment,
IN ULONG InitialSegmentSize);
/*IN*/ PZONE_HEADER Zone,
/*IN*/ ULONG BlockSize,
/*IN*/ PVOID InitialSegment,
/*IN*/ ULONG InitialSegmentSize);
/*
* PVOID
* ExInterlockedAllocateFromZone(
* IN PZONE_HEADER Zone,
* IN PKSPIN_LOCK Lock)
* IN PZONE_HEADER Zone,
* IN PKSPIN_LOCK Lock)
*/
#define ExInterlockedAllocateFromZone(Zone, \
Lock) \
@ -93,25 +93,25 @@ NTOSAPI
NTSTATUS
DDKAPI
ExInterlockedExtendZone(
IN PZONE_HEADER Zone,
IN PVOID Segment,
IN ULONG SegmentSize,
IN PKSPIN_LOCK Lock);
/*IN*/ PZONE_HEADER Zone,
/*IN*/ PVOID Segment,
/*IN*/ ULONG SegmentSize,
/*IN*/ PKSPIN_LOCK Lock);
NTOSAPI
PVOID
DDKAPI
ExInterlockedFreeToZone(
IN PZONE_HEADER Zone,
IN PVOID Block,
IN PKSPIN_LOCK Lock);
/*IN*/ PZONE_HEADER Zone,
/*IN*/ PVOID Block,
/*IN*/ PKSPIN_LOCK Lock);
/*
* VOID
* ExInitializeWorkItem(
* IN PWORK_QUEUE_ITEM Item,
* IN PWORKER_THREAD_ROUTINE Routine,
* IN PVOID Context)
* IN PWORK_QUEUE_ITEM Item,
* IN PWORKER_THREAD_ROUTINE Routine,
* IN PVOID Context)
*/
#define ExInitializeWorkItem(Item, \
Routine, \
@ -125,7 +125,7 @@ ExInterlockedFreeToZone(
/*
* BOOLEAN
* ExIsFullZone(
* IN PZONE_HEADER Zone)
* IN PZONE_HEADER Zone)
*/
#define ExIsFullZone(Zone) \
((Zone)->FreeList.Next == (PSINGLE_LIST_ENTRY) NULL)
@ -134,21 +134,21 @@ NTOSAPI
VOID
DDKAPI
ExQueueWorkItem(
IN PWORK_QUEUE_ITEM WorkItem,
IN WORK_QUEUE_TYPE QueueType);
/*IN*/ PWORK_QUEUE_ITEM WorkItem,
/*IN*/ WORK_QUEUE_TYPE QueueType);
NTOSAPI
BOOLEAN
DDKAPI
ExIsObjectInFirstZoneSegment(
IN PZONE_HEADER Zone,
IN PVOID Object);
/*IN*/ PZONE_HEADER Zone,
/*IN*/ PVOID Object);
NTOSAPI
VOID
DDKAPI
ExReleaseResource(
IN PERESOURCE Resource);
/*IN*/ PERESOURCE Resource);
#define ExAcquireResourceExclusive ExAcquireResourceExclusiveLite
#define ExAcquireResourceShared ExAcquireResourceSharedLite
@ -164,83 +164,83 @@ NTOSAPI
INTERLOCKED_RESULT
DDKAPI
ExInterlockedDecrementLong(
IN PLONG Addend,
IN PKSPIN_LOCK Lock);
/*IN*/ PLONG Addend,
/*IN*/ PKSPIN_LOCK Lock);
NTOSAPI
ULONG
DDKAPI
ExInterlockedExchangeUlong(
IN PULONG Target,
IN ULONG Value,
IN PKSPIN_LOCK Lock);
/*IN*/ PULONG Target,
/*IN*/ ULONG Value,
/*IN*/ PKSPIN_LOCK Lock);
NTOSAPI
INTERLOCKED_RESULT
DDKAPI
ExInterlockedIncrementLong(
IN PLONG Addend,
IN PKSPIN_LOCK Lock);
/*IN*/ PLONG Addend,
/*IN*/ PKSPIN_LOCK Lock);
NTOSAPI
PVOID
DDKAPI
HalAllocateCommonBuffer(
IN PADAPTER_OBJECT AdapterObject,
IN ULONG Length,
OUT PPHYSICAL_ADDRESS LogicalAddress,
IN BOOLEAN CacheEnabled);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ ULONG Length,
/*OUT*/ PPHYSICAL_ADDRESS LogicalAddress,
/*IN*/ BOOLEAN CacheEnabled);
NTOSAPI
NTSTATUS
DDKAPI
HalAssignSlotResources(
IN PUNICODE_STRING RegistryPath,
IN PUNICODE_STRING DriverClassName,
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT DeviceObject,
IN INTERFACE_TYPE BusType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN OUT PCM_RESOURCE_LIST *AllocatedResources);
/*IN*/ PUNICODE_STRING RegistryPath,
/*IN*/ PUNICODE_STRING DriverClassName,
/*IN*/ PDRIVER_OBJECT DriverObject,
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ INTERFACE_TYPE BusType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG SlotNumber,
/*IN OUT*/ PCM_RESOURCE_LIST *AllocatedResources);
NTOSAPI
VOID
DDKAPI
HalFreeCommonBuffer(
IN PADAPTER_OBJECT AdapterObject,
IN ULONG Length,
IN PHYSICAL_ADDRESS LogicalAddress,
IN PVOID VirtualAddress,
IN BOOLEAN CacheEnabled);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ ULONG Length,
/*IN*/ PHYSICAL_ADDRESS LogicalAddress,
/*IN*/ PVOID VirtualAddress,
/*IN*/ BOOLEAN CacheEnabled);
NTOSAPI
PADAPTER_OBJECT
DDKAPI
HalGetAdapter(
IN PDEVICE_DESCRIPTION DeviceDescription,
IN OUT PULONG NumberOfMapRegisters);
/*IN*/ PDEVICE_DESCRIPTION DeviceDescription,
/*IN OUT*/ PULONG NumberOfMapRegisters);
NTOSAPI
ULONG
DDKAPI
HalGetBusData(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Length);
/*IN*/ BUS_DATA_TYPE BusDataType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Length);
NTOSAPI
ULONG
DDKAPI
HalGetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length);
/*IN*/ BUS_DATA_TYPE BusDataType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Offset,
/*IN*/ ULONG Length);
NTOSAPI
ULONG
@ -252,314 +252,314 @@ NTOSAPI
ULONG
DDKAPI
HalGetInterruptVector(
IN INTERFACE_TYPE InterfaceType,
IN ULONG BusNumber,
IN ULONG BusInterruptLevel,
IN ULONG BusInterruptVector,
OUT PKIRQL Irql,
OUT PKAFFINITY Affinity);
/*IN*/ INTERFACE_TYPE InterfaceType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG BusInterruptLevel,
/*IN*/ ULONG BusInterruptVector,
/*OUT*/ PKIRQL Irql,
/*OUT*/ PKAFFINITY Affinity);
NTOSAPI
ULONG
DDKAPI
HalReadDmaCounter(
IN PADAPTER_OBJECT AdapterObject);
/*IN*/ PADAPTER_OBJECT AdapterObject);
NTOSAPI
ULONG
DDKAPI
HalSetBusData(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Length);
/*IN*/ BUS_DATA_TYPE BusDataType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Length);
NTOSAPI
ULONG
DDKAPI
HalSetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length);
/*IN*/ BUS_DATA_TYPE BusDataType,
/*IN*/ ULONG BusNumber,
/*IN*/ ULONG SlotNumber,
/*IN*/ PVOID Buffer,
/*IN*/ ULONG Offset,
/*IN*/ ULONG Length);
NTOSAPI
BOOLEAN
DDKAPI
HalTranslateBusAddress(
IN INTERFACE_TYPE InterfaceType,
IN ULONG BusNumber,
IN PHYSICAL_ADDRESS BusAddress,
IN OUT PULONG AddressSpace,
OUT PPHYSICAL_ADDRESS TranslatedAddress);
/*IN*/ INTERFACE_TYPE InterfaceType,
/*IN*/ ULONG BusNumber,
/*IN*/ PHYSICAL_ADDRESS BusAddress,
/*IN OUT*/ PULONG AddressSpace,
/*OUT*/ PPHYSICAL_ADDRESS TranslatedAddress);
NTOSAPI
NTSTATUS
DDKAPI
IoAllocateAdapterChannel(
IN PADAPTER_OBJECT AdapterObject,
IN PDEVICE_OBJECT DeviceObject,
IN ULONG NumberOfMapRegisters,
IN PDRIVER_CONTROL ExecutionRoutine,
IN PVOID Context);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ PDEVICE_OBJECT DeviceObject,
/*IN*/ ULONG NumberOfMapRegisters,
/*IN*/ PDRIVER_CONTROL ExecutionRoutine,
/*IN*/ PVOID Context);
NTOSAPI
NTSTATUS
DDKAPI
IoAssignResources(
IN PUNICODE_STRING RegistryPath,
IN PUNICODE_STRING DriverClassName OPTIONAL,
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT DeviceObject OPTIONAL,
IN PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources,
IN OUT PCM_RESOURCE_LIST *AllocatedResources);
/*IN*/ PUNICODE_STRING RegistryPath,
/*IN*/ PUNICODE_STRING DriverClassName /*OPTIONAL*/,
/*IN*/ PDRIVER_OBJECT DriverObject,
/*IN*/ PDEVICE_OBJECT DeviceObject /*OPTIONAL*/,
/*IN*/ PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources,
/*IN OUT*/ PCM_RESOURCE_LIST *AllocatedResources);
NTOSAPI
NTSTATUS
DDKAPI
IoAttachDeviceByPointer(
IN PDEVICE_OBJECT SourceDevice,
IN PDEVICE_OBJECT TargetDevice);
/*IN*/ PDEVICE_OBJECT SourceDevice,
/*IN*/ PDEVICE_OBJECT TargetDevice);
NTOSAPI
BOOLEAN
DDKAPI
IoFlushAdapterBuffers(
IN PADAPTER_OBJECT AdapterObject,
IN PMDL Mdl,
IN PVOID MapRegisterBase,
IN PVOID CurrentVa,
IN ULONG Length,
IN BOOLEAN WriteToDevice);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ PMDL Mdl,
/*IN*/ PVOID MapRegisterBase,
/*IN*/ PVOID CurrentVa,
/*IN*/ ULONG Length,
/*IN*/ BOOLEAN WriteToDevice);
NTOSAPI
VOID
DDKAPI
IoFreeAdapterChannel(
IN PADAPTER_OBJECT AdapterObject);
/*IN*/ PADAPTER_OBJECT AdapterObject);
NTOSAPI
VOID
DDKAPI
IoFreeMapRegisters(
IN PADAPTER_OBJECT AdapterObject,
IN PVOID MapRegisterBase,
IN ULONG NumberOfMapRegisters);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ PVOID MapRegisterBase,
/*IN*/ ULONG NumberOfMapRegisters);
NTOSAPI
PHYSICAL_ADDRESS
DDKAPI
IoMapTransfer(
IN PADAPTER_OBJECT AdapterObject,
IN PMDL Mdl,
IN PVOID MapRegisterBase,
IN PVOID CurrentVa,
IN OUT PULONG Length,
IN BOOLEAN WriteToDevice);
/*IN*/ PADAPTER_OBJECT AdapterObject,
/*IN*/ PMDL Mdl,
/*IN*/ PVOID MapRegisterBase,
/*IN*/ PVOID CurrentVa,
/*IN OUT*/ PULONG Length,
/*IN*/ BOOLEAN WriteToDevice);
NTOSAPI
PMDL
DDKAPI
MmCreateMdl(
IN PMDL MemoryDescriptorList OPTIONAL,
IN PVOID Base,
IN SIZE_T Length);
/*IN*/ PMDL MemoryDescriptorList /*OPTIONAL*/,
/*IN*/ PVOID Base,
/*IN*/ SIZE_T Length);
NTOSAPI
BOOLEAN
DDKAPI
MmIsNonPagedSystemAddressValid(
IN PVOID VirtualAddress);
/*IN*/ PVOID VirtualAddress);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlEnlargedIntegerMultiply(
IN LONG Multiplicand,
IN LONG Multiplier);
/*IN*/ LONG Multiplicand,
/*IN*/ LONG Multiplier);
NTOSAPI
ULONG
DDKAPI
RtlEnlargedUnsignedDivide(
IN ULARGE_INTEGER Dividend,
IN ULONG Divisor,
IN OUT PULONG Remainder);
/*IN*/ ULARGE_INTEGER Dividend,
/*IN*/ ULONG Divisor,
/*IN OUT*/ PULONG Remainder);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlEnlargedUnsignedMultiply(
IN ULONG Multiplicand,
IN ULONG Multiplier);
/*IN*/ ULONG Multiplicand,
/*IN*/ ULONG Multiplier);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlExtendedIntegerMultiply(
IN LARGE_INTEGER Multiplicand,
IN LONG Multiplier);
/*IN*/ LARGE_INTEGER Multiplicand,
/*IN*/ LONG Multiplier);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlExtendedLargeIntegerDivide(
IN LARGE_INTEGER Dividend,
IN ULONG Divisor,
IN OUT PULONG Remainder);
/*IN*/ LARGE_INTEGER Dividend,
/*IN*/ ULONG Divisor,
/*IN OUT*/ PULONG Remainder);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlExtendedMagicDivide(
IN LARGE_INTEGER Dividend,
IN LARGE_INTEGER MagicDivisor,
IN CCHAR ShiftCount);
/*IN*/ LARGE_INTEGER Dividend,
/*IN*/ LARGE_INTEGER MagicDivisor,
/*IN*/ CCHAR ShiftCount);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerAdd(
IN LARGE_INTEGER Addend1,
IN LARGE_INTEGER Addend2);
/*IN*/ LARGE_INTEGER Addend1,
/*IN*/ LARGE_INTEGER Addend2);
NTOSAPI
VOID
DDKAPI
RtlLargeIntegerAnd(
IN OUT LARGE_INTEGER Result,
IN LARGE_INTEGER Source,
IN LARGE_INTEGER Mask);
/*IN OUT*/ LARGE_INTEGER Result,
/*IN*/ LARGE_INTEGER Source,
/*IN*/ LARGE_INTEGER Mask);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerArithmeticShift(
IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount);
/*IN*/ LARGE_INTEGER LargeInteger,
/*IN*/ CCHAR ShiftCount);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerDivide(
IN LARGE_INTEGER Dividend,
IN LARGE_INTEGER Divisor,
IN OUT PLARGE_INTEGER Remainder);
/*IN*/ LARGE_INTEGER Dividend,
/*IN*/ LARGE_INTEGER Divisor,
/*IN OUT*/ PLARGE_INTEGER Remainder);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerEqualTo(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerEqualToZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerGreaterOrEqualToZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerGreaterThan(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerGreaterThanOrEqualTo(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerGreaterThanZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerLessOrEqualToZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerLessThan(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerLessThanOrEqualTo(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerLessThanZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerNegate(
IN LARGE_INTEGER Subtrahend);
/*IN*/ LARGE_INTEGER Subtrahend);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerNotEqualTo(
IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2);
/*IN*/ LARGE_INTEGER Operand1,
/*IN*/ LARGE_INTEGER Operand2);
NTOSAPI
BOOLEAN
DDKAPI
RtlLargeIntegerNotEqualToZero(
IN LARGE_INTEGER Operand);
/*IN*/ LARGE_INTEGER Operand);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerShiftLeft(
IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount);
/*IN*/ LARGE_INTEGER LargeInteger,
/*IN*/ CCHAR ShiftCount);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerShiftRight(
IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount);
/*IN*/ LARGE_INTEGER LargeInteger,
/*IN*/ CCHAR ShiftCount);
NTOSAPI
LARGE_INTEGER
DDKAPI
RtlLargeIntegerSubtract(
IN LARGE_INTEGER Minuend,
IN LARGE_INTEGER Subtrahend);
/*IN*/ LARGE_INTEGER Minuend,
/*IN*/ LARGE_INTEGER Subtrahend);
/*
* ULONG
* COMPUTE_PAGES_SPANNED(
* IN PVOID Va,
* IN ULONG Size)
* IN PVOID Va,
* IN ULONG Size)
*/
#define COMPUTE_PAGES_SPANNED(Va, \
Size) \
@ -576,39 +576,39 @@ NTOSAPI
INTERLOCKED_RESULT
DDKAPI
Exi386InterlockedIncrementLong(
IN PLONG Addend);
/*IN*/ PLONG Addend);
NTOSAPI
INTERLOCKED_RESULT
DDKFASTAPI
Exfi386InterlockedIncrementLong(
IN PLONG Addend);
/*IN*/ PLONG Addend);
NTOSAPI
INTERLOCKED_RESULT
DDKAPI
Exi386InterlockedDecrementLong(
IN PLONG Addend);
/*IN*/ PLONG Addend);
NTOSAPI
INTERLOCKED_RESULT
DDKFASTAPI
Exfi386InterlockedDecrementLong(
IN PLONG Addend);
/*IN*/ PLONG Addend);
NTOSAPI
ULONG
DDKAPI
Exi386InterlockedExchangeUlong(
IN PULONG Target,
IN ULONG Value);
/*IN*/ PULONG Target,
/*IN*/ ULONG Value);
NTOSAPI
ULONG
DDKFASTAPI
Exfi386InterlockedExchangeUlong(
IN PULONG Target,
IN ULONG Value);
/*IN*/ PULONG Target,
/*IN*/ ULONG Value);
#define ExInterlockedIncrementLong(Addend,Lock) Exfi386InterlockedIncrementLong(Addend)
#define ExInterlockedDecrementLong(Addend,Lock) Exfi386InterlockedDecrementLong(Addend)

View File

@ -69,47 +69,47 @@ typedef WSPUPCALLTABLEEX *LPWSPUPCALLTABLEEX;
{0xE5DA4AF8, 0xD824, 0x48CD, {0xA7, 0x99, 0x63, 0x37, 0xA9, 0x8E, 0xD2, 0xAF}}
typedef struct _WSABUFEX {
u_long len;
char FAR *buf;
HANDLE handle;
u_long len;
char FAR *buf;
HANDLE handle;
} WSABUFEX, FAR * LPWSABUFEX;
#if 0
typedef struct _WSPUPCALLTABLEEX {
LPWPUCLOSEEVENT lpWPUCloseEvent;
LPWPUCLOSESOCKETHANDLE lpWPUCloseSocketHandle;
LPWPUCREATEEVENT lpWPUCreateEvent;
LPWPUCREATESOCKETHANDLE lpWPUCreateSocketHandle;
LPWPUFDISSET lpWPUFDIsSet;
LPWPUGETPROVIDERPATH lpWPUGetProviderPath;
LPWPUMODIFYIFSHANDLE lpWPUModifyIFSHandle;
LPWPUPOSTMESSAGE lpWPUPostMessage;
LPWPUQUERYBLOCKINGCALLBACK lpWPUQueryBlockingCallback;
LPWPUQUERYSOCKETHANDLECONTEXT lpWPUQuerySocketHandleContext;
LPWPUQUEUEAPC lpWPUQueueApc;
LPWPURESETEVENT lpWPUResetEvent;
LPWPUSETEVENT lpWPUSetEvent;
LPWPUOPENCURRENTTHREAD lpWPUOpenCurrentThread;
LPWPUCLOSETHREAD lpWPUCloseThread;
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
LPWPUCLOSEEVENT lpWPUCloseEvent;
LPWPUCLOSESOCKETHANDLE lpWPUCloseSocketHandle;
LPWPUCREATEEVENT lpWPUCreateEvent;
LPWPUCREATESOCKETHANDLE lpWPUCreateSocketHandle;
LPWPUFDISSET lpWPUFDIsSet;
LPWPUGETPROVIDERPATH lpWPUGetProviderPath;
LPWPUMODIFYIFSHANDLE lpWPUModifyIFSHandle;
LPWPUPOSTMESSAGE lpWPUPostMessage;
LPWPUQUERYBLOCKINGCALLBACK lpWPUQueryBlockingCallback;
LPWPUQUERYSOCKETHANDLECONTEXT lpWPUQuerySocketHandleContext;
LPWPUQUEUEAPC lpWPUQueueApc;
LPWPURESETEVENT lpWPUResetEvent;
LPWPUSETEVENT lpWPUSetEvent;
LPWPUOPENCURRENTTHREAD lpWPUOpenCurrentThread;
LPWPUCLOSETHREAD lpWPUCloseThread;
LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
} WSPUPCALLTABLEEX, FAR * LPWSPUPCALLTABLEEX;
#endif
int WSPAPI
WSPStartupEx(
IN WORD wVersionRequested,
OUT LPWSPDATA lpWSPData,
IN LPWSAPROTOCOL_INFOW lpProtocolInfo,
IN LPWSPUPCALLTABLEEX lpUpcallTable,
OUT LPWSPPROC_TABLE lpProcTable);
/*IN*/ WORD wVersionRequested,
/*OUT*/ LPWSPDATA lpWSPData,
/*IN*/ LPWSAPROTOCOL_INFOW lpProtocolInfo,
/*IN*/ LPWSPUPCALLTABLEEX lpUpcallTable,
/*OUT*/ LPWSPPROC_TABLE lpProcTable);
typedef int WSPAPI
(*LPWSPSTARTUPEX)(
IN WORD wVersionRequested,
OUT LPWSPDATA lpWSPData,
IN LPWSAPROTOCOL_INFOW lpProtocolInfo,
IN LPWSPUPCALLTABLEEX lpUpcallTable,
OUT LPWSPPROC_TABLE lpProcTable);
/*IN*/ WORD wVersionRequested,
/*OUT*/ LPWSPDATA lpWSPData,
/*IN*/ LPWSAPROTOCOL_INFOW lpProtocolInfo,
/*IN*/ LPWSPUPCALLTABLEEX lpUpcallTable,
/*OUT*/ LPWSPPROC_TABLE lpProcTable);
#define MEM_READ 1
#define MEM_WRITE 2
@ -117,129 +117,129 @@ typedef int WSPAPI
int WSPAPI
WSPDeregisterMemory(
IN SOCKET s,
IN HANDLE Handle,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ HANDLE Handle,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPDEREGISTERMEMORY)(
IN SOCKET s,
IN HANDLE Handle,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ HANDLE Handle,
/*OUT*/ LPINT lpErrno);
int WSPAPI
WSPDeregisterRdmaMemory(
IN SOCKET s,
IN LPVOID lpRdmaBufferDescriptor,
IN DWORD dwDescriptorLength,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPVOID lpRdmaBufferDescriptor,
/*IN*/ DWORD dwDescriptorLength,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPDEREGISTERRDMAMEMORY)(
IN SOCKET s,
IN LPVOID lpRdmaBufferDescriptor,
IN DWORD dwDescriptorLength,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPVOID lpRdmaBufferDescriptor,
/*IN*/ DWORD dwDescriptorLength,
/*OUT*/ LPINT lpErrno);
int WSPAPI
WSPMemoryRegistrationCacheCallback(
IN PVOID lpvAddress,
IN SIZE_T Size,
OUT LPINT lpErrno);
/*IN*/ PVOID lpvAddress,
/*IN*/ SIZE_T Size,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPMEMORYREGISTRATIONCACHECALLBACK)(
IN PVOID lpvAddress,
IN SIZE_T Size,
OUT LPINT lpErrno);
/*IN*/ PVOID lpvAddress,
/*IN*/ SIZE_T Size,
/*OUT*/ LPINT lpErrno);
int WSPAPI
WSPRdmaRead(
IN SOCKET s,
IN LPWSABUFEX lpBuffers,
IN DWORD dwBufferCount,
IN LPVOID lpTargetBufferDescriptor,
IN DWORD dwTargetDescriptorLength,
IN DWORD dwTargetBufferOffset,
OUT LPDWORD lpdwNumberOfBytesRead,
IN DWORD dwFlags,
IN LPWSAOVERLAPPED lpOverlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
IN LPWSATHREADID lpThreadId,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPWSABUFEX lpBuffers,
/*IN*/ DWORD dwBufferCount,
/*IN*/ LPVOID lpTargetBufferDescriptor,
/*IN*/ DWORD dwTargetDescriptorLength,
/*IN*/ DWORD dwTargetBufferOffset,
/*OUT*/ LPDWORD lpdwNumberOfBytesRead,
/*IN*/ DWORD dwFlags,
/*IN*/ LPWSAOVERLAPPED lpOverlapped,
/*IN*/ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
/*IN*/ LPWSATHREADID lpThreadId,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPRDMAREAD)(
IN SOCKET s,
IN LPWSABUFEX lpBuffers,
IN DWORD dwBufferCount,
IN LPVOID lpTargetBufferDescriptor,
IN DWORD dwTargetDescriptorLength,
IN DWORD dwTargetBufferOffset,
OUT LPDWORD lpdwNumberOfBytesRead,
IN DWORD dwFlags,
IN LPWSAOVERLAPPED lpOverlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
IN LPWSATHREADID lpThreadId,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPWSABUFEX lpBuffers,
/*IN*/ DWORD dwBufferCount,
/*IN*/ LPVOID lpTargetBufferDescriptor,
/*IN*/ DWORD dwTargetDescriptorLength,
/*IN*/ DWORD dwTargetBufferOffset,
/*OUT*/ LPDWORD lpdwNumberOfBytesRead,
/*IN*/ DWORD dwFlags,
/*IN*/ LPWSAOVERLAPPED lpOverlapped,
/*IN*/ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
/*IN*/ LPWSATHREADID lpThreadId,
/*OUT*/ LPINT lpErrno);
int WSPAPI
WSPRdmaWrite(
IN SOCKET s,
IN LPWSABUFEX lpBuffers,
IN DWORD dwBufferCount,
IN LPVOID lpTargetBufferDescriptor,
IN DWORD dwTargetDescriptorLength,
IN DWORD dwTargetBufferOffset,
OUT LPDWORD lpdwNumberOfBytesWritten,
IN DWORD dwFlags,
IN LPWSAOVERLAPPED lpOverlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
IN LPWSATHREADID lpThreadId,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPWSABUFEX lpBuffers,
/*IN*/ DWORD dwBufferCount,
/*IN*/ LPVOID lpTargetBufferDescriptor,
/*IN*/ DWORD dwTargetDescriptorLength,
/*IN*/ DWORD dwTargetBufferOffset,
/*OUT*/ LPDWORD lpdwNumberOfBytesWritten,
/*IN*/ DWORD dwFlags,
/*IN*/ LPWSAOVERLAPPED lpOverlapped,
/*IN*/ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
/*IN*/ LPWSATHREADID lpThreadId,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPRDMAWRITE)(
IN SOCKET s,
IN LPWSABUFEX lpBuffers,
IN DWORD dwBufferCount,
IN LPVOID lpTargetBufferDescriptor,
IN DWORD dwTargetDescriptorLength,
IN DWORD dwTargetBufferOffset,
OUT LPDWORD lpdwNumberOfBytesWritten,
IN DWORD dwFlags,
IN LPWSAOVERLAPPED lpOverlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
IN LPWSATHREADID lpThreadId,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ LPWSABUFEX lpBuffers,
/*IN*/ DWORD dwBufferCount,
/*IN*/ LPVOID lpTargetBufferDescriptor,
/*IN*/ DWORD dwTargetDescriptorLength,
/*IN*/ DWORD dwTargetBufferOffset,
/*OUT*/ LPDWORD lpdwNumberOfBytesWritten,
/*IN*/ DWORD dwFlags,
/*IN*/ LPWSAOVERLAPPED lpOverlapped,
/*IN*/ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine,
/*IN*/ LPWSATHREADID lpThreadId,
/*OUT*/ LPINT lpErrno);
HANDLE WSPAPI
WSPRegisterMemory(
IN SOCKET s,
IN PVOID lpBuffer,
IN DWORD dwBufferLength,
IN DWORD dwFlags,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ PVOID lpBuffer,
/*IN*/ DWORD dwBufferLength,
/*IN*/ DWORD dwFlags,
/*OUT*/ LPINT lpErrno);
int WSPAPI
WSPRegisterRdmaMemory(
IN SOCKET s,
IN PVOID lpBuffer,
IN DWORD dwBufferLength,
IN DWORD dwFlags,
OUT LPVOID lpRdmaBufferDescriptor,
IN OUT LPDWORD lpdwDescriptorLength,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ PVOID lpBuffer,
/*IN*/ DWORD dwBufferLength,
/*IN*/ DWORD dwFlags,
/*OUT*/ LPVOID lpRdmaBufferDescriptor,
/*IN OUT*/ LPDWORD lpdwDescriptorLength,
/*OUT*/ LPINT lpErrno);
typedef int WSPAPI
(*LPFN_WSPREGISTERRDMAMEMORY)(
IN SOCKET s,
IN PVOID lpBuffer,
IN DWORD dwBufferLength,
IN DWORD dwFlags,
OUT LPVOID lpRdmaBufferDescriptor,
IN OUT LPDWORD lpdwDescriptorLength,
OUT LPINT lpErrno);
/*IN*/ SOCKET s,
/*IN*/ PVOID lpBuffer,
/*IN*/ DWORD dwBufferLength,
/*IN*/ DWORD dwFlags,
/*OUT*/ LPVOID lpRdmaBufferDescriptor,
/*IN OUT*/ LPDWORD lpdwDescriptorLength,
/*OUT*/ LPINT lpErrno);
#ifdef __cplusplus
}

View File

@ -250,16 +250,16 @@ HANDLE _IMAGEHLPAPI FindDebugInfoFile(LPSTR,LPSTR,LPSTR);
HANDLE _IMAGEHLPAPI FindExecutableImage(LPSTR,LPSTR,LPSTR);
BOOL _IMAGEHLPAPI UpdateDebugInfoFile(LPSTR,LPSTR,LPSTR,PIMAGE_NT_HEADERS);
BOOL _IMAGEHLPAPI UpdateDebugInfoFileEx(LPSTR,LPSTR,LPSTR,PIMAGE_NT_HEADERS,DWORD);
BOOL _IMAGEHLPAPI BindImage(IN LPSTR,IN LPSTR,IN LPSTR);
BOOL _IMAGEHLPAPI BindImageEx(IN DWORD,IN LPSTR,IN LPSTR,IN LPSTR,IN PIMAGEHLP_STATUS_ROUTINE);
BOOL _IMAGEHLPAPI ReBaseImage(IN LPSTR,IN LPSTR,IN BOOL, IN BOOL,IN BOOL, IN ULONG, OUT ULONG*, OUT ULONG*, OUT ULONG*, IN OUT ULONG*, IN ULONG);
BOOL _IMAGEHLPAPI BindImage(/*IN*/ LPSTR,/*IN*/ LPSTR,/*IN*/ LPSTR);
BOOL _IMAGEHLPAPI BindImageEx(/*IN*/ DWORD,/*IN*/ LPSTR,/*IN*/ LPSTR,/*IN*/ LPSTR,/*IN*/ PIMAGEHLP_STATUS_ROUTINE);
BOOL _IMAGEHLPAPI ReBaseImage(/*IN*/ LPSTR,/*IN*/ LPSTR,/*IN*/ BOOL,/*IN*/ BOOL,/*IN*/ BOOL,/*IN*/ ULONG,/*OUT*/ ULONG*,/*OUT*/ ULONG*,/*OUT*/ ULONG*,/*IN OUT*/ ULONG*,/*IN*/ ULONG);
PLOADED_IMAGE _IMAGEHLPAPI ImageLoad(LPSTR,LPSTR);
BOOL _IMAGEHLPAPI ImageUnload(PLOADED_IMAGE);
PIMAGE_NT_HEADERS _IMAGEHLPAPI ImageNtHeader(IN PVOID);
PVOID _IMAGEHLPAPI ImageDirectoryEntryToData(IN PVOID,IN BOOLEAN,IN USHORT,OUT PULONG);
PIMAGE_SECTION_HEADER _IMAGEHLPAPI ImageRvaToSection(IN PIMAGE_NT_HEADERS,IN PVOID,IN ULONG);
PVOID _IMAGEHLPAPI ImageRvaToVa(IN PIMAGE_NT_HEADERS,IN PVOID,IN ULONG,IN OUT PIMAGE_SECTION_HEADER*);
PIMAGE_NT_HEADERS _IMAGEHLPAPI ImageNtHeader(/*IN*/ PVOID);
PVOID _IMAGEHLPAPI ImageDirectoryEntryToData(/*IN*/ PVOID,/*IN*/ BOOLEAN,/*IN*/ USHORT,/*OUT*/ PULONG);
PIMAGE_SECTION_HEADER _IMAGEHLPAPI ImageRvaToSection(/*IN*/ PIMAGE_NT_HEADERS,/*IN*/ PVOID,/*IN*/ ULONG);
PVOID _IMAGEHLPAPI ImageRvaToVa(/*IN*/ PIMAGE_NT_HEADERS,/*IN*/ PVOID,/*IN*/ ULONG,/*IN OUT*/ PIMAGE_SECTION_HEADER*);
BOOL _IMAGEHLPAPI MapAndLoad(LPSTR,LPSTR,PLOADED_IMAGE,BOOL,BOOL);
BOOL _IMAGEHLPAPI GetImageConfigInformation(PLOADED_IMAGE,PIMAGE_LOAD_CONFIG_DIRECTORY);
DWORD _IMAGEHLPAPI GetImageUnusedHeaderBytes(PLOADED_IMAGE,LPDWORD);
@ -279,37 +279,37 @@ LPAPI_VERSION _IMAGEHLPAPI ImagehlpApiVersionEx(LPAPI_VERSION);
DWORD _IMAGEHLPAPI GetTimestampForLoadedLibrary(HMODULE);
BOOL _IMAGEHLPAPI RemovePrivateCvSymbolic(PCHAR,PCHAR*,ULONG*);
VOID _IMAGEHLPAPI RemoveRelocations(PCHAR);
DWORD _IMAGEHLPAPI SymSetOptions(IN DWORD);
DWORD _IMAGEHLPAPI SymSetOptions(/*IN*/ DWORD);
DWORD _IMAGEHLPAPI SymGetOptions(VOID);
BOOL _IMAGEHLPAPI SymCleanup(IN HANDLE);
BOOL _IMAGEHLPAPI SymEnumerateModules(IN HANDLE,IN PSYM_ENUMMODULES_CALLBACK,IN PVOID);
BOOL _IMAGEHLPAPI SymEnumerateSymbols(IN HANDLE,IN DWORD,IN PSYM_ENUMSYMBOLS_CALLBACK,IN PVOID);
BOOL _IMAGEHLPAPI EnumerateLoadedModules(IN HANDLE,IN PENUMLOADED_MODULES_CALLBACK,IN PVOID);
BOOL _IMAGEHLPAPI SymCleanup(/*IN*/ HANDLE);
BOOL _IMAGEHLPAPI SymEnumerateModules(/*IN*/ HANDLE,/*IN*/ PSYM_ENUMMODULES_CALLBACK,/*IN*/ PVOID);
BOOL _IMAGEHLPAPI SymEnumerateSymbols(/*IN*/ HANDLE,/*IN*/ DWORD,/*IN*/ PSYM_ENUMSYMBOLS_CALLBACK,/*IN*/ PVOID);
BOOL _IMAGEHLPAPI EnumerateLoadedModules(/*IN*/ HANDLE,/*IN*/ PENUMLOADED_MODULES_CALLBACK,/*IN*/ PVOID);
LPVOID _IMAGEHLPAPI SymFunctionTableAccess(HANDLE,DWORD);
BOOL _IMAGEHLPAPI SymGetModuleInfo(IN HANDLE,IN DWORD,OUT PIMAGEHLP_MODULE);
DWORD _IMAGEHLPAPI SymGetModuleBase(IN HANDLE,IN DWORD);
BOOL _IMAGEHLPAPI SymGetSymFromAddr(IN HANDLE,IN DWORD,OUT PDWORD,OUT PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymFromName(IN HANDLE,IN LPSTR,OUT PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymNext(IN HANDLE,IN OUT PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymPrev(IN HANDLE,IN OUT PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetLineFromAddr(IN HANDLE,IN DWORD,OUT PDWORD,OUT PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLineFromName(IN HANDLE,IN LPSTR,IN LPSTR,IN DWORD,OUT PLONG,IN OUT PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLineNext(IN HANDLE,IN OUT PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLinePrev(IN HANDLE,IN OUT PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymMatchFileName(IN LPSTR,IN LPSTR,OUT LPSTR*,OUT LPSTR*);
BOOL _IMAGEHLPAPI SymInitialize(IN HANDLE,IN LPSTR,IN BOOL);
BOOL _IMAGEHLPAPI SymGetSearchPath(IN HANDLE,OUT LPSTR,IN DWORD);
BOOL _IMAGEHLPAPI SymSetSearchPath(IN HANDLE,IN LPSTR);
BOOL _IMAGEHLPAPI SymLoadModule(IN HANDLE,IN HANDLE,IN PSTR,IN PSTR,IN DWORD,IN DWORD);
BOOL _IMAGEHLPAPI SymUnloadModule(IN HANDLE,IN DWORD);
BOOL _IMAGEHLPAPI SymUnDName(IN PIMAGEHLP_SYMBOL,OUT LPSTR,IN DWORD);
BOOL _IMAGEHLPAPI SymRegisterCallback(IN HANDLE,IN PSYMBOL_REGISTERED_CALLBACK,IN PVOID);
BOOL _IMAGEHLPAPI ImageGetDigestStream(IN HANDLE,IN DWORD,IN DIGEST_FUNCTION,IN DIGEST_HANDLE);
BOOL _IMAGEHLPAPI ImageAddCertificate(IN HANDLE,IN LPWIN_CERTIFICATE,OUT PDWORD);
BOOL _IMAGEHLPAPI ImageRemoveCertificate(IN HANDLE,IN DWORD);
BOOL _IMAGEHLPAPI ImageEnumerateCertificates(IN HANDLE,IN WORD,OUT PDWORD,IN OUT PDWORD OPTIONAL,IN OUT DWORD OPTIONAL);
BOOL _IMAGEHLPAPI ImageGetCertificateData(IN HANDLE,IN DWORD,OUT LPWIN_CERTIFICATE,IN OUT PDWORD);
BOOL _IMAGEHLPAPI ImageGetCertificateHeader(IN HANDLE,IN DWORD,IN OUT LPWIN_CERTIFICATE);
BOOL _IMAGEHLPAPI SymGetModuleInfo(/*IN*/ HANDLE,/*IN*/ DWORD,/*OUT*/ PIMAGEHLP_MODULE);
DWORD _IMAGEHLPAPI SymGetModuleBase(/*IN*/ HANDLE,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI SymGetSymFromAddr(/*IN*/ HANDLE,/*IN*/ DWORD,/*OUT*/ PDWORD,/*OUT*/ PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymFromName(/*IN*/ HANDLE,/*IN*/ LPSTR,/*OUT*/ PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymNext(/*IN*/ HANDLE,/*IN OUT*/ PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetSymPrev(/*IN*/ HANDLE,/*IN OUT*/ PIMAGEHLP_SYMBOL);
BOOL _IMAGEHLPAPI SymGetLineFromAddr(/*IN*/ HANDLE,/*IN*/ DWORD,/*OUT*/ PDWORD,/*OUT*/ PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLineFromName(/*IN*/ HANDLE,/*IN*/ LPSTR,/*IN*/ LPSTR,/*IN*/ DWORD,/*OUT*/ PLONG,/*IN OUT*/ PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLineNext(/*IN*/ HANDLE,/*IN OUT*/ PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymGetLinePrev(/*IN*/ HANDLE,/*IN OUT*/ PIMAGEHLP_LINE);
BOOL _IMAGEHLPAPI SymMatchFileName(/*IN*/ LPSTR,/*IN*/ LPSTR,/*OUT*/ LPSTR*,/*OUT*/ LPSTR*);
BOOL _IMAGEHLPAPI SymInitialize(/*IN*/ HANDLE,/*IN*/ LPSTR,/*IN*/ BOOL);
BOOL _IMAGEHLPAPI SymGetSearchPath(/*IN*/ HANDLE,/*OUT*/ LPSTR,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI SymSetSearchPath(/*IN*/ HANDLE,/*IN*/ LPSTR);
BOOL _IMAGEHLPAPI SymLoadModule(/*IN*/ HANDLE,/*IN*/ HANDLE,/*IN*/ PSTR,/*IN*/ PSTR,/*IN*/ DWORD,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI SymUnloadModule(/*IN*/ HANDLE,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI SymUnDName(/*IN*/ PIMAGEHLP_SYMBOL,/*OUT*/ LPSTR,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI SymRegisterCallback(/*IN*/ HANDLE,/*IN*/ PSYMBOL_REGISTERED_CALLBACK,/*IN*/ PVOID);
BOOL _IMAGEHLPAPI ImageGetDigestStream(/*IN*/ HANDLE,/*IN*/ DWORD,/*IN*/ DIGEST_FUNCTION,/*IN*/ DIGEST_HANDLE);
BOOL _IMAGEHLPAPI ImageAddCertificate(/*IN*/ HANDLE,/*IN*/ LPWIN_CERTIFICATE,/*OUT*/ PDWORD);
BOOL _IMAGEHLPAPI ImageRemoveCertificate(/*IN*/ HANDLE,/*IN*/ DWORD);
BOOL _IMAGEHLPAPI ImageEnumerateCertificates(/*IN*/ HANDLE,/*IN*/ WORD,/*OUT*/ PDWORD,/*IN OUT*/ PDWORD /*OPTIONAL*/,/*IN OUT*/ DWORD /*OPTIONAL*/);
BOOL _IMAGEHLPAPI ImageGetCertificateData(/*IN*/ HANDLE,/*IN*/ DWORD,/*OUT*/ LPWIN_CERTIFICATE,/*IN OUT*/ PDWORD);
BOOL _IMAGEHLPAPI ImageGetCertificateHeader(/*IN*/ HANDLE,/*IN*/ DWORD,/*IN OUT*/ LPWIN_CERTIFICATE);
BOOL _IMAGEHLPAPI CopyPdb(CHAR const*,CHAR const*,BOOL);
BOOL _IMAGEHLPAPI RemovePrivateCvSymbolicEx(PCHAR,ULONG,PCHAR*,ULONG*);

View File

@ -1,6 +1,6 @@
#ifndef _RPCDCE_H
#define _RPCDCE_H
#if __GNUC__ >=3
#if __GNUC__ >= 3
#pragma GCC system_header
#endif
@ -9,11 +9,14 @@ extern "C" {
#endif
#include <basetyps.h>
#ifndef _NO_W32_PSEUDO_MODIFIERS
#define IN
#define OUT
#ifndef OPTIONAL
#define OPTIONAL
#endif
#endif
#define uuid_t UUID
#define rpc_binding_handle_t RPC_BINDING_HANDLE
#define rpc_binding_vector_t RPC_BINDING_VECTOR

View File

@ -34,8 +34,8 @@ RPC_STATUS RPC_ENTRY RpcNsProfileEltRemoveA(unsigned long,unsigned char*,RPC_IF_
RPC_STATUS RPC_ENTRY RpcNsProfileEltInqBeginA(unsigned long,unsigned char*,unsigned long,RPC_IF_ID*,unsigned long,unsigned long,unsigned char*,RPC_NS_HANDLE*);
RPC_STATUS RPC_ENTRY RpcNsProfileEltInqNextA(RPC_NS_HANDLE,RPC_IF_ID*,unsigned char**,unsigned long*,unsigned char**);
RPC_STATUS RPC_ENTRY RpcNsProfileEltInqDone(RPC_NS_HANDLE*);
RPC_STATUS RPC_ENTRY RpcNsEntryObjectInqNext(IN RPC_NS_HANDLE,OUT UUID*);
RPC_STATUS RPC_ENTRY RpcNsEntryObjectInqDone(IN OUT RPC_NS_HANDLE*);
RPC_STATUS RPC_ENTRY RpcNsEntryObjectInqNext(/*IN*/ RPC_NS_HANDLE,/*OUT*/ UUID*);
RPC_STATUS RPC_ENTRY RpcNsEntryObjectInqDone(/*IN OUT*/ RPC_NS_HANDLE*);
RPC_STATUS RPC_ENTRY RpcNsEntryExpandNameA(unsigned long,unsigned char*,unsigned char**);
RPC_STATUS RPC_ENTRY RpcNsMgmtBindingUnexportA(unsigned long,unsigned char*,RPC_IF_ID*,unsigned long,UUID_VECTOR*);
RPC_STATUS RPC_ENTRY RpcNsMgmtEntryCreateA(unsigned long,unsigned char*);

View File

@ -12,10 +12,10 @@ typedef struct {
RPC_BINDING_HANDLE ProposedHandle;
RPC_BINDING_VECTOR *Bindings;
} RPC_IMPORT_CONTEXT_P,*PRPC_IMPORT_CONTEXT_P;
RPC_STATUS RPC_ENTRY I_RpcNsGetBuffer(IN PRPC_MESSAGE);
RPC_STATUS RPC_ENTRY I_RpcNsSendReceive(IN PRPC_MESSAGE,OUT RPC_BINDING_HANDLE*);
void RPC_ENTRY I_RpcNsRaiseException(IN PRPC_MESSAGE,IN RPC_STATUS);
RPC_STATUS RPC_ENTRY I_RpcReBindBuffer(IN PRPC_MESSAGE);
RPC_STATUS RPC_ENTRY I_RpcNsGetBuffer(/*IN*/ PRPC_MESSAGE);
RPC_STATUS RPC_ENTRY I_RpcNsSendReceive(/*IN*/ PRPC_MESSAGE,/*OUT*/ RPC_BINDING_HANDLE*);
void RPC_ENTRY I_RpcNsRaiseException(/*IN*/ PRPC_MESSAGE,/*IN*/ RPC_STATUS);
RPC_STATUS RPC_ENTRY I_RpcReBindBuffer(/*IN*/ PRPC_MESSAGE);
RPC_STATUS RPC_ENTRY I_NsServerBindSearch(void);
RPC_STATUS RPC_ENTRY I_NsClientBindSearch(void);
void RPC_ENTRY I_NsClientBindDone(void);

View File

@ -54,11 +54,18 @@ extern "C" {
#ifndef TRUE
#define TRUE 1
#endif
/* Pseudo modifiers for parameters
We don't use these unnecessary defines in the w32api headers. Define
them by default since that is what people expect, but allow users
to avoid the pollution. */
#ifndef _NO_W32_PSEUDO_MODIFIERS
#define IN
#define OUT
#ifndef OPTIONAL
#define OPTIONAL
#endif
#endif
#ifdef __GNUC__
#define PACKED __attribute__((packed))