diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index af5c79304..6a1bd75c5 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,54 @@ +2006-06-12 Danny Smith + + [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 * lib/Makefile.in: Added hlguids-uuid as source and object. diff --git a/winsup/w32api/include/ddk/batclass.h b/winsup/w32api/include/ddk/batclass.h index 664472705..d92a9edd2 100644 --- a/winsup/w32api/include/ddk/batclass.h +++ b/winsup/w32api/include/ddk/batclass.h @@ -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 } diff --git a/winsup/w32api/include/ddk/cfgmgr32.h b/winsup/w32api/include/ddk/cfgmgr32.h index 5249a22fc..4595ce7ad 100644 --- a/winsup/w32api/include/ddk/cfgmgr32.h +++ b/winsup/w32api/include/ddk/cfgmgr32.h @@ -571,20 +571,20 @@ CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf( - OUT PLOG_CONF plcLogConf, - IN DEVINST dnDevInst, - IN PRIORITY Priority, - IN ULONG ulFlags); + /*OUT*/ PLOG_CONF plcLogConf, + /*IN*/ DEVINST dnDevInst, + /*IN*/ PRIORITY Priority, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf_Ex( - OUT PLOG_CONF plcLogConf, - IN DEVINST dnDevInst, - IN PRIORITY Priority, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PLOG_CONF plcLogConf, + /*IN*/ DEVINST dnDevInst, + /*IN*/ PRIORITY Priority, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* CM_Add_ID.ulFlags constants */ #define CM_ADD_ID_HARDWARE 0x00000000 @@ -595,37 +595,37 @@ CMAPI CONFIGRET WINAPI CM_Add_IDA( - IN DEVINST dnDevInst, - IN PSTR pszID, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*IN*/ PSTR pszID, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Add_ID_ExA( - IN DEVINST dnDevInst, - IN PSTR pszID, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*IN*/ PSTR pszID, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Add_ID_ExW( - IN DEVINST dnDevInst, - IN PWSTR pszID, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*IN*/ PWSTR pszID, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Add_IDW( - IN DEVINST dnDevInst, - IN PWSTR pszID, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*IN*/ PWSTR pszID, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); #ifdef UNICODE #define CM_Add_ID CM_Add_IDW @@ -641,38 +641,38 @@ CMAPI CONFIGRET WINAPI CM_Add_Res_Des( - OUT PRES_DES prdResDes, - IN LOG_CONF lcLogConf, - IN RESOURCEID ResourceID, - IN PCVOID ResourceData, - IN ULONG ResourceLen, - IN ULONG ulFlags); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ LOG_CONF lcLogConf, + /*IN*/ RESOURCEID ResourceID, + /*IN*/ PCVOID ResourceData, + /*IN*/ ULONG ResourceLen, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Add_Res_Des_Ex( - OUT PRES_DES prdResDes, - IN LOG_CONF lcLogConf, - IN RESOURCEID ResourceID, - IN PCVOID ResourceData, - IN ULONG ResourceLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ LOG_CONF lcLogConf, + /*IN*/ RESOURCEID ResourceID, + /*IN*/ PCVOID ResourceData, + /*IN*/ ULONG ResourceLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Connect_MachineA( - IN PCSTR UNCServerName, - OUT PHMACHINE phMachine); + /*IN*/ PCSTR UNCServerName, + /*OUT*/ PHMACHINE phMachine); CMAPI CONFIGRET WINAPI CM_Connect_MachineW( - IN PCWSTR UNCServerName, - OUT PHMACHINE phMachine); + /*IN*/ PCWSTR UNCServerName, + /*OUT*/ PHMACHINE phMachine); #ifdef UNICODE #define CM_Connect_Machine CM_Connect_MachineW @@ -697,7 +697,7 @@ CMAPI CONFIGRET WINAPI CM_Disconnect_Machine( - IN HMACHINE hMachine); + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Enable_DevNode */ /* FIXME: Obsolete CM_Enable_DevNodeEx */ @@ -706,56 +706,56 @@ CMAPI CONFIGRET WINAPI CM_Enumerate_Classes( - IN ULONG ulClassIndex, - OUT LPGUID ClassGuid, - IN ULONG ulFlags); + /*IN*/ ULONG ulClassIndex, + /*OUT*/ LPGUID ClassGuid, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Enumerate_Classes_Ex( - IN ULONG ulClassIndex, - OUT LPGUID ClassGuid, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ ULONG ulClassIndex, + /*OUT*/ LPGUID ClassGuid, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsA( - IN ULONG ulEnumIndex, - OUT PCHAR Buffer, - IN OUT PULONG pulLength, - IN ULONG ulFlags); + /*IN*/ ULONG ulEnumIndex, + /*OUT*/ PCHAR Buffer, + /*IN OUT*/ PULONG pulLength, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExA( - IN ULONG ulEnumIndex, - OUT PCHAR Buffer, - IN OUT PULONG pulLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ ULONG ulEnumIndex, + /*OUT*/ PCHAR Buffer, + /*IN OUT*/ PULONG pulLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW( - IN ULONG ulEnumIndex, - OUT PWCHAR Buffer, - IN OUT PULONG pulLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ ULONG ulEnumIndex, + /*OUT*/ PWCHAR Buffer, + /*IN OUT*/ PULONG pulLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsW( - IN ULONG ulEnumIndex, - OUT PWCHAR Buffer, - IN OUT PULONG pulLength, - IN ULONG ulFlags); + /*IN*/ ULONG ulEnumIndex, + /*OUT*/ PWCHAR Buffer, + /*IN OUT*/ PULONG pulLength, + /*IN*/ ULONG ulFlags); #ifdef UNICODE #define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsW @@ -772,22 +772,22 @@ CMAPI CONFIGRET WINAPI CM_Free_Log_Conf( - IN LOG_CONF lcLogConfToBeFreed, - IN ULONG ulFlags); + /*IN*/ LOG_CONF lcLogConfToBeFreed, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Ex( - IN LOG_CONF lcLogConfToBeFreed, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ LOG_CONF lcLogConfToBeFreed, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Handle( - IN LOG_CONF lcLogConf); + /*IN*/ LOG_CONF lcLogConf); /* FIXME: Obsolete CM_Free_Range_List */ @@ -795,47 +795,47 @@ CMAPI CONFIGRET WINAPI CM_Free_Res_Des( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN ULONG ulFlags); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Ex( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Handle( - IN RES_DES rdResDes); + /*IN*/ RES_DES rdResDes); CMAPI CONFIGRET WINAPI CM_Free_Resource_Conflict_Handle( - IN CONFLICT_LIST clConflictList); + /*IN*/ CONFLICT_LIST clConflictList); CMAPI CONFIGRET WINAPI CM_Get_Child( - OUT PDEVINST pdnDevInst, - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Child_Ex( - OUT PDEVINST pdnDevInst, - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Get_Class_Name */ /* FIXME: Obsolete CM_Get_Class_Name_Ex */ @@ -847,56 +847,56 @@ CMAPI CONFIGRET WINAPI CM_Get_Depth( - OUT PULONG pulDepth, - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PULONG pulDepth, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Depth_Ex( - OUT PULONG pulDepth, - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulDepth, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_IDA( - IN DEVINST dnDevInst, - OUT PCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA( - IN DEVINST dnDevInst, - OUT PCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW( - IN DEVINST dnDevInst, - OUT PWCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PWCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_IDW( - IN DEVINST dnDevInst, - OUT PWCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PWCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags); #ifdef UNICODE #define CM_Get_Device_ID CM_Get_Device_IDW @@ -910,39 +910,39 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA( - IN PCSTR pszFilter, OPTIONAL - OUT PCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags); + /*IN*/ PCSTR pszFilter, /*OPTIONAL*/ + /*OUT*/ PCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA( - IN PCSTR pszFilter, OPTIONAL - OUT PCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ PCSTR pszFilter, /*OPTIONAL*/ + /*OUT*/ PCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW( - IN PCWSTR pszFilter, OPTIONAL - OUT PWCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ PCWSTR pszFilter, /*OPTIONAL*/ + /*OUT*/ PWCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW( - IN PCWSTR pszFilter, OPTIONAL - OUT PWCHAR Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags); + /*IN*/ PCWSTR pszFilter, /*OPTIONAL*/ + /*OUT*/ PWCHAR Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags); #ifdef UNICODE #define CM_Get_Device_ID_List CM_Get_Device_ID_ListW @@ -956,35 +956,35 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA( - OUT PULONG pulLen, - IN PCSTR pszFilter, OPTIONAL - IN ULONG ulFlags); + /*OUT*/ PULONG pulLen, + /*IN*/ PCSTR pszFilter, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExA( - OUT PULONG pulLen, - IN PCSTR pszFilter, OPTIONAL - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulLen, + /*IN*/ PCSTR pszFilter, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExW( - OUT PULONG pulLen, - IN PCWSTR pszFilter, OPTIONAL - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulLen, + /*IN*/ PCWSTR pszFilter, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW( - OUT PULONG pulLen, - IN PCWSTR pszFilter, OPTIONAL - IN ULONG ulFlags); + /*OUT*/ PULONG pulLen, + /*IN*/ PCWSTR pszFilter, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags); #ifdef UNICODE #define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeW @@ -998,18 +998,18 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size( - OUT PULONG pulLen, - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PULONG pulLen, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex( - OUT PULONG pulLen, - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulLen, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Get_Device_Interface_Alias */ /* FIXME: Obsolete CM_Get_Device_Interface_Alias_Ex */ @@ -1025,20 +1025,20 @@ CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status( - OUT PULONG pulStatus, - OUT PULONG pulProblemNumber, - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PULONG pulStatus, + /*OUT*/ PULONG pulProblemNumber, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status_Ex( - OUT PULONG pulStatus, - OUT PULONG pulProblemNumber, - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulStatus, + /*OUT*/ PULONG pulProblemNumber, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); #define CM_Get_DevInst_Status CM_Get_DevNode_Status #define CM_Get_DevInst_Status_Ex CM_Get_DevNode_Status_Ex @@ -1057,18 +1057,18 @@ CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf( - OUT PLOG_CONF plcLogConf, OPTIONAL - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/ + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf_Ex( - OUT PLOG_CONF plcLogConf, OPTIONAL - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/ + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Get_Global_State */ /* FIXME: Obsolete CM_Get_Global_State_Ex */ @@ -1081,132 +1081,132 @@ CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority( - IN LOG_CONF lcLogConf, - OUT PPRIORITY pPriority, - IN ULONG ulFlags); + /*IN*/ LOG_CONF lcLogConf, + /*OUT*/ PPRIORITY pPriority, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority_Ex( - IN LOG_CONF lcLogConf, - OUT PPRIORITY pPriority, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ LOG_CONF lcLogConf, + /*OUT*/ PPRIORITY pPriority, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf( - OUT PLOG_CONF plcLogConf, OPTIONAL - IN LOG_CONF lcLogConf, - IN ULONG ulFlags); + /*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/ + /*IN*/ LOG_CONF lcLogConf, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf_Ex( - OUT PLOG_CONF plcLogConf, OPTIONAL - IN LOG_CONF lcLogConf, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/ + /*IN*/ LOG_CONF lcLogConf, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN RESOURCEID ForResource, - OUT PRESOURCEID pResourceID, - IN ULONG ulFlags); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ RESOURCEID ForResource, + /*OUT*/ PRESOURCEID pResourceID, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des_Ex( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN RESOURCEID ForResource, - OUT PRESOURCEID pResourceID, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ RESOURCEID ForResource, + /*OUT*/ PRESOURCEID pResourceID, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Parent( - OUT PDEVINST pdnDevInst, - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Parent_Ex( - OUT PDEVINST pdnDevInst, - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data( - IN RES_DES rdResDes, - OUT PVOID Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags); + /*IN*/ RES_DES rdResDes, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Ex( - IN RES_DES rdResDes, - OUT PVOID Buffer, - IN ULONG BufferLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ RES_DES rdResDes, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size( - OUT PULONG pulSize, - IN RES_DES rdResDes, - IN ULONG ulFlags); + /*OUT*/ PULONG pulSize, + /*IN*/ RES_DES rdResDes, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size_Ex( - OUT PULONG pulSize, - IN RES_DES rdResDes, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PULONG pulSize, + /*IN*/ RES_DES rdResDes, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_Count( - IN CONFLICT_LIST clConflictList, - OUT PULONG pulCount); + /*IN*/ CONFLICT_LIST clConflictList, + /*OUT*/ PULONG pulCount); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsA( - IN CONFLICT_LIST clConflictList, - IN ULONG ulIndex, - IN OUT PCONFLICT_DETAILS_A pConflictDetails); + /*IN*/ CONFLICT_LIST clConflictList, + /*IN*/ ULONG ulIndex, + /*IN OUT*/ PCONFLICT_DETAILS_A pConflictDetails); CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsW( - IN CONFLICT_LIST clConflictList, - IN ULONG ulIndex, - IN OUT PCONFLICT_DETAILS_W pConflictDetails); + /*IN*/ CONFLICT_LIST clConflictList, + /*IN*/ ULONG ulIndex, + /*IN OUT*/ PCONFLICT_DETAILS_W pConflictDetails); #ifdef UNICODE #define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsW @@ -1218,18 +1218,18 @@ CMAPI CONFIGRET WINAPI CM_Get_Sibling( - OUT PDEVINST pdnDevInst, - IN DEVINST DevInst, - IN ULONG ulFlags); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST DevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Get_Sibling_Ex( - OUT PDEVINST pdnDevInst, - IN DEVINST DevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINST DevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI WORD @@ -1241,7 +1241,7 @@ CMAPI WORD WINAPI CM_Get_Version_Ex( - IN HMACHINE hMachine); + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Intersect_Range_List */ /* FIXME: Obsolete CM_Invert_Range_List */ @@ -1265,35 +1265,35 @@ CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA( - OUT PDEVINST pdnDevInst, - IN DEVINSTID_A pDeviceID, OPTIONAL - IN ULONG ulFlags); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINSTID_A pDeviceID, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExA( - OUT PDEVINST pdnDevInst, - IN DEVINSTID_A pDeviceID, OPTIONAL - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINSTID_A pDeviceID, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExW( - OUT PDEVINST pdnDevInst, - IN DEVINSTID_W pDeviceID, OPTIONAL - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINSTID_W pDeviceID, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW( - OUT PDEVINST pdnDevInst, - IN DEVINSTID_W pDeviceID, OPTIONAL - IN ULONG ulFlags); + /*OUT*/ PDEVINST pdnDevInst, + /*IN*/ DEVINSTID_W pDeviceID, /*OPTIONAL*/ + /*IN*/ ULONG ulFlags); #define CM_Locate_DevInstA CM_Locate_DevNodeA #define CM_Locate_DevInstW CM_Locate_DevNodeW @@ -1318,24 +1318,24 @@ CMAPI CONFIGRET WINAPI CM_Modify_Res_Des( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN RESOURCEID ResourceID, - IN PCVOID ResourceData, - IN ULONG ResourceLen, - IN ULONG ulFlags); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ RESOURCEID ResourceID, + /*IN*/ PCVOID ResourceData, + /*IN*/ ULONG ResourceLen, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Modify_Res_Des_Ex( - OUT PRES_DES prdResDes, - IN RES_DES rdResDes, - IN RESOURCEID ResourceID, - IN PCVOID ResourceData, - IN ULONG ResourceLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PRES_DES prdResDes, + /*IN*/ RES_DES rdResDes, + /*IN*/ RESOURCEID ResourceID, + /*IN*/ PCVOID ResourceData, + /*IN*/ ULONG ResourceLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Move_DevNode */ /* FIXME: Obsolete CM_Move_DevNode_Ex */ @@ -1355,43 +1355,43 @@ CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeA( - IN DEVINST dnAncestor, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags); + /*IN*/ DEVINST dnAncestor, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeW( - IN DEVINST dnAncestor, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPWSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags); + /*IN*/ DEVINST dnAncestor, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPWSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExA( - IN DEVINST dnAncestor, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnAncestor, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExW( - IN DEVINST dnAncestor, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPWSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnAncestor, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPWSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* FIXME: Obsolete CM_Query_Arbitrator_Free_Data */ /* FIXME: Obsolete CM_Query_Arbitrator_Free_Data_Ex */ @@ -1405,13 +1405,13 @@ CMAPI CONFIGRET WINAPI CM_Query_Resource_Conflict_List( - OUT PCONFLICT_LIST pclConflictList, - IN DEVINST dnDevInst, - IN RESOURCEID ResourceID, - IN PCVOID ResourceData, - IN ULONG ResourceLen, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*OUT*/ PCONFLICT_LIST pclConflictList, + /*IN*/ DEVINST dnDevInst, + /*IN*/ RESOURCEID ResourceID, + /*IN*/ PCVOID ResourceData, + /*IN*/ ULONG ResourceLen, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); /* CM_Reenumerate_DevNode.ulFlags constants */ #define CM_REENUMERATE_NORMAL 0x00000000 @@ -1424,16 +1424,16 @@ CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode( - IN DEVINST dnDevInst, - IN ULONG ulFlags); + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode_Ex( - IN DEVINST dnDevInst, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); #define CM_Reenumerate_DevInst CM_Reenumerate_DevNode #define CM_Reenumerate_DevInst_Ex CM_Reenumerate_DevNode_Ex @@ -1449,43 +1449,43 @@ CMAPI CONFIGRET WINAPI CM_Request_Device_EjectA( - IN DEVINST dnDevInst, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags); CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExW( - IN DEVINST dnDevInst, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPWSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPWSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExA( - IN DEVINST dnDevInst, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags, - IN HMACHINE hMachine); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags, + /*IN*/ HMACHINE hMachine); CMAPI CONFIGRET WINAPI CM_Request_Device_EjectW( - IN DEVINST dnDevInst, - OUT PPNP_VETO_TYPE pVetoType, - OUT LPWSTR pszVetoName, - IN ULONG ulNameLength, - IN ULONG ulFlags); + /*IN*/ DEVINST dnDevInst, + /*OUT*/ PPNP_VETO_TYPE pVetoType, + /*OUT*/ LPWSTR pszVetoName, + /*IN*/ ULONG ulNameLength, + /*IN*/ ULONG ulFlags); #ifdef UNICODE #define CM_Request_Device_Eject CM_Request_Device_EjectW @@ -1522,7 +1522,7 @@ CMAPI DWORD WINAPI CMP_WaitNoPendingInstallEvents( - IN DWORD dwTimeout); + /*IN*/ DWORD dwTimeout); #include diff --git a/winsup/w32api/include/ddk/ddkmapi.h b/winsup/w32api/include/ddk/ddkmapi.h index e5d4fee15..7772b34a8 100644 --- a/winsup/w32api/include/ddk/ddkmapi.h +++ b/winsup/w32api/include/ddk/ddkmapi.h @@ -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, diff --git a/winsup/w32api/include/ddk/hidclass.h b/winsup/w32api/include/ddk/hidclass.h index 8d52e45b1..4cbc6fc94 100644 --- a/winsup/w32api/include/ddk/hidclass.h +++ b/winsup/w32api/include/ddk/hidclass.h @@ -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; diff --git a/winsup/w32api/include/ddk/hidpi.h b/winsup/w32api/include/ddk/hidpi.h index d6021782f..10ea48c0c 100644 --- a/winsup/w32api/include/ddk/hidpi.h +++ b/winsup/w32api/include/ddk/hidpi.h @@ -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 } diff --git a/winsup/w32api/include/ddk/kbdmou.h b/winsup/w32api/include/ddk/kbdmou.h index da4c37f51..400eac69c 100644 --- a/winsup/w32api/include/ddk/kbdmou.h +++ b/winsup/w32api/include/ddk/kbdmou.h @@ -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 */ diff --git a/winsup/w32api/include/ddk/mcd.h b/winsup/w32api/include/ddk/mcd.h index 4a0e7db76..dcf13d658 100644 --- a/winsup/w32api/include/ddk/mcd.h +++ b/winsup/w32api/include/ddk/mcd.h @@ -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 } diff --git a/winsup/w32api/include/ddk/miniport.h b/winsup/w32api/include/ddk/miniport.h index 7a56cd1ab..d5a7017aa 100644 --- a/winsup/w32api/include/ddk/miniport.h +++ b/winsup/w32api/include/ddk/miniport.h @@ -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 } diff --git a/winsup/w32api/include/ddk/minitape.h b/winsup/w32api/include/ddk/minitape.h index 7540dea62..fef88a05d 100644 --- a/winsup/w32api/include/ddk/minitape.h +++ b/winsup/w32api/include/ddk/minitape.h @@ -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 { diff --git a/winsup/w32api/include/ddk/ndis.h b/winsup/w32api/include/ddk/ndis.h index 8ab5d5c98..ce573ac3c 100644 --- a/winsup/w32api/include/ddk/ndis.h +++ b/winsup/w32api/include/ddk/ndis.h @@ -254,10 +254,10 @@ typedef struct _LOCK_STATE { typedef VOID DDKAPI (*PNDIS_TIMER_FUNCTION)( - IN PVOID SystemSpecific1, - IN PVOID FunctionContext, - IN PVOID SystemSpecific2, - IN PVOID SystemSpecific3); + /*IN*/ PVOID SystemSpecific1, + /*IN*/ PVOID FunctionContext, + /*IN*/ PVOID SystemSpecific2, + /*IN*/ PVOID SystemSpecific3); typedef struct _NDIS_TIMER { KTIMER Timer; @@ -605,7 +605,7 @@ typedef struct _NDIS_WAN_LINE_UP { NDIS_WAN_QUALITY Quality; USHORT SendWindow; UCHAR RemoteAddress[6]; - OUT UCHAR LocalAddress[6]; + /*OUT*/ UCHAR LocalAddress[6]; ULONG ProtocolBufferLength; PUCHAR ProtocolBuffer; USHORT ProtocolType; @@ -615,7 +615,7 @@ typedef struct _NDIS_WAN_LINE_UP { typedef VOID DDKAPI (*ADAPTER_SHUTDOWN_HANDLER)( - IN PVOID ShutdownContext); + /*IN*/ PVOID ShutdownContext); typedef struct _OID_LIST OID_LIST, *POID_LIST; @@ -829,7 +829,7 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * PNDIS_PACKET * NDIS_GET_ORIGINAL_PACKET( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_ORIGINAL_PACKET(Packet) \ NDIS_PER_PACKET_INFO_FROM_PACKET(Packet, OriginalPacketInfo) @@ -837,7 +837,7 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * PVOID * NDIS_GET_PACKET_CANCEL_ID( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_CANCEL_ID(Packet) \ NDIS_PER_PACKET_INFO_FROM_PACKET(Packet, PacketCancelId) @@ -845,7 +845,7 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * PNDIS_PACKET_EXTENSION * NDIS_PACKET_EXTENSION_FROM_PACKET( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_PACKET_EXTENSION_FROM_PACKET(Packet) \ ((PNDIS_PACKET_EXTENSION)((PUCHAR)(Packet) \ @@ -854,8 +854,8 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * PVOID * NDIS_PER_PACKET_INFO_FROM_PACKET( - * IN OUT PNDIS_PACKET Packet, - * IN NDIS_PER_PACKET_INFO InfoType); + * IN OUT PNDIS_PACKET Packet, + * IN NDIS_PER_PACKET_INFO InfoType); */ #define NDIS_PER_PACKET_INFO_FROM_PACKET(Packet, InfoType) \ ((PNDIS_PACKET_EXTENSION)((PUCHAR)(Packet) + (Packet)->Private.NdisPacketOobOffset \ @@ -864,8 +864,8 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * VOID * NDIS_SET_ORIGINAL_PACKET( - * IN OUT PNDIS_PACKET Packet, - * IN PNDIS_PACKET OriginalPacket); + * IN OUT PNDIS_PACKET Packet, + * IN PNDIS_PACKET OriginalPacket); */ #define NDIS_SET_ORIGINAL_PACKET(Packet, OriginalPacket) \ NDIS_PER_PACKET_INFO_FROM_PACKET(Packet, OriginalPacketInfo) = (OriginalPacket) @@ -873,8 +873,8 @@ typedef struct _NDIS_PACKET_EXTENSION { /* * VOID * NDIS_SET_PACKET_CANCEL_ID( - * IN PNDIS_PACKET Packet - * IN ULONG_PTR CancelId); + * IN PNDIS_PACKET Packet + * IN ULONG_PTR CancelId); */ #define NDIS_SET_PACKET_CANCEL_ID(Packet, CancelId) \ NDIS_PER_PACKET_INFO_FROM_PACKET(Packet, PacketCancelId) = (CancelId) @@ -1028,99 +1028,99 @@ typedef struct _WAN_CO_LINKPARAMS { typedef VOID DDKAPI (*CM_ACTIVATE_VC_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE CallMgrVcContext, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef NDIS_STATUS DDKAPI (*CM_ADD_PARTY_HANDLER)( - IN NDIS_HANDLE CallMgrVcContext, - IN OUT PCO_CALL_PARAMETERS CallParameters, - IN NDIS_HANDLE NdisPartyHandle, - OUT PNDIS_HANDLE CallMgrPartyContext); + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters, + /*IN*/ NDIS_HANDLE NdisPartyHandle, + /*OUT*/ PNDIS_HANDLE CallMgrPartyContext); typedef NDIS_STATUS DDKAPI (*CM_CLOSE_AF_HANDLER)( - IN NDIS_HANDLE CallMgrAfContext); + /*IN*/ NDIS_HANDLE CallMgrAfContext); typedef NDIS_STATUS DDKAPI (*CM_CLOSE_CALL_HANDLER)( - IN NDIS_HANDLE CallMgrVcContext, - IN NDIS_HANDLE CallMgrPartyContext OPTIONAL, - IN PVOID CloseData OPTIONAL, - IN UINT Size OPTIONAL); + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN*/ NDIS_HANDLE CallMgrPartyContext /*OPTIONAL*/, + /*IN*/ PVOID CloseData /*OPTIONAL*/, + /*IN*/ UINT Size /*OPTIONAL*/); typedef NDIS_STATUS DDKAPI (*CM_DEREG_SAP_HANDLER)( - IN NDIS_HANDLE CallMgrSapContext); + /*IN*/ NDIS_HANDLE CallMgrSapContext); typedef VOID DDKAPI (*CM_DEACTIVATE_VC_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE CallMgrVcContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE CallMgrVcContext); typedef NDIS_STATUS DDKAPI (*CM_DROP_PARTY_HANDLER)( - IN NDIS_HANDLE CallMgrPartyContext, - IN PVOID CloseData OPTIONAL, - IN UINT Size OPTIONAL); + /*IN*/ NDIS_HANDLE CallMgrPartyContext, + /*IN*/ PVOID CloseData /*OPTIONAL*/, + /*IN*/ UINT Size /*OPTIONAL*/); typedef VOID DDKAPI (*CM_INCOMING_CALL_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE CallMgrVcContext, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef NDIS_STATUS DDKAPI (*CM_MAKE_CALL_HANDLER)( - IN NDIS_HANDLE CallMgrVcContext, - IN OUT PCO_CALL_PARAMETERS CallParameters, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - OUT PNDIS_HANDLE CallMgrPartyContext OPTIONAL); + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*OUT*/ PNDIS_HANDLE CallMgrPartyContext /*OPTIONAL*/); typedef NDIS_STATUS DDKAPI (*CM_MODIFY_CALL_QOS_HANDLER)( - IN NDIS_HANDLE CallMgrVcContext, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE CallMgrVcContext, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef NDIS_STATUS DDKAPI (*CM_OPEN_AF_HANDLER)( - IN NDIS_HANDLE CallMgrBindingContext, - IN PCO_ADDRESS_FAMILY AddressFamily, - IN NDIS_HANDLE NdisAfHandle, - OUT PNDIS_HANDLE CallMgrAfContext); + /*IN*/ NDIS_HANDLE CallMgrBindingContext, + /*IN*/ PCO_ADDRESS_FAMILY AddressFamily, + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*OUT*/ PNDIS_HANDLE CallMgrAfContext); typedef NDIS_STATUS DDKAPI (*CM_REG_SAP_HANDLER)( - IN NDIS_HANDLE CallMgrAfContext, - IN PCO_SAP Sap, - IN NDIS_HANDLE NdisSapHandle, - OUT PNDIS_HANDLE CallMgrSapContext); + /*IN*/ NDIS_HANDLE CallMgrAfContext, + /*IN*/ PCO_SAP Sap, + /*IN*/ NDIS_HANDLE NdisSapHandle, + /*OUT*/ PNDIS_HANDLE CallMgrSapContext); typedef NDIS_STATUS DDKAPI (*CO_CREATE_VC_HANDLER)( - IN NDIS_HANDLE ProtocolAfContext, - IN NDIS_HANDLE NdisVcHandle, - OUT PNDIS_HANDLE ProtocolVcContext); + /*IN*/ NDIS_HANDLE ProtocolAfContext, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*OUT*/ PNDIS_HANDLE ProtocolVcContext); typedef NDIS_STATUS DDKAPI (*CO_DELETE_VC_HANDLER)( - IN NDIS_HANDLE ProtocolVcContext); + /*IN*/ NDIS_HANDLE ProtocolVcContext); typedef VOID DDKAPI (*CO_REQUEST_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolAfContext OPTIONAL, - IN NDIS_HANDLE ProtocolVcContext OPTIONAL, - IN NDIS_HANDLE ProtocolPartyContext OPTIONAL, - IN PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolAfContext /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE ProtocolVcContext /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE ProtocolPartyContext /*OPTIONAL*/, + /*IN*/ PNDIS_REQUEST NdisRequest); typedef NDIS_STATUS DDKAPI (*CO_REQUEST_HANDLER)( - IN NDIS_HANDLE ProtocolAfContext, - IN NDIS_HANDLE ProtocolVcContext OPTIONAL, - IN NDIS_HANDLE ProtocolPartyContext OPTIONAL, - IN OUT PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE ProtocolAfContext, + /*IN*/ NDIS_HANDLE ProtocolVcContext /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE ProtocolPartyContext /*OPTIONAL*/, + /*IN OUT*/ PNDIS_REQUEST NdisRequest); typedef struct _NDIS_CALL_MANAGER_CHARACTERISTICS { UCHAR MajorVersion; @@ -1150,86 +1150,86 @@ typedef struct _NDIS_CALL_MANAGER_CHARACTERISTICS { /* Call Manager clients */ typedef VOID (*CL_OPEN_AF_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolAfContext, - IN NDIS_HANDLE NdisAfHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolAfContext, + /*IN*/ NDIS_HANDLE NdisAfHandle); typedef VOID DDKAPI (*CL_CLOSE_AF_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolAfContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolAfContext); typedef VOID DDKAPI (*CL_REG_SAP_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolSapContext, - IN PCO_SAP Sap, - IN NDIS_HANDLE NdisSapHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolSapContext, + /*IN*/ PCO_SAP Sap, + /*IN*/ NDIS_HANDLE NdisSapHandle); typedef VOID DDKAPI (*CL_DEREG_SAP_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolSapContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolSapContext); typedef VOID DDKAPI (*CL_MAKE_CALL_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolVcContext, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef VOID DDKAPI (*CL_MODIFY_CALL_QOS_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolVcContext, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef VOID DDKAPI (*CL_CLOSE_CALL_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolVcContext, - IN NDIS_HANDLE ProtocolPartyContext OPTIONAL); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ NDIS_HANDLE ProtocolPartyContext /*OPTIONAL*/); typedef VOID DDKAPI (*CL_ADD_PARTY_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolPartyContext, - IN NDIS_HANDLE NdisPartyHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolPartyContext, + /*IN*/ NDIS_HANDLE NdisPartyHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef VOID DDKAPI (*CL_DROP_PARTY_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolPartyContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolPartyContext); typedef NDIS_STATUS DDKAPI (*CL_INCOMING_CALL_HANDLER)( - IN NDIS_HANDLE ProtocolSapContext, - IN NDIS_HANDLE ProtocolVcContext, - IN OUT PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE ProtocolSapContext, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters); typedef VOID DDKAPI (*CL_INCOMING_CALL_QOS_CHANGE_HANDLER)( - IN NDIS_HANDLE ProtocolVcContext, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); typedef VOID DDKAPI (*CL_INCOMING_CLOSE_CALL_HANDLER)( - IN NDIS_STATUS CloseStatus, - IN NDIS_HANDLE ProtocolVcContext, - IN PVOID CloseData OPTIONAL, - IN UINT Size OPTIONAL); + /*IN*/ NDIS_STATUS CloseStatus, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ PVOID CloseData /*OPTIONAL*/, + /*IN*/ UINT Size /*OPTIONAL*/); typedef VOID DDKAPI (*CL_INCOMING_DROP_PARTY_HANDLER)( - IN NDIS_STATUS DropStatus, - IN NDIS_HANDLE ProtocolPartyContext, - IN PVOID CloseData OPTIONAL, - IN UINT Size OPTIONAL); + /*IN*/ NDIS_STATUS DropStatus, + /*IN*/ NDIS_HANDLE ProtocolPartyContext, + /*IN*/ PVOID CloseData /*OPTIONAL*/, + /*IN*/ UINT Size /*OPTIONAL*/); typedef VOID DDKAPI (*CL_CALL_CONNECTED_HANDLER)( - IN NDIS_HANDLE ProtocolVcContext); + /*IN*/ NDIS_HANDLE ProtocolVcContext); typedef struct _NDIS_CLIENT_CHARACTERISTICS { @@ -1264,55 +1264,55 @@ typedef struct _NDIS_CLIENT_CHARACTERISTICS { typedef VOID DDKAPI (*OPEN_ADAPTER_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_STATUS Status, - IN NDIS_STATUS OpenErrorStatus); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_STATUS OpenErrorStatus); typedef VOID DDKAPI (*CLOSE_ADAPTER_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*RESET_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*REQUEST_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_REQUEST NdisRequest, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_REQUEST NdisRequest, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*STATUS_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_STATUS GeneralStatus, - IN PVOID StatusBuffer, - IN UINT StatusBufferSize); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_STATUS GeneralStatus, + /*IN*/ PVOID StatusBuffer, + /*IN*/ UINT StatusBufferSize); typedef VOID DDKAPI (*STATUS_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext); + /*IN*/ NDIS_HANDLE ProtocolBindingContext); typedef VOID DDKAPI (*SEND_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_PACKET Packet, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_PACKET Packet, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*WAN_SEND_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_WAN_PACKET Packet, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_WAN_PACKET Packet, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*TRANSFER_DATA_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_PACKET Packet, - IN NDIS_STATUS Status, - IN UINT BytesTransferred); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_PACKET Packet, + /*IN*/ NDIS_STATUS Status, + /*IN*/ UINT BytesTransferred); typedef VOID DDKAPI (*WAN_TRANSFER_DATA_COMPLETE_HANDLER)( @@ -1321,23 +1321,23 @@ typedef VOID DDKAPI typedef NDIS_STATUS DDKAPI (*RECEIVE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_HANDLE MacReceiveContext, - IN PVOID HeaderBuffer, - IN UINT HeaderBufferSize, - IN PVOID LookAheadBuffer, - IN UINT LookaheadBufferSize, - IN UINT PacketSize); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ PVOID HeaderBuffer, + /*IN*/ UINT HeaderBufferSize, + /*IN*/ PVOID LookAheadBuffer, + /*IN*/ UINT LookaheadBufferSize, + /*IN*/ UINT PacketSize); typedef NDIS_STATUS DDKAPI (*WAN_RECEIVE_HANDLER)( - IN NDIS_HANDLE NdisLinkHandle, - IN PUCHAR Packet, - IN ULONG PacketSize); + /*IN*/ NDIS_HANDLE NdisLinkHandle, + /*IN*/ PUCHAR Packet, + /*IN*/ ULONG PacketSize); typedef VOID DDKAPI (*RECEIVE_COMPLETE_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext); + /*IN*/ NDIS_HANDLE ProtocolBindingContext); /* Protocol characteristics for NDIS 3.0 protocols */ @@ -1379,27 +1379,27 @@ typedef struct _NDIS30_PROTOCOL_CHARACTERISTICS { typedef INT DDKAPI (*RECEIVE_PACKET_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_PACKET Packet); typedef VOID DDKAPI (*BIND_HANDLER)( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE BindContext, - IN PNDIS_STRING DeviceName, - IN PVOID SystemSpecific1, - IN PVOID SystemSpecific2); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE BindContext, + /*IN*/ PNDIS_STRING DeviceName, + /*IN*/ PVOID SystemSpecific1, + /*IN*/ PVOID SystemSpecific2); typedef VOID DDKAPI (*UNBIND_HANDLER)( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_HANDLE UnbindContext); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_HANDLE UnbindContext); typedef NDIS_STATUS DDKAPI (*PNP_EVENT_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PNET_PNP_EVENT NetPnPEvent); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNET_PNP_EVENT NetPnPEvent); typedef VOID DDKAPI (*UNLOAD_PROTOCOL_HANDLER)( @@ -1438,28 +1438,28 @@ typedef struct _NDIS40_PROTOCOL_CHARACTERISTICS { typedef VOID DDKAPI (*CO_SEND_COMPLETE_HANDLER)( - IN NDIS_STATUS Status, - IN NDIS_HANDLE ProtocolVcContext, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ PNDIS_PACKET Packet); typedef VOID DDKAPI (*CO_STATUS_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_HANDLE ProtocolVcContext OPTIONAL, - IN NDIS_STATUS GeneralStatus, - IN PVOID StatusBuffer, - IN UINT StatusBufferSize); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_HANDLE ProtocolVcContext /*OPTIONAL*/, + /*IN*/ NDIS_STATUS GeneralStatus, + /*IN*/ PVOID StatusBuffer, + /*IN*/ UINT StatusBufferSize); typedef UINT DDKAPI (*CO_RECEIVE_PACKET_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN NDIS_HANDLE ProtocolVcContext, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN*/ PNDIS_PACKET Packet); typedef VOID DDKAPI (*CO_AF_REGISTER_NOTIFY_HANDLER)( - IN NDIS_HANDLE ProtocolBindingContext, - IN PCO_ADDRESS_FAMILY AddressFamily); + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PCO_ADDRESS_FAMILY AddressFamily); #ifdef __cplusplus \ @@ -1511,203 +1511,203 @@ NDISAPI VOID DDKAPI NdisAllocateBuffer( - OUT PNDIS_STATUS Status, - OUT PNDIS_BUFFER *Buffer, - IN NDIS_HANDLE PoolHandle, - IN PVOID VirtualAddress, - IN UINT Length); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_BUFFER *Buffer, + /*IN*/ NDIS_HANDLE PoolHandle, + /*IN*/ PVOID VirtualAddress, + /*IN*/ UINT Length); NDISAPI VOID DDKAPI NdisAllocateBufferPool( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE PoolHandle, - IN UINT NumberOfDescriptors); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE PoolHandle, + /*IN*/ UINT NumberOfDescriptors); NDISAPI VOID DDKAPI NdisAllocatePacket( - OUT PNDIS_STATUS Status, - OUT PNDIS_PACKET *Packet, - IN NDIS_HANDLE PoolHandle); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_PACKET *Packet, + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI VOID DDKAPI NdisAllocatePacketPool( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE PoolHandle, - IN UINT NumberOfDescriptors, - IN UINT ProtocolReservedLength); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE PoolHandle, + /*IN*/ UINT NumberOfDescriptors, + /*IN*/ UINT ProtocolReservedLength); NDISAPI VOID DDKAPI NdisCopyBuffer( - OUT PNDIS_STATUS Status, - OUT PNDIS_BUFFER *Buffer, - IN NDIS_HANDLE PoolHandle, - IN PVOID MemoryDescriptor, - IN UINT Offset, - IN UINT Length); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_BUFFER *Buffer, + /*IN*/ NDIS_HANDLE PoolHandle, + /*IN*/ PVOID MemoryDescriptor, + /*IN*/ UINT Offset, + /*IN*/ UINT Length); NDISAPI VOID DDKAPI NdisCopyFromPacketToPacket( - IN PNDIS_PACKET Destination, - IN UINT DestinationOffset, - IN UINT BytesToCopy, - IN PNDIS_PACKET Source, - IN UINT SourceOffset, - OUT PUINT BytesCopied); + /*IN*/ PNDIS_PACKET Destination, + /*IN*/ UINT DestinationOffset, + /*IN*/ UINT BytesToCopy, + /*IN*/ PNDIS_PACKET Source, + /*IN*/ UINT SourceOffset, + /*OUT*/ PUINT BytesCopied); NDISAPI VOID DDKAPI NdisDprAllocatePacket( - OUT PNDIS_STATUS Status, - OUT PNDIS_PACKET *Packet, - IN NDIS_HANDLE PoolHandle); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_PACKET *Packet, + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI VOID DDKAPI NdisDprAllocatePacketNonInterlocked( - OUT PNDIS_STATUS Status, - OUT PNDIS_PACKET *Packet, - IN NDIS_HANDLE PoolHandle); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_PACKET *Packet, + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI VOID DDKAPI NdisDprFreePacket( - IN PNDIS_PACKET Packet); + /*IN*/ PNDIS_PACKET Packet); NDISAPI VOID DDKAPI NdisDprFreePacketNonInterlocked( - IN PNDIS_PACKET Packet); + /*IN*/ PNDIS_PACKET Packet); NDISAPI VOID DDKAPI NdisFreeBufferPool( - IN NDIS_HANDLE PoolHandle); + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI VOID DDKAPI NdisFreePacket( - IN PNDIS_PACKET Packet); + /*IN*/ PNDIS_PACKET Packet); NDISAPI VOID DDKAPI NdisFreePacketPool( - IN NDIS_HANDLE PoolHandle); + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI VOID DDKAPI NdisReturnPackets( - IN PNDIS_PACKET *PacketsToReturn, - IN UINT NumberOfPackets); + /*IN*/ PNDIS_PACKET *PacketsToReturn, + /*IN*/ UINT NumberOfPackets); NDISAPI VOID DDKAPI NdisUnchainBufferAtBack( - IN OUT PNDIS_PACKET Packet, - OUT PNDIS_BUFFER *Buffer); + /*IN OUT*/ PNDIS_PACKET Packet, + /*OUT*/ PNDIS_BUFFER *Buffer); NDISAPI VOID DDKAPI NdisUnchainBufferAtFront( - IN OUT PNDIS_PACKET Packet, - OUT PNDIS_BUFFER *Buffer); + /*IN OUT*/ PNDIS_PACKET Packet, + /*OUT*/ PNDIS_BUFFER *Buffer); NDISAPI VOID DDKAPI NdisAdjustBufferLength( - IN PNDIS_BUFFER Buffer, - IN UINT Length); + /*IN*/ PNDIS_BUFFER Buffer, + /*IN*/ UINT Length); NDISAPI ULONG DDKAPI NdisBufferLength( - IN PNDIS_BUFFER Buffer); + /*IN*/ PNDIS_BUFFER Buffer); NDISAPI PVOID DDKAPI NdisBufferVirtualAddress( - IN PNDIS_BUFFER Buffer); + /*IN*/ PNDIS_BUFFER Buffer); NDISAPI ULONG DDKAPI NDIS_BUFFER_TO_SPAN_PAGES( - IN PNDIS_BUFFER Buffer); + /*IN*/ PNDIS_BUFFER Buffer); NDISAPI VOID DDKAPI NdisFreeBuffer( - IN PNDIS_BUFFER Buffer); + /*IN*/ PNDIS_BUFFER Buffer); NDISAPI VOID DDKAPI NdisGetBufferPhysicalArraySize( - IN PNDIS_BUFFER Buffer, - OUT PUINT ArraySize); + /*IN*/ PNDIS_BUFFER Buffer, + /*OUT*/ PUINT ArraySize); NDISAPI VOID DDKAPI NdisGetFirstBufferFromPacket( - IN PNDIS_PACKET _Packet, - OUT PNDIS_BUFFER *_FirstBuffer, - OUT PVOID *_FirstBufferVA, - OUT PUINT _FirstBufferLength, - OUT PUINT _TotalBufferLength); + /*IN*/ PNDIS_PACKET _Packet, + /*OUT*/ PNDIS_BUFFER *_FirstBuffer, + /*OUT*/ PVOID *_FirstBufferVA, + /*OUT*/ PUINT _FirstBufferLength, + /*OUT*/ PUINT _TotalBufferLength); NDISAPI VOID DDKAPI NdisQueryBuffer( - IN PNDIS_BUFFER Buffer, - OUT PVOID *VirtualAddress OPTIONAL, - OUT PUINT Length); + /*IN*/ PNDIS_BUFFER Buffer, + /*OUT*/ PVOID *VirtualAddress /*OPTIONAL*/, + /*OUT*/ PUINT Length); NDISAPI VOID DDKAPI NdisQueryBufferOffset( - IN PNDIS_BUFFER Buffer, - OUT PUINT Offset, - OUT PUINT Length); + /*IN*/ PNDIS_BUFFER Buffer, + /*OUT*/ PUINT Offset, + /*OUT*/ PUINT Length); NDISAPI VOID DDKAPI NdisFreeBuffer( - IN PNDIS_BUFFER Buffer); + /*IN*/ PNDIS_BUFFER Buffer); /* * VOID * NdisGetBufferPhysicalArraySize( - * IN PNDIS_BUFFER Buffer, - * OUT PUINT ArraySize); + * IN PNDIS_BUFFER Buffer, + * OUT PUINT ArraySize); */ #define NdisGetBufferPhysicalArraySize(Buffer, \ ArraySize) \ @@ -1719,11 +1719,11 @@ NdisFreeBuffer( /* * VOID * NdisGetFirstBufferFromPacket( - * IN PNDIS_PACKET _Packet, - * OUT PNDIS_BUFFER * _FirstBuffer, - * OUT PVOID * _FirstBufferVA, - * OUT PUINT _FirstBufferLength, - * OUT PUINT _TotalBufferLength) + * IN PNDIS_PACKET _Packet, + * OUT PNDIS_BUFFER * _FirstBuffer, + * OUT PVOID * _FirstBufferVA, + * OUT PUINT _FirstBufferLength, + * OUT PUINT _TotalBufferLength) */ #define NdisGetFirstBufferFromPacket(_Packet, \ _FirstBuffer, \ @@ -1757,9 +1757,9 @@ NdisFreeBuffer( /* * VOID * NdisQueryBuffer( - * IN PNDIS_BUFFER Buffer, - * OUT PVOID *VirtualAddress OPTIONAL, - * OUT PUINT Length) + * IN PNDIS_BUFFER Buffer, + * OUT PVOID *VirtualAddress OPTIONAL, + * OUT PUINT Length) */ #define NdisQueryBuffer(Buffer, \ VirtualAddress, \ @@ -1775,9 +1775,9 @@ NdisFreeBuffer( /* * VOID * NdisQueryBufferOffset( - * IN PNDIS_BUFFER Buffer, - * OUT PUINT Offset, - * OUT PUINT Length); + * IN PNDIS_BUFFER Buffer, + * OUT PUINT Offset, + * OUT PUINT Length); */ #define NdisQueryBufferOffset(Buffer, \ Offset, \ @@ -1791,7 +1791,7 @@ NdisFreeBuffer( /* * PVOID * NDIS_BUFFER_LINKAGE( - * IN PNDIS_BUFFER Buffer); + * IN PNDIS_BUFFER Buffer); */ #define NDIS_BUFFER_LINKAGE(Buffer)(Buffer)->Next; @@ -1799,8 +1799,8 @@ NdisFreeBuffer( /* * VOID * NdisChainBufferAtBack( - * IN OUT PNDIS_PACKET Packet, - * IN OUT PNDIS_BUFFER Buffer) + * IN OUT PNDIS_PACKET Packet, + * IN OUT PNDIS_BUFFER Buffer) */ #define NdisChainBufferAtBack(Packet, \ Buffer) \ @@ -1825,8 +1825,8 @@ NdisFreeBuffer( /* * VOID * NdisChainBufferAtFront( - * IN OUT PNDIS_PACKET Packet, - * IN OUT PNDIS_BUFFER Buffer) + * IN OUT PNDIS_PACKET Packet, + * IN OUT PNDIS_BUFFER Buffer) */ #define NdisChainBufferAtFront(Packet, \ Buffer) \ @@ -1848,8 +1848,8 @@ NdisFreeBuffer( /* * VOID * NdisGetNextBuffer( - * IN PNDIS_BUFFER CurrentBuffer, - * OUT PNDIS_BUFFER * NextBuffer) + * IN PNDIS_BUFFER CurrentBuffer, + * OUT PNDIS_BUFFER * NextBuffer) */ #define NdisGetNextBuffer(CurrentBuffer, \ NextBuffer) \ @@ -1861,7 +1861,7 @@ NdisFreeBuffer( /* * UINT * NdisGetPacketFlags( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NdisGetPacketFlags(Packet)(Packet)->Private.Flags; @@ -1869,8 +1869,8 @@ NdisFreeBuffer( /* * VOID * NdisClearPacketFlags( - * IN PNDIS_PACKET Packet, - * IN UINT Flags); + * IN PNDIS_PACKET Packet, + * IN UINT Flags); */ #define NdisClearPacketFlags(Packet, Flags) \ (Packet)->Private.Flags &= ~(Flags) @@ -1879,9 +1879,9 @@ NdisFreeBuffer( /* * VOID * NDIS_GET_PACKET_MEDIA_SPECIFIC_INFO( - * IN PNDIS_PACKET Packet, - * IN PPVOID pMediaSpecificInfo, - * IN PUINT pSizeMediaSpecificInfo); + * IN PNDIS_PACKET Packet, + * IN PPVOID pMediaSpecificInfo, + * IN PUINT pSizeMediaSpecificInfo); */ #define NDIS_GET_PACKET_MEDIA_SPECIFIC_INFO(_Packet, \ _pMediaSpecificInfo, \ @@ -1906,7 +1906,7 @@ NdisFreeBuffer( /* * ULONG * NDIS_GET_PACKET_PROTOCOL_TYPE( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_PROTOCOL_TYPE(_Packet) \ ((_Packet)->Private.Flags & NDIS_PROTOCOL_ID_MASK) @@ -1914,7 +1914,7 @@ NdisFreeBuffer( /* * ULONG * NDIS_GET_PACKET_HEADER_SIZE( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_HEADER_SIZE(_Packet) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1924,7 +1924,7 @@ NdisFreeBuffer( /* * NDIS_STATUS * NDIS_GET_PACKET_STATUS( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_STATUS(_Packet) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1934,7 +1934,7 @@ NdisFreeBuffer( /* * ULONGLONG * NDIS_GET_PACKET_TIME_RECEIVED( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_TIME_RECEIVED(_Packet) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1944,7 +1944,7 @@ NdisFreeBuffer( /* * ULONGLONG * NDIS_GET_PACKET_TIME_SENT( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_TIME_SENT(_Packet) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1954,7 +1954,7 @@ NdisFreeBuffer( /* * ULONGLONG * NDIS_GET_PACKET_TIME_TO_SEND( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_GET_PACKET_TIME_TO_SEND(_Packet) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1964,7 +1964,7 @@ NdisFreeBuffer( /* * PNDIS_PACKET_OOB_DATA * NDIS_OOB_DATA_FROM_PACKET( - * IN PNDIS_PACKET Packet); + * IN PNDIS_PACKET Packet); */ #define NDIS_OOB_DATA_FROM_PACKET(_Packet) \ (PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -1974,11 +1974,11 @@ NdisFreeBuffer( /* * VOID * NdisQueryPacket( - * IN PNDIS_PACKET Packet, - * OUT PUINT PhysicalBufferCount OPTIONAL, - * OUT PUINT BufferCount OPTIONAL, - * OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, - * OUT PUINT TotalPacketLength OPTIONAL); + * IN PNDIS_PACKET Packet, + * OUT PUINT PhysicalBufferCount OPTIONAL, + * OUT PUINT BufferCount OPTIONAL, + * OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, + * OUT PUINT TotalPacketLength OPTIONAL); */ #define NdisQueryPacket(Packet, \ PhysicalBufferCount, \ @@ -2027,11 +2027,11 @@ NdisFreeBuffer( /* * VOID * NdisQueryPacketLength( - * IN PNDIS_PACKET Packet, - * OUT PUINT PhysicalBufferCount OPTIONAL, - * OUT PUINT BufferCount OPTIONAL, - * OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, - * OUT PUINT TotalPacketLength OPTIONAL); + * IN PNDIS_PACKET Packet, + * OUT PUINT PhysicalBufferCount OPTIONAL, + * OUT PUINT BufferCount OPTIONAL, + * OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, + * OUT PUINT TotalPacketLength OPTIONAL); */ #define NdisQueryPacketLength(Packet, \ TotalPacketLength) \ @@ -2070,7 +2070,7 @@ NdisFreeBuffer( /* * VOID * NdisRecalculatePacketCounts( - * IN OUT PNDIS_PACKET Packet); + * IN OUT PNDIS_PACKET Packet); */ #define NdisRecalculatePacketCounts(Packet) \ { \ @@ -2090,7 +2090,7 @@ NdisFreeBuffer( /* * VOID * NdisReinitializePacket( - * IN OUT PNDIS_PACKET Packet); + * IN OUT PNDIS_PACKET Packet); */ #define NdisReinitializePacketCounts(Packet) \ { \ @@ -2102,8 +2102,8 @@ NdisFreeBuffer( /* * VOID * NdisSetPacketFlags( - * IN PNDIS_PACKET Packet, - * IN UINT Flags); + * IN PNDIS_PACKET Packet, + * IN UINT Flags); */ #define NdisSetPacketFlags(Packet, Flags) \ (Packet)->Private.Flags |= (Flags); @@ -2112,8 +2112,8 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_HEADER_SIZE( - * IN PNDIS_PACKET Packet, - * IN UINT HdrSize); + * IN PNDIS_PACKET Packet, + * IN UINT HdrSize); */ #define NDIS_SET_PACKET_HEADER_SIZE(_Packet, _HdrSize) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -2123,9 +2123,9 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_MEDIA_SPECIFIC_INFO( - * IN PNDIS_PACKET Packet, - * IN PVOID MediaSpecificInfo, - * IN UINT SizeMediaSpecificInfo); + * IN PNDIS_PACKET Packet, + * IN PVOID MediaSpecificInfo, + * IN UINT SizeMediaSpecificInfo); */ #define NDIS_SET_PACKET_MEDIA_SPECIFIC_INFO(_Packet, \ _MediaSpecificInfo, \ @@ -2147,8 +2147,8 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_STATUS( - * IN PNDIS_PACKET Packet, - * IN NDIS_STATUS Status); + * IN PNDIS_PACKET Packet, + * IN NDIS_STATUS Status); */ #define NDIS_SET_PACKET_STATUS(_Packet, _Status) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -2158,8 +2158,8 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_TIME_RECEIVED( - * IN PNDIS_PACKET Packet, - * IN ULONGLONG TimeReceived); + * IN PNDIS_PACKET Packet, + * IN ULONGLONG TimeReceived); */ #define NDIS_SET_PACKET_TIME_RECEIVED(_Packet, _TimeReceived) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -2169,8 +2169,8 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_TIME_SENT( - * IN PNDIS_PACKET Packet, - * IN ULONGLONG TimeSent); + * IN PNDIS_PACKET Packet, + * IN ULONGLONG TimeSent); */ #define NDIS_SET_PACKET_TIME_SENT(_Packet, _TimeSent) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -2180,8 +2180,8 @@ NdisFreeBuffer( /* * VOID * NDIS_SET_PACKET_TIME_TO_SEND( - * IN PNDIS_PACKET Packet, - * IN ULONGLONG TimeToSend); + * IN PNDIS_PACKET Packet, + * IN ULONGLONG TimeToSend); */ #define NDIS_SET_PACKET_TIME_TO_SEND(_Packet, _TimeToSend) \ ((PNDIS_PACKET_OOB_DATA)((PUCHAR)(_Packet) + \ @@ -2191,8 +2191,8 @@ NdisFreeBuffer( /* * VOID * NdisSetSendFlags( - * IN PNDIS_PACKET Packet, - * IN UINT Flags); + * IN PNDIS_PACKET Packet, + * IN UINT Flags); */ #define NdisSetSendFlags(_Packet,_Flags)(_Packet)->Private.Flags = (_Flags) @@ -2203,9 +2203,9 @@ NdisFreeBuffer( /* * VOID * NdisCreateLookaheadBufferFromSharedMemory( - * IN PVOID pSharedMemory, - * IN UINT LookaheadLength, - * OUT PVOID *pLookaheadBuffer) + * IN PVOID pSharedMemory, + * IN UINT LookaheadLength, + * OUT PVOID *pLookaheadBuffer) */ #define NdisCreateLookaheadBufferFromSharedMemory(_pSharedMemory, \ _LookaheadLength, \ @@ -2215,7 +2215,7 @@ NdisFreeBuffer( /* * VOID * NdisDestroyLookaheadBufferFromSharedMemory( - * IN PVOID pLookaheadBuffer) + * IN PVOID pLookaheadBuffer) */ #define NdisDestroyLookaheadBufferFromSharedMemory(_pLookaheadBuffer) @@ -2224,9 +2224,9 @@ NdisFreeBuffer( /* * VOID * NdisMoveFromMappedMemory( - * OUT PVOID Destination, - * IN PVOID Source, - * IN ULONG Length); + * OUT PVOID Destination, + * IN PVOID Source, + * IN ULONG Length); */ #define NdisMoveFromMappedMemory(Destination, Source, Length) \ NdisMoveMappedMemory(Destination, Source, Length) @@ -2234,9 +2234,9 @@ NdisFreeBuffer( /* * VOID * NdisMoveMappedMemory( - * OUT PVOID Destination, - * IN PVOID Source, - * IN ULONG Length); + * OUT PVOID Destination, + * IN PVOID Source, + * IN ULONG Length); */ #define NdisMoveMappedMemory(Destination, Source, Length) \ RtlCopyMemory(Destination, Source, Length) @@ -2244,9 +2244,9 @@ NdisFreeBuffer( /* * VOID * NdisMoveToMappedMemory( - * OUT PVOID Destination, - * IN PVOID Source, - * IN ULONG Length); + * OUT PVOID Destination, + * IN PVOID Source, + * IN ULONG Length); */ #define NdisMoveToMappedMemory(Destination, Source, Length) \ NdisMoveMappedMemory(Destination, Source, Length) @@ -2256,10 +2256,10 @@ NdisFreeBuffer( /* * VOID * NdisMUpdateSharedMemory( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN ULONG Length, - * IN PVOID VirtualAddress, - * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN ULONG Length, + * IN PVOID VirtualAddress, + * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); */ #define NdisMUpdateSharedMemory(_H, _L, _V, _P) \ NdisUpdateSharedMemory(_H, _L, _V, _P) @@ -2268,55 +2268,55 @@ NDISAPI NDIS_STATUS DDKAPI NdisAllocateMemory( - OUT PVOID *VirtualAddress, - IN UINT Length, - IN UINT MemoryFlags, - IN NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress); + /*OUT*/ PVOID *VirtualAddress, + /*IN*/ UINT Length, + /*IN*/ UINT MemoryFlags, + /*IN*/ NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress); NDISAPI VOID DDKAPI NdisFreeMemory( - IN PVOID VirtualAddress, - IN UINT Length, - IN UINT MemoryFlags); + /*IN*/ PVOID VirtualAddress, + /*IN*/ UINT Length, + /*IN*/ UINT MemoryFlags); NDISAPI VOID DDKAPI NdisImmediateReadSharedMemory( - IN NDIS_HANDLE WrapperConfigurationContext, - IN ULONG SharedMemoryAddress, - OUT PUCHAR Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*IN*/ ULONG SharedMemoryAddress, + /*OUT*/ PUCHAR Buffer, + /*IN*/ ULONG Length); NDISAPI VOID DDKAPI NdisImmediateWriteSharedMemory( - IN NDIS_HANDLE WrapperConfigurationContext, - IN ULONG SharedMemoryAddress, - IN PUCHAR Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*IN*/ ULONG SharedMemoryAddress, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Length); NDISAPI VOID DDKAPI NdisMAllocateSharedMemory( - IN NDIS_HANDLE MiniportAdapterHandle, - IN ULONG Length, - IN BOOLEAN Cached, - OUT PVOID *VirtualAddress, - OUT PNDIS_PHYSICAL_ADDRESS PhysicalAddress); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Cached, + /*OUT*/ PVOID *VirtualAddress, + /*OUT*/ PNDIS_PHYSICAL_ADDRESS PhysicalAddress); NDISAPI NDIS_STATUS DDKAPI NdisMAllocateSharedMemoryAsync( - IN NDIS_HANDLE MiniportAdapterHandle, - IN ULONG Length, - IN BOOLEAN Cached, - IN PVOID Context); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Cached, + /*IN*/ PVOID Context); #if defined(NDIS50) @@ -2331,17 +2331,17 @@ NDISAPI VOID DDKAPI NdisUpdateSharedMemory( - IN NDIS_HANDLE NdisAdapterHandle, - IN ULONG Length, - IN PVOID VirtualAddress, - IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ ULONG Length, + /*IN*/ PVOID VirtualAddress, + /*IN*/ NDIS_PHYSICAL_ADDRESS PhysicalAddress); #endif /* defined(NDIS50) */ /* * ULONG * NdisGetPhysicalAddressHigh( - * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); + * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); */ #define NdisGetPhysicalAddressHigh(PhysicalAddress) \ ((PhysicalAddress).HighPart) @@ -2349,8 +2349,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisSetPhysicalAddressHigh( - * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress, - * IN ULONG Value); + * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress, + * IN ULONG Value); */ #define NdisSetPhysicalAddressHigh(PhysicalAddress, Value) \ ((PhysicalAddress).HighPart) = (Value) @@ -2358,7 +2358,7 @@ NdisUpdateSharedMemory( /* * ULONG * NdisGetPhysicalAddressLow( - * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); + * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); */ #define NdisGetPhysicalAddressLow(PhysicalAddress) \ ((PhysicalAddress).LowPart) @@ -2367,8 +2367,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisSetPhysicalAddressLow( - * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress, - * IN ULONG Value); + * IN NDIS_PHYSICAL_ADDRESS PhysicalAddress, + * IN ULONG Value); */ #define NdisSetPhysicalAddressLow(PhysicalAddress, Value) \ ((PhysicalAddress).LowPart) = (Value) @@ -2376,8 +2376,8 @@ NdisUpdateSharedMemory( /* * VOID * NDIS_PHYSICAL_ADDRESS_CONST( - * IN ULONG Low, - * IN LONG High); + * IN ULONG Low, + * IN LONG High); */ #define NDIS_PHYSICAL_ADDRESS_CONST(Low, High) \ { {(ULONG)(Low), (LONG)(High)} } @@ -2385,9 +2385,9 @@ NdisUpdateSharedMemory( /* * ULONG * NdisEqualMemory( - * IN CONST VOID *Source1, - * IN CONST VOID *Source2, - * IN ULONG Length); + * IN CONST VOID *Source1, + * IN CONST VOID *Source2, + * IN ULONG Length); */ #define NdisEqualMemory(Source1, Source2, Length) \ RtlEqualMemory(Source1, Source2, Length) @@ -2395,9 +2395,9 @@ NdisUpdateSharedMemory( /* * VOID * NdisFillMemory( - * IN PVOID Destination, - * IN ULONG Length, - * IN UCHAR Fill); + * IN PVOID Destination, + * IN ULONG Length, + * IN UCHAR Fill); */ #define NdisFillMemory(Destination, Length, Fill) \ RtlFillMemory(Destination, Length, Fill) @@ -2405,8 +2405,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisZeroMappedMemory( - * IN PVOID Destination, - * IN ULONG Length); + * IN PVOID Destination, + * IN ULONG Length); */ #define NdisZeroMappedMemory(Destination, Length) \ RtlZeroMemory(Destination, Length) @@ -2414,9 +2414,9 @@ NdisUpdateSharedMemory( /* * VOID * NdisMoveMemory( - * OUT PVOID Destination, - * IN PVOID Source, - * IN ULONG Length); + * OUT PVOID Destination, + * IN PVOID Source, + * IN ULONG Length); */ #define NdisMoveMemory(Destination, Source, Length) \ RtlCopyMemory(Destination, Source, Length) @@ -2425,8 +2425,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisRetrieveUlong( - * IN PULONG DestinationAddress, - * IN PULONG SourceAddress); + * IN PULONG DestinationAddress, + * IN PULONG SourceAddress); */ #define NdisRetrieveUlong(DestinationAddress, SourceAddress) \ RtlRetrieveUlong(DestinationAddress, SourceAddress) @@ -2435,8 +2435,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisStoreUlong( - * IN PULONG DestinationAddress, - * IN ULONG Value); + * IN PULONG DestinationAddress, + * IN ULONG Value); */ #define NdisStoreUlong(DestinationAddress, Value) \ RtlStoreUlong(DestinationAddress, Value) @@ -2445,8 +2445,8 @@ NdisUpdateSharedMemory( /* * VOID * NdisZeroMemory( - * IN PVOID Destination, - * IN ULONG Length) + * IN PVOID Destination, + * IN ULONG Length) */ #define NdisZeroMemory(Destination, Length) \ RtlZeroMemory(Destination, Length) @@ -2459,57 +2459,57 @@ NDISAPI VOID DDKAPI NdisOpenConfiguration( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE ConfigurationHandle, - IN NDIS_HANDLE WrapperConfigurationContext); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE ConfigurationHandle, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext); NDISAPI VOID DDKAPI NdisReadNetworkAddress( - OUT PNDIS_STATUS Status, - OUT PVOID *NetworkAddress, - OUT PUINT NetworkAddressLength, - IN NDIS_HANDLE ConfigurationHandle); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PVOID *NetworkAddress, + /*OUT*/ PUINT NetworkAddressLength, + /*IN*/ NDIS_HANDLE ConfigurationHandle); NDISAPI VOID DDKAPI NdisReadEisaSlotInformation( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE WrapperConfigurationContext, - OUT PUINT SlotNumber, - OUT PNDIS_EISA_FUNCTION_INFORMATION EisaData); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*OUT*/ PUINT SlotNumber, + /*OUT*/ PNDIS_EISA_FUNCTION_INFORMATION EisaData); NDISAPI VOID DDKAPI NdisReadEisaSlotInformationEx( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE WrapperConfigurationContext, - OUT PUINT SlotNumber, - OUT PNDIS_EISA_FUNCTION_INFORMATION *EisaData, - OUT PUINT NumberOfFunctions); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*OUT*/ PUINT SlotNumber, + /*OUT*/ PNDIS_EISA_FUNCTION_INFORMATION *EisaData, + /*OUT*/ PUINT NumberOfFunctions); NDISAPI ULONG DDKAPI NdisReadPciSlotInformation( - IN NDIS_HANDLE NdisAdapterHandle, - IN ULONG SlotNumber, - IN ULONG Offset, - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ ULONG SlotNumber, + /*IN*/ ULONG Offset, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); NDISAPI ULONG DDKAPI NdisWritePciSlotInformation( - IN NDIS_HANDLE NdisAdapterHandle, - IN ULONG SlotNumber, - IN ULONG Offset, - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ ULONG SlotNumber, + /*IN*/ ULONG Offset, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); @@ -2519,15 +2519,15 @@ NDISAPI NDIS_STATUS DDKAPI NdisAnsiStringToUnicodeString( - IN OUT PNDIS_STRING DestinationString, - IN PNDIS_ANSI_STRING SourceString); + /*IN OUT*/ PNDIS_STRING DestinationString, + /*IN*/ PNDIS_ANSI_STRING SourceString); /* * BOOLEAN * NdisEqualString( - * IN PNDIS_STRING String1, - * IN PNDIS_STRING String2, - * IN BOOLEAN CaseInsensitive); + * IN PNDIS_STRING String1, + * IN PNDIS_STRING String2, + * IN BOOLEAN CaseInsensitive); */ #define NdisEqualString(_String1, _String2, _CaseInsensitive) \ RtlEqualUnicodeString(_String1, _String2, _CaseInsensitive) @@ -2536,22 +2536,22 @@ NDISAPI VOID DDKAPI NdisInitAnsiString( - IN OUT PNDIS_ANSI_STRING DestinationString, - IN PCSTR SourceString); + /*IN OUT*/ PNDIS_ANSI_STRING DestinationString, + /*IN*/ PCSTR SourceString); NDISAPI VOID DDKAPI NdisInitUnicodeString( - IN OUT PNDIS_STRING DestinationString, - IN PCWSTR SourceString); + /*IN OUT*/ PNDIS_STRING DestinationString, + /*IN*/ PCWSTR SourceString); NDISAPI NDIS_STATUS DDKAPI NdisUnicodeStringToAnsiString( - IN OUT PNDIS_ANSI_STRING DestinationString, - IN PNDIS_STRING SourceString); + /*IN OUT*/ PNDIS_ANSI_STRING DestinationString, + /*IN*/ PNDIS_STRING SourceString); #define NdisFreeString(_s) NdisFreeMemory((_s).Buffer, (_s).MaximumLength, 0) #define NdisPrintString(_s) DbgPrint("%ls", (_s).Buffer) @@ -2562,7 +2562,7 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisAllocateSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisAllocateSpinLock(_SpinLock) \ KeInitializeSpinLock(&(_SpinLock)->SpinLock) @@ -2570,14 +2570,14 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisFreeSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisFreeSpinLock(_SpinLock) /* * VOID * NdisAcquireSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisAcquireSpinLock(_SpinLock) \ KeAcquireSpinLock(&(_SpinLock)->SpinLock, &(_SpinLock)->OldIrql) @@ -2585,7 +2585,7 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReleaseSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisReleaseSpinLock(_SpinLock) \ KeReleaseSpinLock(&(_SpinLock)->SpinLock, (_SpinLock)->OldIrql) @@ -2593,7 +2593,7 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisDprAcquireSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisDprAcquireSpinLock(_SpinLock) \ { \ @@ -2604,7 +2604,7 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisDprReleaseSpinLock( - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisDprReleaseSpinLock(_SpinLock) \ KeReleaseSpinLockFromDpcLevel(&(_SpinLock)->SpinLock) @@ -2616,9 +2616,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortBufferUchar( - * IN ULONG Port, - * OUT PUCHAR Buffer, - * IN ULONG Length); + * IN ULONG Port, + * OUT PUCHAR Buffer, + * IN ULONG Length); */ #define NdisRawReadPortBufferUchar(Port, Buffer, Length) \ READ_PORT_BUFFER_UCHAR((PUCHAR)(Port), (PUCHAR)(Buffer), (Length)) @@ -2626,9 +2626,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortBufferUlong( - * IN ULONG Port, - * OUT PULONG Buffer, - * IN ULONG Length); + * IN ULONG Port, + * OUT PULONG Buffer, + * IN ULONG Length); */ #define NdisRawReadPortBufferUlong(Port, Buffer, Length) \ READ_PORT_BUFFER_ULONG((PULONG)(Port), (PULONG)(Buffer), (Length)) @@ -2636,9 +2636,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortBufferUshort( - * IN ULONG Port, - * OUT PUSHORT Buffer, - * IN ULONG Length); + * IN ULONG Port, + * OUT PUSHORT Buffer, + * IN ULONG Length); */ #define NdisRawReadPortBufferUshort(Port, Buffer, Length) \ READ_PORT_BUFFER_USHORT((PUSHORT)(Port), (PUSHORT)(Buffer), (Length)) @@ -2647,8 +2647,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortUchar( - * IN ULONG Port, - * OUT PUCHAR Data); + * IN ULONG Port, + * OUT PUCHAR Data); */ #define NdisRawReadPortUchar(Port, Data) \ *(Data) = READ_PORT_UCHAR((PUCHAR)(Port)) @@ -2656,8 +2656,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortUlong( - * IN ULONG Port, - * OUT PULONG Data); + * IN ULONG Port, + * OUT PULONG Data); */ #define NdisRawReadPortUlong(Port, Data) \ *(Data) = READ_PORT_ULONG((PULONG)(Port)) @@ -2665,8 +2665,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawReadPortUshort( - * IN ULONG Port, - * OUT PUSHORT Data); + * IN ULONG Port, + * OUT PUSHORT Data); */ #define NdisRawReadPortUshort(Port, Data) \ *(Data) = READ_PORT_USHORT((PUSHORT)(Port)) @@ -2675,9 +2675,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortBufferUchar( - * IN ULONG Port, - * IN PUCHAR Buffer, - * IN ULONG Length); + * IN ULONG Port, + * IN PUCHAR Buffer, + * IN ULONG Length); */ #define NdisRawWritePortBufferUchar(Port, Buffer, Length) \ WRITE_PORT_BUFFER_UCHAR((PUCHAR)(Port), (PUCHAR)(Buffer), (Length)) @@ -2685,9 +2685,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortBufferUlong( - * IN ULONG Port, - * IN PULONG Buffer, - * IN ULONG Length); + * IN ULONG Port, + * IN PULONG Buffer, + * IN ULONG Length); */ #define NdisRawWritePortBufferUlong(Port, Buffer, Length) \ WRITE_PORT_BUFFER_ULONG((PULONG)(Port), (PULONG)(Buffer), (Length)) @@ -2695,9 +2695,9 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortBufferUshort( - * IN ULONG Port, - * IN PUSHORT Buffer, - * IN ULONG Length); + * IN ULONG Port, + * IN PUSHORT Buffer, + * IN ULONG Length); */ #define NdisRawWritePortBufferUshort(Port, Buffer, Length) \ WRITE_PORT_BUFFER_USHORT((PUSHORT)(Port), (PUSHORT)(Buffer), (Length)) @@ -2706,8 +2706,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortUchar( - * IN ULONG Port, - * IN UCHAR Data); + * IN ULONG Port, + * IN UCHAR Data); */ #define NdisRawWritePortUchar(Port, Data) \ WRITE_PORT_UCHAR((PUCHAR)(Port), (UCHAR)(Data)) @@ -2715,8 +2715,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortUlong( - * IN ULONG Port, - * IN ULONG Data); + * IN ULONG Port, + * IN ULONG Data); */ #define NdisRawWritePortUlong(Port, Data) \ WRITE_PORT_ULONG((PULONG)(Port), (ULONG)(Data)) @@ -2724,8 +2724,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisRawWritePortUshort( - * IN ULONG Port, - * IN USHORT Data); + * IN ULONG Port, + * IN USHORT Data); */ #define NdisRawWritePortUshort(Port, Data) \ WRITE_PORT_USHORT((PUSHORT)(Port), (USHORT)(Data)) @@ -2734,8 +2734,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUchar( - * IN PUCHAR Register, - * OUT PUCHAR Data); + * IN PUCHAR Register, + * OUT PUCHAR Data); */ #define NdisReadRegisterUchar(Register, Data) \ *(Data) = *(Register) @@ -2743,8 +2743,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUlong( - * IN PULONG Register, - * OUT PULONG Data); + * IN PULONG Register, + * OUT PULONG Data); */ #define NdisReadRegisterUlong(Register, Data) \ *(Data) = *(Register) @@ -2752,8 +2752,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUshort( - * IN PUSHORT Register, - * OUT PUSHORT Data); + * IN PUSHORT Register, + * OUT PUSHORT Data); */ #define NdisReadRegisterUshort(Register, Data) \ *(Data) = *(Register) @@ -2761,8 +2761,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUchar( - * IN PUCHAR Register, - * IN UCHAR Data); + * IN PUCHAR Register, + * IN UCHAR Data); */ #define NdisWriteRegisterUchar(Register, Data) \ WRITE_REGISTER_UCHAR((Register), (Data)) @@ -2770,8 +2770,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUlong( - * IN PULONG Register, - * IN ULONG Data); + * IN PULONG Register, + * IN ULONG Data); */ #define NdisWriteRegisterUlong(Register, Data) \ WRITE_REGISTER_ULONG((Register), (Data)) @@ -2779,8 +2779,8 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisReadRegisterUshort( - * IN PUSHORT Register, - * IN USHORT Data); + * IN PUSHORT Register, + * IN USHORT Data); */ #define NdisWriteRegisterUshort(Register, Data) \ WRITE_REGISTER_USHORT((Register), (Data)) @@ -2791,7 +2791,7 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisInitializeListHead( - * IN PLIST_ENTRY ListHead); + * IN PLIST_ENTRY ListHead); */ #define NdisInitializeListHead(_ListHead) \ InitializeListHead(_ListHead) @@ -2799,9 +2799,9 @@ NdisUnicodeStringToAnsiString( /* * PLIST_ENTRY * NdisInterlockedInsertHeadList( - * IN PLIST_ENTRY ListHead, - * IN PLIST_ENTRY ListEntry, - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PLIST_ENTRY ListHead, + * IN PLIST_ENTRY ListEntry, + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisInterlockedInsertHeadList(_ListHead, _ListEntry, _SpinLock) \ ExInterlockedInsertHeadList(_ListHead, _ListEntry, &(_SpinLock)->SpinLock) @@ -2809,9 +2809,9 @@ NdisUnicodeStringToAnsiString( /* * PLIST_ENTRY * NdisInterlockedInsertTailList( - * IN PLIST_ENTRY ListHead, - * IN PLIST_ENTRY ListEntry, - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PLIST_ENTRY ListHead, + * IN PLIST_ENTRY ListEntry, + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisInterlockedInsertTailList(_ListHead, _ListEntry, _SpinLock) \ ExInterlockedInsertTailList(_ListHead, _ListEntry, &(_SpinLock)->SpinLock) @@ -2819,8 +2819,8 @@ NdisUnicodeStringToAnsiString( /* * PLIST_ENTRY * NdisInterlockedRemoveHeadList( - * IN PLIST_ENTRY ListHead, - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PLIST_ENTRY ListHead, + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisInterlockedRemoveHeadList(_ListHead, _SpinLock) \ ExInterlockedRemoveHeadList(_ListHead, &(_SpinLock)->SpinLock) @@ -2828,13 +2828,13 @@ NdisUnicodeStringToAnsiString( /* * VOID * NdisInitializeSListHead( - * IN PSLIST_HEADER SListHead); + * IN PSLIST_HEADER SListHead); */ #define NdisInitializeSListHead(SListHead) ExInitializeSListHead(SListHead) /* * USHORT NdisQueryDepthSList( - * IN PSLIST_HEADER SListHead); + * IN PSLIST_HEADER SListHead); */ #define NdisQueryDepthSList(SListHead) ExQueryDepthSList(SListHead) @@ -2845,23 +2845,23 @@ NdisUnicodeStringToAnsiString( /* * LONG * NdisInterlockedDecrement( - * IN PLONG Addend); + * IN PLONG Addend); */ #define NdisInterlockedDecrement(Addend) InterlockedDecrement(Addend) /* * LONG * NdisInterlockedIncrement( - * IN PLONG Addend); + * IN PLONG Addend); */ #define NdisInterlockedIncrement(Addend) InterlockedIncrement(Addend) /* * VOID * NdisInterlockedAddUlong( - * IN PULONG Addend, - * IN ULONG Increment, - * IN PNDIS_SPIN_LOCK SpinLock); + * IN PULONG Addend, + * IN ULONG Increment, + * IN PNDIS_SPIN_LOCK SpinLock); */ #define NdisInterlockedAddUlong(_Addend, _Increment, _SpinLock) \ ExInterlockedAddUlong(_Addend, _Increment, &(_SpinLock)->SpinLock) @@ -2874,47 +2874,47 @@ NDISAPI VOID DDKAPI NdisCloseConfiguration( - IN NDIS_HANDLE ConfigurationHandle); + /*IN*/ NDIS_HANDLE ConfigurationHandle); NDISAPI VOID DDKAPI NdisReadConfiguration( - OUT PNDIS_STATUS Status, - OUT PNDIS_CONFIGURATION_PARAMETER *ParameterValue, - IN NDIS_HANDLE ConfigurationHandle, - IN PNDIS_STRING Keyword, - IN NDIS_PARAMETER_TYPE ParameterType); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_CONFIGURATION_PARAMETER *ParameterValue, + /*IN*/ NDIS_HANDLE ConfigurationHandle, + /*IN*/ PNDIS_STRING Keyword, + /*IN*/ NDIS_PARAMETER_TYPE ParameterType); NDISAPI VOID DDKAPI NdisWriteConfiguration( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE WrapperConfigurationContext, - IN PNDIS_STRING Keyword, - IN PNDIS_CONFIGURATION_PARAMETER *ParameterValue); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*IN*/ PNDIS_STRING Keyword, + /*IN*/ PNDIS_CONFIGURATION_PARAMETER *ParameterValue); NDISAPI VOID DDKCDECLAPI NdisWriteErrorLogEntry( - IN NDIS_HANDLE NdisAdapterHandle, - IN NDIS_ERROR_CODE ErrorCode, - IN ULONG NumberOfErrorValues, - IN ...); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ NDIS_ERROR_CODE ErrorCode, + /*IN*/ ULONG NumberOfErrorValues, + /*IN*/ ...); /* * VOID * NdisStallExecution( - * IN UINT MicrosecondsToStall) + * IN UINT MicrosecondsToStall) */ #define NdisStallExecution KeStallExecutionProcessor /* * VOID * NdisGetCurrentSystemTime( - * IN PLARGE_INTEGER pSystemTime); + * IN PLARGE_INTEGER pSystemTime); */ #define NdisGetCurrentSystemTime KeQuerySystemTime @@ -2922,7 +2922,7 @@ NDISAPI VOID DDKAPI NdisGetCurrentProcessorCpuUsage( - OUT PULONG pCpuUsage); + /*OUT*/ PULONG pCpuUsage); @@ -2951,45 +2951,45 @@ NDISAPI VOID DDKAPI NdisMFreeSharedMemory( - IN NDIS_HANDLE MiniportAdapterHandle, - IN ULONG Length, - IN BOOLEAN Cached, - IN PVOID VirtualAddress, - IN NDIS_PHYSICAL_ADDRESS PhysicalAddress); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Cached, + /*IN*/ PVOID VirtualAddress, + /*IN*/ NDIS_PHYSICAL_ADDRESS PhysicalAddress); NDISAPI VOID DDKAPI NdisMWanIndicateReceive( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE NdisLinkContext, - IN PUCHAR PacketBuffer, - IN UINT PacketSize); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE NdisLinkContext, + /*IN*/ PUCHAR PacketBuffer, + /*IN*/ UINT PacketSize); NDISAPI VOID DDKAPI NdisMWanIndicateReceiveComplete( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI VOID DDKAPI NdisMWanSendComplete( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PNDIS_WAN_PACKET Packet, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PNDIS_WAN_PACKET Packet, + /*IN*/ NDIS_STATUS Status); NDISAPI NDIS_STATUS DDKAPI NdisPciAssignResources( - IN NDIS_HANDLE NdisMacHandle, - IN NDIS_HANDLE NdisWrapperHandle, - IN NDIS_HANDLE WrapperConfigurationContext, - IN ULONG SlotNumber, - OUT PNDIS_RESOURCE_LIST *AssignedResources); + /*IN*/ NDIS_HANDLE NdisMacHandle, + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*IN*/ ULONG SlotNumber, + /*OUT*/ PNDIS_RESOURCE_LIST *AssignedResources); /* NDIS 5.0 extensions */ @@ -2998,207 +2998,207 @@ NDISAPI VOID DDKAPI NdisAcquireReadWriteLock( - IN PNDIS_RW_LOCK Lock, - IN BOOLEAN fWrite, - IN PLOCK_STATE LockState); + /*IN*/ PNDIS_RW_LOCK Lock, + /*IN*/ BOOLEAN fWrite, + /*IN*/ PLOCK_STATE LockState); NDISAPI NDIS_STATUS DDKAPI NdisAllocateMemoryWithTag( - OUT PVOID *VirtualAddress, - IN UINT Length, - IN ULONG Tag); + /*OUT*/ PVOID *VirtualAddress, + /*IN*/ UINT Length, + /*IN*/ ULONG Tag); NDISAPI VOID DDKAPI NdisAllocatePacketPoolEx( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE PoolHandle, - IN UINT NumberOfDescriptors, - IN UINT NumberOfOverflowDescriptors, - IN UINT ProtocolReservedLength); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE PoolHandle, + /*IN*/ UINT NumberOfDescriptors, + /*IN*/ UINT NumberOfOverflowDescriptors, + /*IN*/ UINT ProtocolReservedLength); NDISAPI VOID DDKAPI NdisCompletePnPEvent( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle, - IN PNET_PNP_EVENT NetPnPEvent); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PNET_PNP_EVENT NetPnPEvent); NDISAPI VOID DDKAPI NdisGetCurrentProcessorCounts( - OUT PULONG pIdleCount, - OUT PULONG pKernelAndUser, - OUT PULONG pIndex); + /*OUT*/ PULONG pIdleCount, + /*OUT*/ PULONG pKernelAndUser, + /*OUT*/ PULONG pIndex); NDISAPI VOID DDKAPI NdisGetDriverHandle( - IN PNDIS_HANDLE NdisBindingHandle, - OUT PNDIS_HANDLE NdisDriverHandle); + /*IN*/ PNDIS_HANDLE NdisBindingHandle, + /*OUT*/ PNDIS_HANDLE NdisDriverHandle); NDISAPI PNDIS_PACKET DDKAPI NdisGetReceivedPacket( - IN PNDIS_HANDLE NdisBindingHandle, - IN PNDIS_HANDLE MacContext); + /*IN*/ PNDIS_HANDLE NdisBindingHandle, + /*IN*/ PNDIS_HANDLE MacContext); NDISAPI VOID DDKAPI NdisGetSystemUptime( - OUT PULONG pSystemUpTime); + /*OUT*/ PULONG pSystemUpTime); NDISAPI VOID DDKAPI NdisInitializeReadWriteLock( - IN PNDIS_RW_LOCK Lock); + /*IN*/ PNDIS_RW_LOCK Lock); NDISAPI NDIS_STATUS DDKAPI NdisMDeregisterDevice( - IN NDIS_HANDLE NdisDeviceHandle); + /*IN*/ NDIS_HANDLE NdisDeviceHandle); NDISAPI VOID DDKAPI NdisMGetDeviceProperty( - IN NDIS_HANDLE MiniportAdapterHandle, - IN OUT PDEVICE_OBJECT *PhysicalDeviceObject OPTIONAL, - IN OUT PDEVICE_OBJECT *FunctionalDeviceObject OPTIONAL, - IN OUT PDEVICE_OBJECT *NextDeviceObject OPTIONAL, - IN OUT PCM_RESOURCE_LIST *AllocatedResources OPTIONAL, - IN OUT PCM_RESOURCE_LIST *AllocatedResourcesTranslated OPTIONAL); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN OUT*/ PDEVICE_OBJECT *PhysicalDeviceObject /*OPTIONAL*/, + /*IN OUT*/ PDEVICE_OBJECT *FunctionalDeviceObject /*OPTIONAL*/, + /*IN OUT*/ PDEVICE_OBJECT *NextDeviceObject /*OPTIONAL*/, + /*IN OUT*/ PCM_RESOURCE_LIST *AllocatedResources /*OPTIONAL*/, + /*IN OUT*/ PCM_RESOURCE_LIST *AllocatedResourcesTranslated /*OPTIONAL*/); NDISAPI NDIS_STATUS DDKAPI NdisMInitializeScatterGatherDma( - IN NDIS_HANDLE MiniportAdapterHandle, - IN BOOLEAN Dma64BitAddresses, - IN ULONG MaximumPhysicalMapping); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ BOOLEAN Dma64BitAddresses, + /*IN*/ ULONG MaximumPhysicalMapping); NDISAPI NDIS_STATUS DDKAPI NdisMPromoteMiniport( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI NDIS_STATUS DDKAPI NdisMQueryAdapterInstanceName( - OUT PNDIS_STRING AdapterInstanceName, - IN NDIS_HANDLE MiniportAdapterHandle); + /*OUT*/ PNDIS_STRING AdapterInstanceName, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI NDIS_STATUS DDKAPI NdisMRegisterDevice( - IN NDIS_HANDLE NdisWrapperHandle, - IN PNDIS_STRING DeviceName, - IN PNDIS_STRING SymbolicName, - IN PDRIVER_DISPATCH MajorFunctions[], - OUT PDEVICE_OBJECT *pDeviceObject, - OUT NDIS_HANDLE *NdisDeviceHandle); + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ PNDIS_STRING DeviceName, + /*IN*/ PNDIS_STRING SymbolicName, + /*IN*/ PDRIVER_DISPATCH MajorFunctions[], + /*OUT*/ PDEVICE_OBJECT *pDeviceObject, + /*OUT*/ NDIS_HANDLE *NdisDeviceHandle); NDISAPI VOID DDKAPI NdisMRegisterUnloadHandler( - IN NDIS_HANDLE NdisWrapperHandle, - IN PDRIVER_UNLOAD UnloadHandler); + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ PDRIVER_UNLOAD UnloadHandler); NDISAPI NDIS_STATUS DDKAPI NdisMRemoveMiniport( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI NDIS_STATUS DDKAPI NdisMSetMiniportSecondary( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE PrimaryMiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE PrimaryMiniportAdapterHandle); NDISAPI VOID DDKAPI NdisOpenConfigurationKeyByIndex( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE ConfigurationHandle, - IN ULONG Index, - OUT PNDIS_STRING KeyName, - OUT PNDIS_HANDLE KeyHandle); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ConfigurationHandle, + /*IN*/ ULONG Index, + /*OUT*/ PNDIS_STRING KeyName, + /*OUT*/ PNDIS_HANDLE KeyHandle); NDISAPI VOID DDKAPI NdisOpenConfigurationKeyByName( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE ConfigurationHandle, - IN PNDIS_STRING SubKeyName, - OUT PNDIS_HANDLE SubKeyHandle); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE ConfigurationHandle, + /*IN*/ PNDIS_STRING SubKeyName, + /*OUT*/ PNDIS_HANDLE SubKeyHandle); NDISAPI UINT DDKAPI NdisPacketPoolUsage( - IN NDIS_HANDLE PoolHandle); + /*IN*/ NDIS_HANDLE PoolHandle); NDISAPI NDIS_STATUS DDKAPI NdisQueryAdapterInstanceName( - OUT PNDIS_STRING AdapterInstanceName, - IN NDIS_HANDLE NdisBindingHandle); + /*OUT*/ PNDIS_STRING AdapterInstanceName, + /*IN*/ NDIS_HANDLE NdisBindingHandle); NDISAPI ULONG DDKAPI NdisReadPcmciaAttributeMemory( - IN NDIS_HANDLE NdisAdapterHandle, - IN ULONG Offset, - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ ULONG Offset, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); NDISAPI VOID DDKAPI NdisReleaseReadWriteLock( - IN PNDIS_RW_LOCK Lock, - IN PLOCK_STATE LockState); + /*IN*/ PNDIS_RW_LOCK Lock, + /*IN*/ PLOCK_STATE LockState); NDISAPI NDIS_STATUS DDKAPI NdisWriteEventLogEntry( - IN PVOID LogHandle, - IN NDIS_STATUS EventCode, - IN ULONG UniqueEventValue, - IN USHORT NumStrings, - IN PVOID StringsList OPTIONAL, - IN ULONG DataSize, - IN PVOID Data OPTIONAL); + /*IN*/ PVOID LogHandle, + /*IN*/ NDIS_STATUS EventCode, + /*IN*/ ULONG UniqueEventValue, + /*IN*/ USHORT NumStrings, + /*IN*/ PVOID StringsList /*OPTIONAL*/, + /*IN*/ ULONG DataSize, + /*IN*/ PVOID Data /*OPTIONAL*/); NDISAPI ULONG DDKAPI NdisWritePcmciaAttributeMemory( - IN NDIS_HANDLE NdisAdapterHandle, - IN ULONG Offset, - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ NDIS_HANDLE NdisAdapterHandle, + /*IN*/ ULONG Offset, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); /* Connectionless services */ @@ -3207,84 +3207,84 @@ NDISAPI NDIS_STATUS DDKAPI NdisClAddParty( - IN NDIS_HANDLE NdisVcHandle, - IN NDIS_HANDLE ProtocolPartyContext, - IN OUT PCO_CALL_PARAMETERS CallParameters, - OUT PNDIS_HANDLE NdisPartyHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ NDIS_HANDLE ProtocolPartyContext, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters, + /*OUT*/ PNDIS_HANDLE NdisPartyHandle); NDISAPI NDIS_STATUS DDKAPI NdisClCloseAddressFamily( - IN NDIS_HANDLE NdisAfHandle); + /*IN*/ NDIS_HANDLE NdisAfHandle); NDISAPI NDIS_STATUS DDKAPI NdisClCloseCall( - IN NDIS_HANDLE NdisVcHandle, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN PVOID Buffer OPTIONAL, - IN UINT Size); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ UINT Size); NDISAPI NDIS_STATUS DDKAPI NdisClDeregisterSap( - IN NDIS_HANDLE NdisSapHandle); + /*IN*/ NDIS_HANDLE NdisSapHandle); NDISAPI NDIS_STATUS DDKAPI NdisClDropParty( - IN NDIS_HANDLE NdisPartyHandle, - IN PVOID Buffer OPTIONAL, - IN UINT Size); + /*IN*/ NDIS_HANDLE NdisPartyHandle, + /*IN*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ UINT Size); NDISAPI VOID DDKAPI NdisClIncomingCallComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI NDIS_STATUS DDKAPI NdisClMakeCall( - IN NDIS_HANDLE NdisVcHandle, - IN OUT PCO_CALL_PARAMETERS CallParameters, - IN NDIS_HANDLE ProtocolPartyContext OPTIONAL, - OUT PNDIS_HANDLE NdisPartyHandle OPTIONAL); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters, + /*IN*/ NDIS_HANDLE ProtocolPartyContext /*OPTIONAL*/, + /*OUT*/ PNDIS_HANDLE NdisPartyHandle /*OPTIONAL*/); NDISAPI NDIS_STATUS DDKAPI NdisClModifyCallQoS( - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI NDIS_STATUS DDKAPI NdisClOpenAddressFamily( - IN NDIS_HANDLE NdisBindingHandle, - IN PCO_ADDRESS_FAMILY AddressFamily, - IN NDIS_HANDLE ProtocolAfContext, - IN PNDIS_CLIENT_CHARACTERISTICS ClCharacteristics, - IN UINT SizeOfClCharacteristics, - OUT PNDIS_HANDLE NdisAfHandle); + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PCO_ADDRESS_FAMILY AddressFamily, + /*IN*/ NDIS_HANDLE ProtocolAfContext, + /*IN*/ PNDIS_CLIENT_CHARACTERISTICS ClCharacteristics, + /*IN*/ UINT SizeOfClCharacteristics, + /*OUT*/ PNDIS_HANDLE NdisAfHandle); NDISAPI NDIS_STATUS DDKAPI NdisClRegisterSap( - IN NDIS_HANDLE NdisAfHandle, - IN NDIS_HANDLE ProtocolSapContext, - IN PCO_SAP Sap, - OUT PNDIS_HANDLE NdisSapHandle); + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*IN*/ NDIS_HANDLE ProtocolSapContext, + /*IN*/ PCO_SAP Sap, + /*OUT*/ PNDIS_HANDLE NdisSapHandle); /* Call Manager services */ @@ -3293,181 +3293,181 @@ NDISAPI NDIS_STATUS DDKAPI NdisCmActivateVc( - IN NDIS_HANDLE NdisVcHandle, - IN OUT PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmAddPartyComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisPartyHandle, - IN NDIS_HANDLE CallMgrPartyContext OPTIONAL, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisPartyHandle, + /*IN*/ NDIS_HANDLE CallMgrPartyContext /*OPTIONAL*/, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmCloseAddressFamilyComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisAfHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisAfHandle); NDISAPI VOID DDKAPI NdisCmCloseCallComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/); NDISAPI NDIS_STATUS DDKAPI NdisCmDeactivateVc( - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI VOID DDKAPI NdisCmDeregisterSapComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisSapHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisSapHandle); NDISAPI VOID DDKAPI NdisCmDispatchCallConnected( - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisCmDispatchIncomingCall( - IN NDIS_HANDLE NdisSapHandle, - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE NdisSapHandle, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmDispatchIncomingCallQoSChange( - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmDispatchIncomingCloseCall( - IN NDIS_STATUS CloseStatus, - IN NDIS_HANDLE NdisVcHandle, - IN PVOID Buffer OPTIONAL, - IN UINT Size); + /*IN*/ NDIS_STATUS CloseStatus, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ UINT Size); NDISAPI VOID DDKAPI NdisCmDispatchIncomingDropParty( - IN NDIS_STATUS DropStatus, - IN NDIS_HANDLE NdisPartyHandle, - IN PVOID Buffer OPTIONAL, - IN UINT Size); + /*IN*/ NDIS_STATUS DropStatus, + /*IN*/ NDIS_HANDLE NdisPartyHandle, + /*IN*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ UINT Size); NDISAPI VOID DDKAPI NdisCmDropPartyComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisPartyHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisPartyHandle); NDISAPI VOID DDKAPI NdisCmMakeCallComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN NDIS_HANDLE CallMgrPartyContext OPTIONAL, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE CallMgrPartyContext /*OPTIONAL*/, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmModifyCallQoSComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisCmOpenAddressFamilyComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisAfHandle, - IN NDIS_HANDLE CallMgrAfContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*IN*/ NDIS_HANDLE CallMgrAfContext); NDISAPI NDIS_STATUS DDKAPI NdisCmRegisterAddressFamily( - IN NDIS_HANDLE NdisBindingHandle, - IN PCO_ADDRESS_FAMILY AddressFamily, - IN PNDIS_CALL_MANAGER_CHARACTERISTICS CmCharacteristics, - IN UINT SizeOfCmCharacteristics); + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PCO_ADDRESS_FAMILY AddressFamily, + /*IN*/ PNDIS_CALL_MANAGER_CHARACTERISTICS CmCharacteristics, + /*IN*/ UINT SizeOfCmCharacteristics); NDISAPI VOID DDKAPI NdisCmRegisterSapComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisSapHandle, - IN NDIS_HANDLE CallMgrSapContext); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisSapHandle, + /*IN*/ NDIS_HANDLE CallMgrSapContext); NDISAPI NDIS_STATUS DDKAPI NdisMCmActivateVc( - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI NDIS_STATUS DDKAPI NdisMCmCreateVc( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE NdisAfHandle, - IN NDIS_HANDLE MiniportVcContext, - OUT PNDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*IN*/ NDIS_HANDLE MiniportVcContext, + /*OUT*/ PNDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisMCmDeactivateVc( - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisMCmDeleteVc( - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisMCmRegisterAddressFamily( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PCO_ADDRESS_FAMILY AddressFamily, - IN PNDIS_CALL_MANAGER_CHARACTERISTICS CmCharacteristics, - IN UINT SizeOfCmCharacteristics); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PCO_ADDRESS_FAMILY AddressFamily, + /*IN*/ PNDIS_CALL_MANAGER_CHARACTERISTICS CmCharacteristics, + /*IN*/ UINT SizeOfCmCharacteristics); NDISAPI NDIS_STATUS DDKAPI NdisMCmRequest( - IN NDIS_HANDLE NdisAfHandle, - IN NDIS_HANDLE NdisVcHandle OPTIONAL, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN OUT PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*IN*/ NDIS_HANDLE NdisVcHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN OUT*/ PNDIS_REQUEST NdisRequest); /* Connection-oriented services */ @@ -3476,99 +3476,99 @@ NDISAPI NDIS_STATUS DDKAPI NdisCoCreateVc( - IN NDIS_HANDLE NdisBindingHandle, - IN NDIS_HANDLE NdisAfHandle OPTIONAL, - IN NDIS_HANDLE ProtocolVcContext, - IN OUT PNDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ NDIS_HANDLE NdisAfHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE ProtocolVcContext, + /*IN OUT*/ PNDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisCoDeleteVc( - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI NDIS_STATUS DDKAPI NdisCoRequest( - IN NDIS_HANDLE NdisBindingHandle, - IN NDIS_HANDLE NdisAfHandle OPTIONAL, - IN NDIS_HANDLE NdisVcHandle OPTIONAL, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN OUT PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ NDIS_HANDLE NdisAfHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE NdisVcHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN OUT*/ PNDIS_REQUEST NdisRequest); NDISAPI VOID DDKAPI NdisCoRequestComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisAfHandle, - IN NDIS_HANDLE NdisVcHandle OPTIONAL, - IN NDIS_HANDLE NdisPartyHandle OPTIONAL, - IN PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisAfHandle, + /*IN*/ NDIS_HANDLE NdisVcHandle /*OPTIONAL*/, + /*IN*/ NDIS_HANDLE NdisPartyHandle /*OPTIONAL*/, + /*IN*/ PNDIS_REQUEST NdisRequest); NDISAPI VOID DDKAPI NdisCoSendPackets( - IN NDIS_HANDLE NdisVcHandle, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); NDISAPI VOID DDKAPI NdisMCoActivateVcComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PCO_CALL_PARAMETERS CallParameters); NDISAPI VOID DDKAPI NdisMCoDeactivateVcComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle); NDISAPI VOID DDKAPI NdisMCoIndicateReceivePacket( - IN NDIS_HANDLE NdisVcHandle, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); NDISAPI VOID DDKAPI NdisMCoIndicateStatus( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE NdisVcHandle OPTIONAL, - IN NDIS_STATUS GeneralStatus, - IN PVOID StatusBuffer OPTIONAL, - IN ULONG StatusBufferSize); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE NdisVcHandle /*OPTIONAL*/, + /*IN*/ NDIS_STATUS GeneralStatus, + /*IN*/ PVOID StatusBuffer /*OPTIONAL*/, + /*IN*/ ULONG StatusBufferSize); NDISAPI VOID DDKAPI NdisMCoReceiveComplete( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI VOID DDKAPI NdisMCoRequestComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE MiniportAdapterHandle, - IN PNDIS_REQUEST Request); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PNDIS_REQUEST Request); NDISAPI VOID DDKAPI NdisMCoSendComplete( - IN NDIS_STATUS Status, - IN NDIS_HANDLE NdisVcHandle, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*IN*/ PNDIS_PACKET Packet); /* NDIS 5.0 extensions for intermediate drivers */ @@ -3577,167 +3577,167 @@ NDISAPI VOID DDKAPI NdisIMAssociateMiniport( - IN NDIS_HANDLE DriverHandle, - IN NDIS_HANDLE ProtocolHandle); + /*IN*/ NDIS_HANDLE DriverHandle, + /*IN*/ NDIS_HANDLE ProtocolHandle); NDISAPI NDIS_STATUS DDKAPI NdisIMCancelInitializeDeviceInstance( - IN NDIS_HANDLE DriverHandle, - IN PNDIS_STRING DeviceInstance); + /*IN*/ NDIS_HANDLE DriverHandle, + /*IN*/ PNDIS_STRING DeviceInstance); NDISAPI VOID DDKAPI NdisIMCopySendCompletePerPacketInfo( - IN PNDIS_PACKET DstPacket, - IN PNDIS_PACKET SrcPacket); + /*IN*/ PNDIS_PACKET DstPacket, + /*IN*/ PNDIS_PACKET SrcPacket); NDISAPI VOID DDKAPI NdisIMCopySendPerPacketInfo( - IN PNDIS_PACKET DstPacket, - IN PNDIS_PACKET SrcPacket); + /*IN*/ PNDIS_PACKET DstPacket, + /*IN*/ PNDIS_PACKET SrcPacket); NDISAPI VOID DDKAPI NdisIMDeregisterLayeredMiniport( - IN NDIS_HANDLE DriverHandle); + /*IN*/ NDIS_HANDLE DriverHandle); NDISAPI NDIS_HANDLE DDKAPI NdisIMGetBindingContext( - IN NDIS_HANDLE NdisBindingHandle); + /*IN*/ NDIS_HANDLE NdisBindingHandle); NDISAPI NDIS_HANDLE DDKAPI NdisIMGetDeviceContext( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); NDISAPI NDIS_STATUS DDKAPI NdisIMInitializeDeviceInstanceEx( - IN NDIS_HANDLE DriverHandle, - IN PNDIS_STRING DriverInstance, - IN NDIS_HANDLE DeviceContext OPTIONAL); + /*IN*/ NDIS_HANDLE DriverHandle, + /*IN*/ PNDIS_STRING DriverInstance, + /*IN*/ NDIS_HANDLE DeviceContext /*OPTIONAL*/); NDISAPI PSINGLE_LIST_ENTRY DDKAPI NdisInterlockedPopEntrySList( - IN PSLIST_HEADER ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PSLIST_HEADER ListHead, + /*IN*/ PKSPIN_LOCK Lock); NDISAPI PSINGLE_LIST_ENTRY DDKAPI NdisInterlockedPushEntrySList( - IN PSLIST_HEADER ListHead, - IN PSINGLE_LIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PSLIST_HEADER ListHead, + /*IN*/ PSINGLE_LIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NDISAPI VOID DDKAPI NdisQueryBufferSafe( - IN PNDIS_BUFFER Buffer, - OUT PVOID *VirtualAddress OPTIONAL, - OUT PUINT Length, - IN UINT Priority); + /*IN*/ PNDIS_BUFFER Buffer, + /*OUT*/ PVOID *VirtualAddress /*OPTIONAL*/, + /*OUT*/ PUINT Length, + /*IN*/ UINT Priority); /* Prototypes for NDIS_MINIPORT_CHARACTERISTICS */ typedef BOOLEAN DDKAPI (*W_CHECK_FOR_HANG_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef VOID DDKAPI (*W_DISABLE_INTERRUPT_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef VOID DDKAPI (*W_ENABLE_INTERRUPT_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef VOID DDKAPI (*W_HALT_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef VOID DDKAPI (*W_HANDLE_INTERRUPT_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef NDIS_STATUS DDKAPI (*W_INITIALIZE_HANDLER)( - OUT PNDIS_STATUS OpenErrorStatus, - OUT PUINT SelectedMediumIndex, - IN PNDIS_MEDIUM MediumArray, - IN UINT MediumArraySize, - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE WrapperConfigurationContext); + /*OUT*/ PNDIS_STATUS OpenErrorStatus, + /*OUT*/ PUINT SelectedMediumIndex, + /*IN*/ PNDIS_MEDIUM MediumArray, + /*IN*/ UINT MediumArraySize, + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext); typedef VOID DDKAPI (*W_ISR_HANDLER)( - OUT PBOOLEAN InterruptRecognized, - OUT PBOOLEAN QueueMiniportHandleInterrupt, - IN NDIS_HANDLE MiniportAdapterContext); - + /*OUT*/ PBOOLEAN InterruptRecognized, + /*OUT*/ PBOOLEAN QueueMiniportHandleInterrupt, + /*IN*/ NDIS_HANDLE MiniportAdapterContext); + typedef NDIS_STATUS DDKAPI (*W_QUERY_INFORMATION_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_OID Oid, - IN PVOID InformationBuffer, - IN ULONG InformationBufferLength, - OUT PULONG BytesWritten, - OUT PULONG BytesNeeded); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_OID Oid, + /*IN*/ PVOID InformationBuffer, + /*IN*/ ULONG InformationBufferLength, + /*OUT*/ PULONG BytesWritten, + /*OUT*/ PULONG BytesNeeded); typedef NDIS_STATUS DDKAPI (*W_RECONFIGURE_HANDLER)( - OUT PNDIS_STATUS OpenErrorStatus, - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE WrapperConfigurationContext); + /*OUT*/ PNDIS_STATUS OpenErrorStatus, + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext); typedef NDIS_STATUS DDKAPI (*W_RESET_HANDLER)( - OUT PBOOLEAN AddressingReset, - IN NDIS_HANDLE MiniportAdapterContext); + /*OUT*/ PBOOLEAN AddressingReset, + /*IN*/ NDIS_HANDLE MiniportAdapterContext); typedef NDIS_STATUS DDKAPI (*W_SEND_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PNDIS_PACKET Packet, - IN UINT Flags); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PNDIS_PACKET Packet, + /*IN*/ UINT Flags); typedef NDIS_STATUS DDKAPI (*WM_SEND_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE NdisLinkHandle, - IN PNDIS_WAN_PACKET Packet); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE NdisLinkHandle, + /*IN*/ PNDIS_WAN_PACKET Packet); typedef NDIS_STATUS DDKAPI (*W_SET_INFORMATION_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_OID Oid, - IN PVOID InformationBuffer, - IN ULONG InformationBufferLength, - OUT PULONG BytesRead, - OUT PULONG BytesNeeded); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_OID Oid, + /*IN*/ PVOID InformationBuffer, + /*IN*/ ULONG InformationBufferLength, + /*OUT*/ PULONG BytesRead, + /*OUT*/ PULONG BytesNeeded); typedef NDIS_STATUS DDKAPI (*W_TRANSFER_DATA_HANDLER)( - OUT PNDIS_PACKET Packet, - OUT PUINT BytesTransferred, - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE MiniportReceiveContext, - IN UINT ByteOffset, - IN UINT BytesToTransfer); + /*OUT*/ PNDIS_PACKET Packet, + /*OUT*/ PUINT BytesTransferred, + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE MiniportReceiveContext, + /*IN*/ UINT ByteOffset, + /*IN*/ UINT BytesToTransfer); typedef NDIS_STATUS DDKAPI (*WM_TRANSFER_DATA_HANDLER)( @@ -3779,22 +3779,22 @@ typedef struct _NDIS30_MINIPORT_CHARACTERISTICS { typedef VOID DDKAPI (*W_SEND_PACKETS_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); typedef VOID DDKAPI (*W_RETURN_PACKET_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PNDIS_PACKET Packet); typedef VOID DDKAPI (*W_ALLOCATE_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PVOID VirtualAddress, - IN PNDIS_PHYSICAL_ADDRESS PhysicalAddress, - IN ULONG Length, - IN PVOID Context); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PVOID VirtualAddress, + /*IN*/ PNDIS_PHYSICAL_ADDRESS PhysicalAddress, + /*IN*/ ULONG Length, + /*IN*/ PVOID Context); #ifdef __cplusplus @@ -3823,34 +3823,34 @@ typedef struct _NDIS40_MINIPORT_CHARACTERISTICS { typedef NDIS_STATUS DDKAPI (*W_CO_CREATE_VC_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE NdisVcHandle, - OUT PNDIS_HANDLE MiniportVcContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE NdisVcHandle, + /*OUT*/ PNDIS_HANDLE MiniportVcContext); typedef NDIS_STATUS DDKAPI (*W_CO_DELETE_VC_HANDLER)( - IN NDIS_HANDLE MiniportVcContext); + /*IN*/ NDIS_HANDLE MiniportVcContext); typedef NDIS_STATUS DDKAPI (*W_CO_ACTIVATE_VC_HANDLER)( - IN NDIS_HANDLE MiniportVcContext, - IN OUT PCO_CALL_PARAMETERS CallParameters); + /*IN*/ NDIS_HANDLE MiniportVcContext, + /*IN OUT*/ PCO_CALL_PARAMETERS CallParameters); typedef NDIS_STATUS DDKAPI (*W_CO_DEACTIVATE_VC_HANDLER)( - IN NDIS_HANDLE MiniportVcContext); + /*IN*/ NDIS_HANDLE MiniportVcContext); typedef VOID DDKAPI (*W_CO_SEND_PACKETS_HANDLER)( - IN NDIS_HANDLE MiniportVcContext, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE MiniportVcContext, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); typedef NDIS_STATUS DDKAPI (*W_CO_REQUEST_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN NDIS_HANDLE MiniportVcContext OPTIONAL, - IN OUT PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ NDIS_HANDLE MiniportVcContext /*OPTIONAL*/, + /*IN OUT*/ PNDIS_REQUEST NdisRequest); #ifdef __cplusplus @@ -3885,8 +3885,8 @@ typedef struct _NDIS50_MINIPORT_CHARACTERISTICS { typedef VOID DDKAPI (*W_CANCEL_SEND_PACKETS_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PVOID CancelId); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PVOID CancelId); #if defined(NDIS51) @@ -3910,26 +3910,26 @@ typedef struct _NDIS_MINIPORT_CHARACTERISTICS { typedef NDIS_STATUS DDKAPI (*SEND_HANDLER)( - IN NDIS_HANDLE MacBindingHandle, - IN PNDIS_PACKET Packet); + /*IN*/ NDIS_HANDLE MacBindingHandle, + /*IN*/ PNDIS_PACKET Packet); typedef NDIS_STATUS DDKAPI (*TRANSFER_DATA_HANDLER)( - IN NDIS_HANDLE MacBindingHandle, - IN NDIS_HANDLE MacReceiveContext, - IN UINT ByteOffset, - IN UINT BytesToTransfer, - OUT PNDIS_PACKET Packet, - OUT PUINT BytesTransferred); + /*IN*/ NDIS_HANDLE MacBindingHandle, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ UINT ByteOffset, + /*IN*/ UINT BytesToTransfer, + /*OUT*/ PNDIS_PACKET Packet, + /*OUT*/ PUINT BytesTransferred); typedef NDIS_STATUS DDKAPI (*RESET_HANDLER)( - IN NDIS_HANDLE MacBindingHandle); + /*IN*/ NDIS_HANDLE MacBindingHandle); typedef NDIS_STATUS DDKAPI (*REQUEST_HANDLER)( - IN NDIS_HANDLE MacBindingHandle, - IN PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE MacBindingHandle, + /*IN*/ PNDIS_REQUEST NdisRequest); @@ -3937,14 +3937,14 @@ typedef NDIS_STATUS DDKAPI typedef BOOLEAN DDKAPI (*PNDIS_INTERRUPT_SERVICE)( - IN PVOID InterruptContext); + /*IN*/ PVOID InterruptContext); typedef VOID DDKAPI (*PNDIS_DEFERRED_PROCESSING)( - IN PVOID SystemSpecific1, - IN PVOID InterruptContext, - IN PVOID SystemSpecific2, - IN PVOID SystemSpecific3); + /*IN*/ PVOID SystemSpecific1, + /*IN*/ PVOID InterruptContext, + /*IN*/ PVOID SystemSpecific2, + /*IN*/ PVOID SystemSpecific3); @@ -4065,133 +4065,133 @@ typedef struct _ETH_FILTER { typedef VOID DDKAPI (*ETH_RCV_COMPLETE_HANDLER)( - IN PETH_FILTER Filter); + /*IN*/ PETH_FILTER Filter); typedef VOID DDKAPI (*ETH_RCV_INDICATE_HANDLER)( - IN PETH_FILTER Filter, - IN NDIS_HANDLE MacReceiveContext, - IN PCHAR Address, - IN PVOID HeaderBuffer, - IN UINT HeaderBufferSize, - IN PVOID LookaheadBuffer, - IN UINT LookaheadBufferSize, - IN UINT PacketSize); + /*IN*/ PETH_FILTER Filter, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ PCHAR Address, + /*IN*/ PVOID HeaderBuffer, + /*IN*/ UINT HeaderBufferSize, + /*IN*/ PVOID LookaheadBuffer, + /*IN*/ UINT LookaheadBufferSize, + /*IN*/ UINT PacketSize); typedef VOID DDKAPI (*FDDI_RCV_COMPLETE_HANDLER)( - IN PFDDI_FILTER Filter); + /*IN*/ PFDDI_FILTER Filter); typedef VOID DDKAPI (*FDDI_RCV_INDICATE_HANDLER)( - IN PFDDI_FILTER Filter, - IN NDIS_HANDLE MacReceiveContext, - IN PCHAR Address, - IN UINT AddressLength, - IN PVOID HeaderBuffer, - IN UINT HeaderBufferSize, - IN PVOID LookaheadBuffer, - IN UINT LookaheadBufferSize, - IN UINT PacketSize); + /*IN*/ PFDDI_FILTER Filter, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ PCHAR Address, + /*IN*/ UINT AddressLength, + /*IN*/ PVOID HeaderBuffer, + /*IN*/ UINT HeaderBufferSize, + /*IN*/ PVOID LookaheadBuffer, + /*IN*/ UINT LookaheadBufferSize, + /*IN*/ UINT PacketSize); typedef VOID DDKAPI (*FILTER_PACKET_INDICATION_HANDLER)( - IN NDIS_HANDLE Miniport, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE Miniport, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); typedef VOID DDKAPI (*TR_RCV_COMPLETE_HANDLER)( - IN PTR_FILTER Filter); + /*IN*/ PTR_FILTER Filter); typedef VOID DDKAPI (*TR_RCV_INDICATE_HANDLER)( - IN PTR_FILTER Filter, - IN NDIS_HANDLE MacReceiveContext, - IN PVOID HeaderBuffer, - IN UINT HeaderBufferSize, - IN PVOID LookaheadBuffer, - IN UINT LookaheadBufferSize, - IN UINT PacketSize); + /*IN*/ PTR_FILTER Filter, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ PVOID HeaderBuffer, + /*IN*/ UINT HeaderBufferSize, + /*IN*/ PVOID LookaheadBuffer, + /*IN*/ UINT LookaheadBufferSize, + /*IN*/ UINT PacketSize); typedef VOID DDKAPI (*WAN_RCV_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE NdisLinkContext); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE NdisLinkContext); typedef VOID DDKAPI (*WAN_RCV_HANDLER)( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE NdisLinkContext, - IN PUCHAR Packet, - IN ULONG PacketSize); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE NdisLinkContext, + /*IN*/ PUCHAR Packet, + /*IN*/ ULONG PacketSize); typedef VOID DDKFASTAPI (*NDIS_M_DEQUEUE_WORK_ITEM)( - IN PNDIS_MINIPORT_BLOCK Miniport, - IN NDIS_WORK_ITEM_TYPE WorkItemType, - OUT PVOID *WorkItemContext); + /*IN*/ PNDIS_MINIPORT_BLOCK Miniport, + /*IN*/ NDIS_WORK_ITEM_TYPE WorkItemType, + /*OUT*/ PVOID *WorkItemContext); typedef NDIS_STATUS DDKFASTAPI (*NDIS_M_QUEUE_NEW_WORK_ITEM)( - IN PNDIS_MINIPORT_BLOCK Miniport, - IN NDIS_WORK_ITEM_TYPE WorkItemType, - IN PVOID WorkItemContext); + /*IN*/ PNDIS_MINIPORT_BLOCK Miniport, + /*IN*/ NDIS_WORK_ITEM_TYPE WorkItemType, + /*IN*/ PVOID WorkItemContext); typedef NDIS_STATUS DDKFASTAPI (*NDIS_M_QUEUE_WORK_ITEM)( - IN PNDIS_MINIPORT_BLOCK Miniport, - IN NDIS_WORK_ITEM_TYPE WorkItemType, - IN PVOID WorkItemContext); + /*IN*/ PNDIS_MINIPORT_BLOCK Miniport, + /*IN*/ NDIS_WORK_ITEM_TYPE WorkItemType, + /*IN*/ PVOID WorkItemContext); typedef VOID DDKAPI (*NDIS_M_REQ_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*NDIS_M_RESET_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_STATUS Status, - IN BOOLEAN AddressingReset); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_STATUS Status, + /*IN*/ BOOLEAN AddressingReset); typedef VOID DDKAPI (*NDIS_M_SEND_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PNDIS_PACKET Packet, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PNDIS_PACKET Packet, + /*IN*/ NDIS_STATUS Status); typedef VOID DDKAPI (*NDIS_M_SEND_RESOURCES_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); typedef BOOLEAN DDKFASTAPI (*NDIS_M_START_SENDS)( - IN PNDIS_MINIPORT_BLOCK Miniport); + /*IN*/ PNDIS_MINIPORT_BLOCK Miniport); typedef VOID DDKAPI (*NDIS_M_STATUS_HANDLER)( - IN NDIS_HANDLE MiniportHandle, - IN NDIS_STATUS GeneralStatus, - IN PVOID StatusBuffer, - IN UINT StatusBufferSize); + /*IN*/ NDIS_HANDLE MiniportHandle, + /*IN*/ NDIS_STATUS GeneralStatus, + /*IN*/ PVOID StatusBuffer, + /*IN*/ UINT StatusBufferSize); typedef VOID DDKAPI (*NDIS_M_STS_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); typedef VOID DDKAPI (*NDIS_M_TD_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PNDIS_PACKET Packet, - IN NDIS_STATUS Status, - IN UINT BytesTransferred); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PNDIS_PACKET Packet, + /*IN*/ NDIS_STATUS Status, + /*IN*/ UINT BytesTransferred); typedef VOID (DDKAPI *NDIS_WM_SEND_COMPLETE_HANDLER)( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PVOID Packet, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PVOID Packet, + /*IN*/ NDIS_STATUS Status); #if ARCNET @@ -4424,16 +4424,16 @@ struct _NDIS_MINIPORT_BLOCK { /* Handler prototypes for NDIS_OPEN_BLOCK */ typedef NDIS_STATUS (DDKAPI *WAN_SEND_HANDLER)( - IN NDIS_HANDLE MacBindingHandle, - IN NDIS_HANDLE LinkHandle, - IN PVOID Packet); + /*IN*/ NDIS_HANDLE MacBindingHandle, + /*IN*/ NDIS_HANDLE LinkHandle, + /*IN*/ PVOID Packet); /* NDIS 4.0 extension */ typedef VOID (DDKAPI *SEND_PACKETS_HANDLER)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); typedef struct _NDIS_COMMON_OPEN_BLOCK { @@ -4521,28 +4521,28 @@ NDISAPI VOID DDKAPI NdisInitializeWrapper( - OUT PNDIS_HANDLE NdisWrapperHandle, - IN PVOID SystemSpecific1, - IN PVOID SystemSpecific2, - IN PVOID SystemSpecific3); + /*OUT*/ PNDIS_HANDLE NdisWrapperHandle, + /*IN*/ PVOID SystemSpecific1, + /*IN*/ PVOID SystemSpecific2, + /*IN*/ PVOID SystemSpecific3); NDISAPI NDIS_STATUS DDKAPI NdisMAllocateMapRegisters( - IN NDIS_HANDLE MiniportAdapterHandle, - IN UINT DmaChannel, - IN BOOLEAN Dma32BitAddresses, - IN ULONG PhysicalMapRegistersNeeded, - IN ULONG MaximumPhysicalMapping); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ UINT DmaChannel, + /*IN*/ BOOLEAN Dma32BitAddresses, + /*IN*/ ULONG PhysicalMapRegistersNeeded, + /*IN*/ ULONG MaximumPhysicalMapping); /* * VOID * NdisMArcIndicateReceive( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN PUCHAR HeaderBuffer, - * IN PUCHAR DataBuffer, - * IN UINT Length); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN PUCHAR HeaderBuffer, + * IN PUCHAR DataBuffer, + * IN UINT Length); */ #define NdisMArcIndicateReceive(MiniportAdapterHandle, \ HeaderBuffer, \ @@ -4559,7 +4559,7 @@ NdisMAllocateMapRegisters( /* * VOID * NdisMArcIndicateReceiveComplete( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMArcIndicateReceiveComplete(MiniportAdapterHandle) \ { \ @@ -4576,47 +4576,47 @@ NDISAPI VOID DDKAPI NdisMCloseLog( - IN NDIS_HANDLE LogHandle); + /*IN*/ NDIS_HANDLE LogHandle); NDISAPI NDIS_STATUS DDKAPI NdisMCreateLog( - IN NDIS_HANDLE MiniportAdapterHandle, - IN UINT Size, - OUT PNDIS_HANDLE LogHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ UINT Size, + /*OUT*/ PNDIS_HANDLE LogHandle); NDISAPI VOID DDKAPI NdisMDeregisterAdapterShutdownHandler( - IN NDIS_HANDLE MiniportHandle); + /*IN*/ NDIS_HANDLE MiniportHandle); NDISAPI VOID DDKAPI NdisMDeregisterInterrupt( - IN PNDIS_MINIPORT_INTERRUPT Interrupt); + /*IN*/ PNDIS_MINIPORT_INTERRUPT Interrupt); NDISAPI VOID DDKAPI NdisMDeregisterIoPortRange( - IN NDIS_HANDLE MiniportAdapterHandle, - IN UINT InitialPort, - IN UINT NumberOfPorts, - IN PVOID PortOffset); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ UINT InitialPort, + /*IN*/ UINT NumberOfPorts, + /*IN*/ PVOID PortOffset); /* * VOID * NdisMEthIndicateReceive( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_HANDLE MiniportReceiveContext, - * IN PVOID HeaderBuffer, - * IN UINT HeaderBufferSize, - * IN PVOID LookaheadBuffer, - * IN UINT LookaheadBufferSize, - * IN UINT PacketSize); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_HANDLE MiniportReceiveContext, + * IN PVOID HeaderBuffer, + * IN UINT HeaderBufferSize, + * IN PVOID LookaheadBuffer, + * IN UINT LookaheadBufferSize, + * IN UINT PacketSize); */ #define NdisMEthIndicateReceive(MiniportAdapterHandle, \ MiniportReceiveContext, \ @@ -4640,7 +4640,7 @@ NdisMDeregisterIoPortRange( /* * VOID * NdisMEthIndicateReceiveComplete( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMEthIndicateReceiveComplete(MiniportAdapterHandle) \ { \ @@ -4651,13 +4651,13 @@ NdisMDeregisterIoPortRange( /* * VOID * NdisMFddiIndicateReceive( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_HANDLE MiniportReceiveContext, - * IN PVOID HeaderBuffer, - * IN UINT HeaderBufferSize, - * IN PVOID LookaheadBuffer, - * IN UINT LookaheadBufferSize, - * IN UINT PacketSize); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_HANDLE MiniportReceiveContext, + * IN PVOID HeaderBuffer, + * IN UINT HeaderBufferSize, + * IN PVOID LookaheadBuffer, + * IN UINT LookaheadBufferSize, + * IN UINT PacketSize); */ #define NdisMFddiIndicateReceive(MiniportAdapterHandle, \ MiniportReceiveContext, \ @@ -4686,7 +4686,7 @@ NdisMDeregisterIoPortRange( /* * VOID * NdisMFddiIndicateReceiveComplete( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMFddiIndicateReceiveComplete(MiniportAdapterHandle) \ { \ @@ -4698,21 +4698,21 @@ NDISAPI VOID DDKAPI NdisMFlushLog( - IN NDIS_HANDLE LogHandle); + /*IN*/ NDIS_HANDLE LogHandle); NDISAPI VOID DDKAPI NdisMFreeMapRegisters( - IN NDIS_HANDLE MiniportAdapterHandle); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle); /* * VOID * NdisMIndicateStatus( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_STATUS GeneralStatus, - * IN PVOID StatusBuffer, - * IN UINT StatusBufferSize); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_STATUS GeneralStatus, + * IN PVOID StatusBuffer, + * IN UINT StatusBufferSize); */ #define NdisMIndicateStatus(MiniportAdapterHandle, \ @@ -4723,7 +4723,7 @@ NdisMFreeMapRegisters( /* * VOID * NdisMIndicateStatusComplete( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMIndicateStatusComplete(MiniportAdapterHandle) \ (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->StatusCompleteHandler)( \ @@ -4732,10 +4732,10 @@ NdisMFreeMapRegisters( /* * VOID * NdisMInitializeWrapper( - * OUT PNDIS_HANDLE NdisWrapperHandle, - * IN PVOID SystemSpecific1, - * IN PVOID SystemSpecific2, - * IN PVOID SystemSpecific3); + * OUT PNDIS_HANDLE NdisWrapperHandle, + * IN PVOID SystemSpecific1, + * IN PVOID SystemSpecific2, + * IN PVOID SystemSpecific3); */ #define NdisMInitializeWrapper(NdisWrapperHandle, \ SystemSpecific1, \ @@ -4750,16 +4750,16 @@ NDISAPI NDIS_STATUS DDKAPI NdisMMapIoSpace( - OUT PVOID *VirtualAddress, - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_PHYSICAL_ADDRESS PhysicalAddress, - IN UINT Length); + /*OUT*/ PVOID *VirtualAddress, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_PHYSICAL_ADDRESS PhysicalAddress, + /*IN*/ UINT Length); /* * VOID * NdisMQueryInformationComplete( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_STATUS Status); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_STATUS Status); */ #define NdisMQueryInformationComplete(MiniportAdapterHandle, Status) \ (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->QueryCompleteHandler)(MiniportAdapterHandle, Status) @@ -4768,38 +4768,38 @@ NDISAPI VOID DDKAPI NdisMRegisterAdapterShutdownHandler( - IN NDIS_HANDLE MiniportHandle, - IN PVOID ShutdownContext, - IN ADAPTER_SHUTDOWN_HANDLER ShutdownHandler); + /*IN*/ NDIS_HANDLE MiniportHandle, + /*IN*/ PVOID ShutdownContext, + /*IN*/ ADAPTER_SHUTDOWN_HANDLER ShutdownHandler); NDISAPI NDIS_STATUS DDKAPI NdisMRegisterInterrupt( - OUT PNDIS_MINIPORT_INTERRUPT Interrupt, - IN NDIS_HANDLE MiniportAdapterHandle, - IN UINT InterruptVector, - IN UINT InterruptLevel, - IN BOOLEAN RequestIsr, - IN BOOLEAN SharedInterrupt, - IN NDIS_INTERRUPT_MODE InterruptMode); + /*OUT*/ PNDIS_MINIPORT_INTERRUPT Interrupt, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ UINT InterruptVector, + /*IN*/ UINT InterruptLevel, + /*IN*/ BOOLEAN RequestIsr, + /*IN*/ BOOLEAN SharedInterrupt, + /*IN*/ NDIS_INTERRUPT_MODE InterruptMode); NDISAPI NDIS_STATUS DDKAPI NdisMRegisterIoPortRange( - OUT PVOID *PortOffset, - IN NDIS_HANDLE MiniportAdapterHandle, - IN UINT InitialPort, - IN UINT NumberOfPorts); + /*OUT*/ PVOID *PortOffset, + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ UINT InitialPort, + /*IN*/ UINT NumberOfPorts); NDISAPI NDIS_STATUS DDKAPI NdisMRegisterMiniport( - IN NDIS_HANDLE NdisWrapperHandle, - IN PNDIS_MINIPORT_CHARACTERISTICS MiniportCharacteristics, - IN UINT CharacteristicsLength); + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ PNDIS_MINIPORT_CHARACTERISTICS MiniportCharacteristics, + /*IN*/ UINT CharacteristicsLength); #if !defined(_NDIS_) @@ -4807,9 +4807,9 @@ NdisMRegisterMiniport( /* * VOID * NdisMResetComplete( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_STATUS Status, - * IN BOOLEAN AddressingReset); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_STATUS Status, + * IN BOOLEAN AddressingReset); */ #define NdisMResetComplete(MiniportAdapterHandle, \ Status, \ @@ -4822,9 +4822,9 @@ NdisMRegisterMiniport( /* * VOID * NdisMSendComplete( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN PNDIS_PACKET Packet, - * IN NDIS_STATUS Status); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN PNDIS_PACKET Packet, + * IN NDIS_STATUS Status); */ #define NdisMSendComplete(MiniportAdapterHandle, \ Packet, \ @@ -4837,7 +4837,7 @@ NdisMRegisterMiniport( /* * VOID * NdisMSendResourcesAvailable( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMSendResourcesAvailable(MiniportAdapterHandle) \ { \ @@ -4848,10 +4848,10 @@ NdisMRegisterMiniport( /* * VOID * NdisMTransferDataComplete( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN PNDIS_PACKET Packet, - * IN NDIS_STATUS Status, - * IN UINT BytesTransferred); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN PNDIS_PACKET Packet, + * IN NDIS_STATUS Status, + * IN UINT BytesTransferred); */ #define NdisMTransferDataComplete(MiniportAdapterHandle, \ Packet, \ @@ -4868,10 +4868,10 @@ NdisMRegisterMiniport( /* * VOID * NdisMSetAttributes( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_HANDLE MiniportAdapterContext, - * IN BOOLEAN BusMaster, - * IN NDIS_INTERFACE_TYPE AdapterType); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_HANDLE MiniportAdapterContext, + * IN BOOLEAN BusMaster, + * IN NDIS_INTERFACE_TYPE AdapterType); */ #define NdisMSetAttributes(MiniportAdapterHandle, \ MiniportAdapterContext, \ @@ -4887,17 +4887,17 @@ NDISAPI VOID DDKAPI NdisMSetAttributesEx( - IN NDIS_HANDLE MiniportAdapterHandle, - IN NDIS_HANDLE MiniportAdapterContext, - IN UINT CheckForHangTimeInSeconds OPTIONAL, - IN ULONG AttributeFlags, - IN NDIS_INTERFACE_TYPE AdapterType); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ UINT CheckForHangTimeInSeconds /*OPTIONAL*/, + /*IN*/ ULONG AttributeFlags, + /*IN*/ NDIS_INTERFACE_TYPE AdapterType); /* * VOID * NdisMSetInformationComplete( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_STATUS Status); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_STATUS Status); */ #define NdisMSetInformationComplete(MiniportAdapterHandle, \ Status) \ @@ -4908,26 +4908,26 @@ NDISAPI VOID DDKAPI NdisMSleep( - IN ULONG MicrosecondsToSleep); + /*IN*/ ULONG MicrosecondsToSleep); NDISAPI BOOLEAN DDKAPI NdisMSynchronizeWithInterrupt( - IN PNDIS_MINIPORT_INTERRUPT Interrupt, - IN PVOID SynchronizeFunction, - IN PVOID SynchronizeContext); + /*IN*/ PNDIS_MINIPORT_INTERRUPT Interrupt, + /*IN*/ PVOID SynchronizeFunction, + /*IN*/ PVOID SynchronizeContext); /* * VOID * NdisMTrIndicateReceive( - * IN NDIS_HANDLE MiniportAdapterHandle, - * IN NDIS_HANDLE MiniportReceiveContext, - * IN PVOID HeaderBuffer, - * IN UINT HeaderBufferSize, - * IN PVOID LookaheadBuffer, - * IN UINT LookaheadBufferSize, - * IN UINT PacketSize); + * IN NDIS_HANDLE MiniportAdapterHandle, + * IN NDIS_HANDLE MiniportReceiveContext, + * IN PVOID HeaderBuffer, + * IN UINT HeaderBufferSize, + * IN PVOID LookaheadBuffer, + * IN UINT LookaheadBufferSize, + * IN UINT PacketSize); */ #define NdisMTrIndicateReceive(MiniportAdapterHandle, \ MiniportReceiveContext, \ @@ -4951,7 +4951,7 @@ NdisMSynchronizeWithInterrupt( /* * VOID * NdisMTrIndicateReceiveComplete( - * IN NDIS_HANDLE MiniportAdapterHandle); + * IN NDIS_HANDLE MiniportAdapterHandle); */ #define NdisMTrIndicateReceiveComplete(MiniportAdapterHandle) \ { \ @@ -4963,41 +4963,41 @@ NDISAPI NDIS_STATUS DDKAPI NdisMWriteLogData( - IN NDIS_HANDLE LogHandle, - IN PVOID LogBuffer, - IN UINT LogBufferSize); + /*IN*/ NDIS_HANDLE LogHandle, + /*IN*/ PVOID LogBuffer, + /*IN*/ UINT LogBufferSize); NDISAPI VOID DDKAPI NdisMQueryAdapterResources( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE WrapperConfigurationContext, - OUT PNDIS_RESOURCE_LIST ResourceList, - IN OUT PUINT BufferSize); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*OUT*/ PNDIS_RESOURCE_LIST ResourceList, + /*IN OUT*/ PUINT BufferSize); NDISAPI VOID DDKAPI NdisTerminateWrapper( - IN NDIS_HANDLE NdisWrapperHandle, - IN PVOID SystemSpecific); + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ PVOID SystemSpecific); NDISAPI VOID DDKAPI NdisMUnmapIoSpace( - IN NDIS_HANDLE MiniportAdapterHandle, - IN PVOID VirtualAddress, - IN UINT Length); + /*IN*/ NDIS_HANDLE MiniportAdapterHandle, + /*IN*/ PVOID VirtualAddress, + /*IN*/ UINT Length); /* NDIS intermediate miniport structures */ typedef VOID (DDKAPI *W_MINIPORT_CALLBACK)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PVOID CallbackContext); + /*IN*/ NDIS_HANDLE MiniportAdapterContext, + /*IN*/ PVOID CallbackContext); @@ -5007,13 +5007,13 @@ NDISAPI NDIS_STATUS DDKAPI NdisIMDeInitializeDeviceInstance( - IN NDIS_HANDLE NdisMiniportHandle); + /*IN*/ NDIS_HANDLE NdisMiniportHandle); /* * NDIS_STATUS * NdisIMInitializeDeviceInstance( - * IN NDIS_HANDLE DriverHandle, - * IN PNDIS_STRING DeviceInstance); + * IN NDIS_HANDLE DriverHandle, + * IN PNDIS_STRING DeviceInstance); */ #define NdisIMInitializeDeviceInstance(DriverHandle, DeviceInstance) \ NdisIMInitializeDeviceInstanceEx(DriverHandle, DeviceInstance, NULL) @@ -5022,10 +5022,10 @@ NDISAPI NDIS_STATUS DDKAPI NdisIMRegisterLayeredMiniport( - IN NDIS_HANDLE NdisWrapperHandle, - IN PNDIS_MINIPORT_CHARACTERISTICS MiniportCharacteristics, - IN UINT CharacteristicsLength, - OUT PNDIS_HANDLE DriverHandle); + /*IN*/ NDIS_HANDLE NdisWrapperHandle, + /*IN*/ PNDIS_MINIPORT_CHARACTERISTICS MiniportCharacteristics, + /*IN*/ UINT CharacteristicsLength, + /*OUT*/ PNDIS_HANDLE DriverHandle); /* Functions obsoleted by NDIS 5.0 */ @@ -5034,25 +5034,25 @@ NDISAPI VOID DDKAPI NdisFreeDmaChannel( - IN PNDIS_HANDLE NdisDmaHandle); + /*IN*/ PNDIS_HANDLE NdisDmaHandle); NDISAPI VOID DDKAPI NdisSetupDmaTransfer( - OUT PNDIS_STATUS Status, - IN PNDIS_HANDLE NdisDmaHandle, - IN PNDIS_BUFFER Buffer, - IN ULONG Offset, - IN ULONG Length, - IN BOOLEAN WriteToDevice); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ PNDIS_HANDLE NdisDmaHandle, + /*IN*/ PNDIS_BUFFER Buffer, + /*IN*/ ULONG Offset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN WriteToDevice); NDISAPI NTSTATUS DDKAPI NdisUpcaseUnicodeString( - OUT PUNICODE_STRING DestinationString, - IN PUNICODE_STRING SourceString); + /*OUT*/ PUNICODE_STRING DestinationString, + /*IN*/ PUNICODE_STRING SourceString); /* Routines for NDIS protocol drivers */ @@ -5061,142 +5061,142 @@ NDISAPI VOID DDKAPI NdisRequest( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle, - IN PNDIS_REQUEST NdisRequest); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PNDIS_REQUEST NdisRequest); NDISAPI VOID DDKAPI NdisReset( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle); NDISAPI VOID DDKAPI NdisSend( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle, - IN PNDIS_PACKET Packet); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PNDIS_PACKET Packet); NDISAPI VOID DDKAPI NdisSendPackets( - IN NDIS_HANDLE NdisBindingHandle, - IN PPNDIS_PACKET PacketArray, - IN UINT NumberOfPackets); + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ PPNDIS_PACKET PacketArray, + /*IN*/ UINT NumberOfPackets); NDISAPI VOID DDKAPI NdisTransferData( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle, - IN NDIS_HANDLE MacReceiveContext, - IN UINT ByteOffset, - IN UINT BytesToTransfer, - IN OUT PNDIS_PACKET Packet, - OUT PUINT BytesTransferred); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle, + /*IN*/ NDIS_HANDLE MacReceiveContext, + /*IN*/ UINT ByteOffset, + /*IN*/ UINT BytesToTransfer, + /*IN OUT*/ PNDIS_PACKET Packet, + /*OUT*/ PUINT BytesTransferred); NDISAPI VOID DDKAPI NdisCloseAdapter( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisBindingHandle); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisBindingHandle); NDISAPI VOID DDKAPI NdisCompleteBindAdapter( - IN NDIS_HANDLE BindAdapterContext, - IN NDIS_STATUS Status, - IN NDIS_STATUS OpenStatus); + /*IN*/ NDIS_HANDLE BindAdapterContext, + /*IN*/ NDIS_STATUS Status, + /*IN*/ NDIS_STATUS OpenStatus); NDISAPI VOID DDKAPI NdisCompleteUnbindAdapter( - IN NDIS_HANDLE UnbindAdapterContext, - IN NDIS_STATUS Status); + /*IN*/ NDIS_HANDLE UnbindAdapterContext, + /*IN*/ NDIS_STATUS Status); NDISAPI VOID DDKAPI NdisDeregisterProtocol( - OUT PNDIS_STATUS Status, - IN NDIS_HANDLE NdisProtocolHandle); + /*OUT*/ PNDIS_STATUS Status, + /*IN*/ NDIS_HANDLE NdisProtocolHandle); NDISAPI VOID DDKAPI NdisOpenAdapter( - OUT PNDIS_STATUS Status, - OUT PNDIS_STATUS OpenErrorStatus, - OUT PNDIS_HANDLE NdisBindingHandle, - OUT PUINT SelectedMediumIndex, - IN PNDIS_MEDIUM MediumArray, - IN UINT MediumArraySize, - IN NDIS_HANDLE NdisProtocolHandle, - IN NDIS_HANDLE ProtocolBindingContext, - IN PNDIS_STRING AdapterName, - IN UINT OpenOptions, - IN PSTRING AddressingInformation); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_STATUS OpenErrorStatus, + /*OUT*/ PNDIS_HANDLE NdisBindingHandle, + /*OUT*/ PUINT SelectedMediumIndex, + /*IN*/ PNDIS_MEDIUM MediumArray, + /*IN*/ UINT MediumArraySize, + /*IN*/ NDIS_HANDLE NdisProtocolHandle, + /*IN*/ NDIS_HANDLE ProtocolBindingContext, + /*IN*/ PNDIS_STRING AdapterName, + /*IN*/ UINT OpenOptions, + /*IN*/ PSTRING AddressingInformation); NDISAPI VOID DDKAPI NdisOpenProtocolConfiguration( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE ConfigurationHandle, - IN PNDIS_STRING ProtocolSection); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE ConfigurationHandle, + /*IN*/ PNDIS_STRING ProtocolSection); NDISAPI VOID DDKAPI NdisRegisterProtocol( - OUT PNDIS_STATUS Status, - OUT PNDIS_HANDLE NdisProtocolHandle, - IN PNDIS_PROTOCOL_CHARACTERISTICS ProtocolCharacteristics, - IN UINT CharacteristicsLength); + /*OUT*/ PNDIS_STATUS Status, + /*OUT*/ PNDIS_HANDLE NdisProtocolHandle, + /*IN*/ PNDIS_PROTOCOL_CHARACTERISTICS ProtocolCharacteristics, + /*IN*/ UINT CharacteristicsLength); /* Obsoleted in Windows XP */ /* Prototypes for NDIS_MAC_CHARACTERISTICS */ typedef NDIS_STATUS (*OPEN_ADAPTER_HANDLER)( - OUT PNDIS_STATUS OpenErrorStatus, - OUT NDIS_HANDLE *MacBindingHandle, - OUT PUINT SelectedMediumIndex, - IN PNDIS_MEDIUM MediumArray, - IN UINT MediumArraySize, - IN NDIS_HANDLE NdisBindingContext, - IN NDIS_HANDLE MacAdapterContext, - IN UINT OpenOptions, - IN PSTRING AddressingInformation OPTIONAL); + /*OUT*/ PNDIS_STATUS OpenErrorStatus, + /*OUT*/ NDIS_HANDLE *MacBindingHandle, + /*OUT*/ PUINT SelectedMediumIndex, + /*IN*/ PNDIS_MEDIUM MediumArray, + /*IN*/ UINT MediumArraySize, + /*IN*/ NDIS_HANDLE NdisBindingContext, + /*IN*/ NDIS_HANDLE MacAdapterContext, + /*IN*/ UINT OpenOptions, + /*IN*/ PSTRING AddressingInformation /*OPTIONAL*/); typedef NDIS_STATUS (DDKAPI *CLOSE_ADAPTER_HANDLER)( - IN NDIS_HANDLE MacBindingHandle); + /*IN*/ NDIS_HANDLE MacBindingHandle); typedef NDIS_STATUS (DDKAPI *WAN_TRANSFER_DATA_HANDLER)( VOID); typedef NDIS_STATUS (DDKAPI *QUERY_GLOBAL_STATISTICS_HANDLER)( - IN NDIS_HANDLE MacAdapterContext, - IN PNDIS_REQUEST NdisRequest); + /*IN*/ NDIS_HANDLE MacAdapterContext, + /*IN*/ PNDIS_REQUEST NdisRequest); typedef VOID (DDKAPI *UNLOAD_MAC_HANDLER)( - IN NDIS_HANDLE MacMacContext); + /*IN*/ NDIS_HANDLE MacMacContext); typedef NDIS_STATUS (DDKAPI *ADD_ADAPTER_HANDLER)( - IN NDIS_HANDLE MacMacContext, - IN NDIS_HANDLE WrapperConfigurationContext, - IN PNDIS_STRING AdapterName); + /*IN*/ NDIS_HANDLE MacMacContext, + /*IN*/ NDIS_HANDLE WrapperConfigurationContext, + /*IN*/ PNDIS_STRING AdapterName); typedef VOID (*REMOVE_ADAPTER_HANDLER)( - IN NDIS_HANDLE MacAdapterContext); + /*IN*/ NDIS_HANDLE MacAdapterContext); typedef struct _NDIS_MAC_CHARACTERISTICS { UCHAR MajorNdisVersion; diff --git a/winsup/w32api/include/ddk/ndistapi.h b/winsup/w32api/include/ddk/ndistapi.h index 97bd442bd..1a8029e33 100644 --- a/winsup/w32api/include/ddk/ndistapi.h +++ b/winsup/w32api/include/ddk/ndistapi.h @@ -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 diff --git a/winsup/w32api/include/ddk/ndiswan.h b/winsup/w32api/include/ddk/ndiswan.h index 66fb0de6e..22ea978eb 100644 --- a/winsup/w32api/include/ddk/ndiswan.h +++ b/winsup/w32api/include/ddk/ndiswan.h @@ -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 diff --git a/winsup/w32api/include/ddk/newdev.h b/winsup/w32api/include/ddk/newdev.h index 9e3177900..9b4b6d1bb 100644 --- a/winsup/w32api/include/ddk/newdev.h +++ b/winsup/w32api/include/ddk/newdev.h @@ -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 diff --git a/winsup/w32api/include/ddk/ntapi.h b/winsup/w32api/include/ddk/ntapi.h index 943452a52..86237722d 100644 --- a/winsup/w32api/include/ddk/ntapi.h +++ b/winsup/w32api/include/ddk/ntapi.h @@ -656,57 +656,57 @@ NTOSAPI NTSTATUS NTAPI NtQuerySystemInformation( - IN SYSTEM_INFORMATION_CLASS SystemInformationClass, - IN OUT PVOID SystemInformation, - IN ULONG SystemInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN OUT*/ PVOID SystemInformation, + /*IN*/ ULONG SystemInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwQuerySystemInformation( - IN SYSTEM_INFORMATION_CLASS SystemInformationClass, - IN OUT PVOID SystemInformation, - IN ULONG SystemInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN OUT*/ PVOID SystemInformation, + /*IN*/ ULONG SystemInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTAPI NTSTATUS NtQueryFullAttributesFile( - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation); + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PFILE_NETWORK_OPEN_INFORMATION FileInformation); NTOSAPI NTAPI NTSTATUS ZwQueryFullAttributesFile( - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation); + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PFILE_NETWORK_OPEN_INFORMATION FileInformation); NTOSAPI NTSTATUS NTAPI ZwSetSystemInformation( - IN SYSTEM_INFORMATION_CLASS SystemInformationClass, - IN OUT PVOID SystemInformation, - IN ULONG SystemInformationLength); + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN OUT*/ PVOID SystemInformation, + /*IN*/ ULONG SystemInformationLength); NTOSAPI NTSTATUS NTAPI ZwQuerySystemEnvironmentValue( - IN PUNICODE_STRING Name, - OUT PVOID Value, - IN ULONG ValueLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ PUNICODE_STRING Name, + /*OUT*/ PVOID Value, + /*IN*/ ULONG ValueLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwSetSystemEnvironmentValue( - IN PUNICODE_STRING Name, - IN PUNICODE_STRING Value); + /*IN*/ PUNICODE_STRING Name, + /*IN*/ PUNICODE_STRING Value); typedef enum _SHUTDOWN_ACTION { ShutdownNoReboot, @@ -718,7 +718,7 @@ NTOSAPI NTSTATUS NTAPI NtShutdownSystem( - IN SHUTDOWN_ACTION Action); + /*IN*/ SHUTDOWN_ACTION Action); typedef enum _DEBUG_CONTROL_CODE { DebugGetTraceInformation = 1, @@ -735,12 +735,12 @@ NTOSAPI NTSTATUS NTAPI ZwSystemDebugControl( - IN DEBUG_CONTROL_CODE ControlCode, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ DEBUG_CONTROL_CODE ControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); @@ -758,20 +758,20 @@ NTOSAPI NTSTATUS NTAPI ZwQueryObject( - IN HANDLE ObjectHandle, - IN OBJECT_INFORMATION_CLASS ObjectInformationClass, - OUT PVOID ObjectInformation, - IN ULONG ObjectInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*OUT*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwSetInformationObject( - IN HANDLE ObjectHandle, - IN OBJECT_INFORMATION_CLASS ObjectInformationClass, - IN PVOID ObjectInformation, - IN ULONG ObjectInformationLength); + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*IN*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength); /* OBJECT_BASIC_INFORMATION.Attributes constants */ /* also in winbase.h */ @@ -828,81 +828,81 @@ NTOSAPI NTSTATUS NTAPI NtDuplicateObject( - IN HANDLE SourceProcessHandle, - IN HANDLE SourceHandle, - IN HANDLE TargetProcessHandle, - OUT PHANDLE TargetHandle OPTIONAL, - IN ACCESS_MASK DesiredAccess, - IN ULONG Attributes, - IN ULONG Options); + /*IN*/ HANDLE SourceProcessHandle, + /*IN*/ HANDLE SourceHandle, + /*IN*/ HANDLE TargetProcessHandle, + /*OUT*/ PHANDLE TargetHandle /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG Attributes, + /*IN*/ ULONG Options); NTOSAPI NTSTATUS NTAPI ZwDuplicateObject( - IN HANDLE SourceProcessHandle, - IN HANDLE SourceHandle, - IN HANDLE TargetProcessHandle, - OUT PHANDLE TargetHandle OPTIONAL, - IN ACCESS_MASK DesiredAccess, - IN ULONG Attributes, - IN ULONG Options); + /*IN*/ HANDLE SourceProcessHandle, + /*IN*/ HANDLE SourceHandle, + /*IN*/ HANDLE TargetProcessHandle, + /*OUT*/ PHANDLE TargetHandle /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG Attributes, + /*IN*/ ULONG Options); NTOSAPI NTSTATUS NTAPI NtQuerySecurityObject( - IN HANDLE Handle, - IN SECURITY_INFORMATION SecurityInformation, - OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG SecurityDescriptorLength, - OUT PULONG ReturnLength); + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG SecurityDescriptorLength, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwQuerySecurityObject( - IN HANDLE Handle, - IN SECURITY_INFORMATION SecurityInformation, - OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG SecurityDescriptorLength, - OUT PULONG ReturnLength); + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG SecurityDescriptorLength, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI NtSetSecurityObject( - IN HANDLE Handle, - IN SECURITY_INFORMATION SecurityInformation, - IN PSECURITY_DESCRIPTOR SecurityDescriptor); + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor); NTOSAPI NTSTATUS NTAPI ZwSetSecurityObject( - IN HANDLE Handle, - IN SECURITY_INFORMATION SecurityInformation, - IN PSECURITY_DESCRIPTOR SecurityDescriptor); + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor); NTOSAPI NTSTATUS NTAPI ZwOpenDirectoryObject( - OUT PHANDLE DirectoryHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwQueryDirectoryObject( - IN HANDLE DirectoryHandle, - OUT PVOID Buffer, - IN ULONG BufferLength, - IN BOOLEAN ReturnSingleEntry, - IN BOOLEAN RestartScan, - IN OUT PULONG Context, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE DirectoryHandle, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ BOOLEAN RestartScan, + /*IN OUT*/ PULONG Context, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); typedef struct _DIRECTORY_BASIC_INFORMATION { UNICODE_STRING ObjectName; @@ -913,10 +913,10 @@ NTOSAPI NTSTATUS NTAPI ZwCreateSymbolicLinkObject( - OUT PHANDLE SymbolicLinkHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PUNICODE_STRING TargetName); + /*OUT*/ PHANDLE SymbolicLinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PUNICODE_STRING TargetName); @@ -934,52 +934,52 @@ NTOSAPI NTSTATUS NTAPI NtAllocateVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN OUT PULONG AllocationSize, - IN ULONG AllocationType, - IN ULONG Protect); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN OUT*/ PULONG AllocationSize, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect); NTOSAPI NTSTATUS NTAPI ZwAllocateVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN OUT PULONG AllocationSize, - IN ULONG AllocationType, - IN ULONG Protect); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN OUT*/ PULONG AllocationSize, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect); NTOSAPI NTSTATUS NTAPI NtFreeVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG FreeSize, - IN ULONG FreeType); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FreeSize, + /*IN*/ ULONG FreeType); NTOSAPI NTSTATUS NTAPI ZwFreeVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG FreeSize, - IN ULONG FreeType); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FreeSize, + /*IN*/ ULONG FreeType); NTOSAPI NTSTATUS NTAPI ZwQueryVirtualMemory( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress, - IN MEMORY_INFORMATION_CLASS MemoryInformationClass, - OUT PVOID MemoryInformation, - IN ULONG MemoryInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ MEMORY_INFORMATION_CLASS MemoryInformationClass, + /*OUT*/ PVOID MemoryInformation, + /*IN*/ ULONG MemoryInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); /* MEMORY_WORKING_SET_LIST.WorkingSetList constants */ #define WSLE_PAGE_READONLY 0x001 @@ -1009,110 +1009,110 @@ NTOSAPI NTSTATUS NTAPI ZwLockVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG LockSize, - IN ULONG LockType); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG LockSize, + /*IN*/ ULONG LockType); NTOSAPI NTSTATUS NTAPI ZwUnlockVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG LockSize, - IN ULONG LockType); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG LockSize, + /*IN*/ ULONG LockType); NTOSAPI NTSTATUS NTAPI ZwReadVirtualMemory( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress, - OUT PVOID Buffer, - IN ULONG BufferLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwWriteVirtualMemory( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress, - IN PVOID Buffer, - IN ULONG BufferLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwProtectVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG ProtectSize, - IN ULONG NewProtect, - OUT PULONG OldProtect); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG ProtectSize, + /*IN*/ ULONG NewProtect, + /*OUT*/ PULONG OldProtect); NTOSAPI NTSTATUS NTAPI ZwFlushVirtualMemory( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG FlushSize, - OUT PIO_STATUS_BLOCK IoStatusBlock); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FlushSize, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); NTOSAPI NTSTATUS NTAPI ZwAllocateUserPhysicalPages( - IN HANDLE ProcessHandle, - IN PULONG NumberOfPages, - OUT PULONG PageFrameNumbers); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PULONG NumberOfPages, + /*OUT*/ PULONG PageFrameNumbers); NTOSAPI NTSTATUS NTAPI ZwFreeUserPhysicalPages( - IN HANDLE ProcessHandle, - IN OUT PULONG NumberOfPages, - IN PULONG PageFrameNumbers); + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); NTOSAPI NTSTATUS NTAPI ZwMapUserPhysicalPages( - IN PVOID BaseAddress, - IN PULONG NumberOfPages, - IN PULONG PageFrameNumbers); + /*IN*/ PVOID BaseAddress, + /*IN*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); NTOSAPI NTSTATUS NTAPI ZwMapUserPhysicalPagesScatter( - IN PVOID *BaseAddresses, - IN PULONG NumberOfPages, - IN PULONG PageFrameNumbers); + /*IN*/ PVOID *BaseAddresses, + /*IN*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); NTOSAPI NTSTATUS NTAPI ZwGetWriteWatch( - IN HANDLE ProcessHandle, - IN ULONG Flags, - IN PVOID BaseAddress, - IN ULONG RegionSize, - OUT PULONG Buffer, - IN OUT PULONG BufferEntries, - OUT PULONG Granularity); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ULONG Flags, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG RegionSize, + /*OUT*/ PULONG Buffer, + /*IN OUT*/ PULONG BufferEntries, + /*OUT*/ PULONG Granularity); NTOSAPI NTSTATUS NTAPI ZwResetWriteWatch( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress, - IN ULONG RegionSize); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG RegionSize); @@ -1128,49 +1128,49 @@ NTOSAPI NTSTATUS NTAPI NtCreateSection( - OUT PHANDLE SectionHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PLARGE_INTEGER SectionSize OPTIONAL, - IN ULONG Protect, - IN ULONG Attributes, - IN HANDLE FileHandle); + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PLARGE_INTEGER SectionSize /*OPTIONAL*/, + /*IN*/ ULONG Protect, + /*IN*/ ULONG Attributes, + /*IN*/ HANDLE FileHandle); NTOSAPI NTSTATUS NTAPI ZwCreateSection( - OUT PHANDLE SectionHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PLARGE_INTEGER SectionSize OPTIONAL, - IN ULONG Protect, - IN ULONG Attributes, - IN HANDLE FileHandle); + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PLARGE_INTEGER SectionSize /*OPTIONAL*/, + /*IN*/ ULONG Protect, + /*IN*/ ULONG Attributes, + /*IN*/ HANDLE FileHandle); NTOSAPI NTSTATUS NTAPI ZwQuerySection( - IN HANDLE SectionHandle, - IN SECTION_INFORMATION_CLASS SectionInformationClass, - OUT PVOID SectionInformation, - IN ULONG SectionInformationLength, - OUT PULONG ResultLength OPTIONAL); + /*IN*/ HANDLE SectionHandle, + /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, + /*OUT*/ PVOID SectionInformation, + /*IN*/ ULONG SectionInformationLength, + /*OUT*/ PULONG ResultLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwExtendSection( - IN HANDLE SectionHandle, - IN PLARGE_INTEGER SectionSize); + /*IN*/ HANDLE SectionHandle, + /*IN*/ PLARGE_INTEGER SectionSize); NTOSAPI NTSTATUS NTAPI ZwAreMappedFilesTheSame( - IN PVOID Address1, - IN PVOID Address2); + /*IN*/ PVOID Address1, + /*IN*/ PVOID Address2); @@ -1189,68 +1189,68 @@ NTOSAPI NTSTATUS NTAPI ZwCreateThread( - OUT PHANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN HANDLE ProcessHandle, - OUT PCLIENT_ID ClientId, - IN PCONTEXT ThreadContext, - IN PUSER_STACK UserStack, - IN BOOLEAN CreateSuspended); + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ HANDLE ProcessHandle, + /*OUT*/ PCLIENT_ID ClientId, + /*IN*/ PCONTEXT ThreadContext, + /*IN*/ PUSER_STACK UserStack, + /*IN*/ BOOLEAN CreateSuspended); NTOSAPI NTSTATUS NTAPI NtOpenThread( - OUT PHANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PCLIENT_ID ClientId); + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId); NTOSAPI NTSTATUS NTAPI ZwOpenThread( - OUT PHANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PCLIENT_ID ClientId); + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId); NTOSAPI NTSTATUS NTAPI ZwTerminateThread( - IN HANDLE ThreadHandle OPTIONAL, - IN NTSTATUS ExitStatus); + /*IN*/ HANDLE ThreadHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus); NTOSAPI NTSTATUS NTAPI NtQueryInformationThread( - IN HANDLE ThreadHandle, - IN THREADINFOCLASS ThreadInformationClass, - OUT PVOID ThreadInformation, - IN ULONG ThreadInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*OUT*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwQueryInformationThread( - IN HANDLE ThreadHandle, - IN THREADINFOCLASS ThreadInformationClass, - OUT PVOID ThreadInformation, - IN ULONG ThreadInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*OUT*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI NtSetInformationThread( - IN HANDLE ThreadHandle, - IN THREADINFOCLASS ThreadInformationClass, - IN PVOID ThreadInformation, - IN ULONG ThreadInformationLength); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*IN*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength); typedef struct _THREAD_BASIC_INFORMATION { NTSTATUS ExitStatus; @@ -1272,39 +1272,39 @@ NTOSAPI NTSTATUS NTAPI ZwSuspendThread( - IN HANDLE ThreadHandle, - OUT PULONG PreviousSuspendCount OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwResumeThread( - IN HANDLE ThreadHandle, - OUT PULONG PreviousSuspendCount OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwGetContextThread( - IN HANDLE ThreadHandle, - OUT PCONTEXT Context); + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PCONTEXT Context); NTOSAPI NTSTATUS NTAPI ZwSetContextThread( - IN HANDLE ThreadHandle, - IN PCONTEXT Context); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ PCONTEXT Context); NTOSAPI NTSTATUS NTAPI ZwQueueApcThread( - IN HANDLE ThreadHandle, - IN PKNORMAL_ROUTINE ApcRoutine, - IN PVOID ApcContext OPTIONAL, - IN PVOID Argument1 OPTIONAL, - IN PVOID Argument2 OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ PKNORMAL_ROUTINE ApcRoutine, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*IN*/ PVOID Argument1 /*OPTIONAL*/, + /*IN*/ PVOID Argument2 /*OPTIONAL*/); NTOSAPI NTSTATUS @@ -1316,34 +1316,34 @@ NTOSAPI NTSTATUS NTAPI ZwAlertThread( - IN HANDLE ThreadHandle); + /*IN*/ HANDLE ThreadHandle); NTOSAPI NTSTATUS NTAPI ZwAlertResumeThread( - IN HANDLE ThreadHandle, - OUT PULONG PreviousSuspendCount OPTIONAL); + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwRegisterThreadTerminatePort( - IN HANDLE PortHandle); + /*IN*/ HANDLE PortHandle); NTOSAPI NTSTATUS NTAPI ZwImpersonateThread( - IN HANDLE ThreadHandle, - IN HANDLE TargetThreadHandle, - IN PSECURITY_QUALITY_OF_SERVICE SecurityQos); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ HANDLE TargetThreadHandle, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos); NTOSAPI NTSTATUS NTAPI ZwImpersonateAnonymousToken( - IN HANDLE ThreadHandle); + /*IN*/ HANDLE ThreadHandle); @@ -1354,62 +1354,62 @@ NTOSAPI NTSTATUS NTAPI ZwCreateProcess( - OUT PHANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN HANDLE InheritFromProcessHandle, - IN BOOLEAN InheritHandles, - IN HANDLE SectionHandle OPTIONAL, - IN HANDLE DebugPort OPTIONAL, - IN HANDLE ExceptionPort OPTIONAL); + /*OUT*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ HANDLE InheritFromProcessHandle, + /*IN*/ BOOLEAN InheritHandles, + /*IN*/ HANDLE SectionHandle /*OPTIONAL*/, + /*IN*/ HANDLE DebugPort /*OPTIONAL*/, + /*IN*/ HANDLE ExceptionPort /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwCreateProcess( - OUT PHANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN HANDLE InheritFromProcessHandle, - IN BOOLEAN InheritHandles, - IN HANDLE SectionHandle OPTIONAL, - IN HANDLE DebugPort OPTIONAL, - IN HANDLE ExceptionPort OPTIONAL); + /*OUT*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ HANDLE InheritFromProcessHandle, + /*IN*/ BOOLEAN InheritHandles, + /*IN*/ HANDLE SectionHandle /*OPTIONAL*/, + /*IN*/ HANDLE DebugPort /*OPTIONAL*/, + /*IN*/ HANDLE ExceptionPort /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwTerminateProcess( - IN HANDLE ProcessHandle OPTIONAL, - IN NTSTATUS ExitStatus); + /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus); NTOSAPI NTSTATUS NTAPI ZwQueryInformationProcess( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - OUT PVOID ProcessInformation, - IN ULONG ProcessInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*OUT*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI NtSetInformationProcess( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - IN PVOID ProcessInformation, - IN ULONG ProcessInformationLength); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*IN*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength); NTOSAPI NTSTATUS NTAPI ZwSetInformationProcess( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - IN PVOID ProcessInformation, - IN ULONG ProcessInformationLength); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*IN*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength); typedef struct _PROCESS_BASIC_INFORMATION { NTSTATUS ExitStatus; @@ -1521,21 +1521,21 @@ typedef struct _RTL_USER_PROCESS_PARAMETERS { NTSTATUS NTAPI RtlCreateProcessParameters( - OUT PRTL_USER_PROCESS_PARAMETERS *ProcessParameters, - IN PUNICODE_STRING ImageFile, - IN PUNICODE_STRING DllPath OPTIONAL, - IN PUNICODE_STRING CurrentDirectory OPTIONAL, - IN PUNICODE_STRING CommandLine OPTIONAL, - IN PWSTR Environment OPTIONAL, - IN PUNICODE_STRING WindowTitle OPTIONAL, - IN PUNICODE_STRING DesktopInfo OPTIONAL, - IN PUNICODE_STRING ShellInfo OPTIONAL, - IN PUNICODE_STRING RuntimeInfo OPTIONAL); + /*OUT*/ PRTL_USER_PROCESS_PARAMETERS *ProcessParameters, + /*IN*/ PUNICODE_STRING ImageFile, + /*IN*/ PUNICODE_STRING DllPath /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING CurrentDirectory /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING CommandLine /*OPTIONAL*/, + /*IN*/ PWSTR Environment /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING WindowTitle /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING DesktopInfo /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING ShellInfo /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING RuntimeInfo /*OPTIONAL*/); NTSTATUS NTAPI RtlDestroyProcessParameters( - IN PRTL_USER_PROCESS_PARAMETERS ProcessParameters); + /*IN*/ PRTL_USER_PROCESS_PARAMETERS ProcessParameters); typedef struct _DEBUG_BUFFER { HANDLE SectionHandle; @@ -1559,8 +1559,8 @@ typedef struct _DEBUG_BUFFER { PDEBUG_BUFFER NTAPI RtlCreateQueryDebugBuffer( - IN ULONG Size, - IN BOOLEAN EventPair); + /*IN*/ ULONG Size, + /*IN*/ BOOLEAN EventPair); /* RtlQueryProcessDebugInformation.DebugInfoClassMask constants */ #define PDI_MODULES 0x01 @@ -1573,14 +1573,14 @@ RtlCreateQueryDebugBuffer( NTSTATUS NTAPI RtlQueryProcessDebugInformation( - IN ULONG ProcessId, - IN ULONG DebugInfoClassMask, - IN OUT PDEBUG_BUFFER DebugBuffer); + /*IN*/ ULONG ProcessId, + /*IN*/ ULONG DebugInfoClassMask, + /*IN OUT*/ PDEBUG_BUFFER DebugBuffer); NTSTATUS NTAPI RtlDestroyQueryDebugBuffer( - IN PDEBUG_BUFFER DebugBuffer); + /*IN*/ PDEBUG_BUFFER DebugBuffer); /* DEBUG_MODULE_INFORMATION.Flags constants */ #define LDRP_STATIC_LINK 0x00000002 @@ -1644,50 +1644,50 @@ NTOSAPI NTSTATUS NTAPI ZwCreateJobObject( - OUT PHANDLE JobHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE JobHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwOpenJobObject( - OUT PHANDLE JobHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE JobHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwTerminateJobObject( - IN HANDLE JobHandle, - IN NTSTATUS ExitStatus); + /*IN*/ HANDLE JobHandle, + /*IN*/ NTSTATUS ExitStatus); NTOSAPI NTSTATUS NTAPI ZwAssignProcessToJobObject( - IN HANDLE JobHandle, - IN HANDLE ProcessHandle); + /*IN*/ HANDLE JobHandle, + /*IN*/ HANDLE ProcessHandle); NTOSAPI NTSTATUS NTAPI ZwQueryInformationJobObject( - IN HANDLE JobHandle, - IN JOBOBJECTINFOCLASS JobInformationClass, - OUT PVOID JobInformation, - IN ULONG JobInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE JobHandle, + /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, + /*OUT*/ PVOID JobInformation, + /*IN*/ ULONG JobInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwSetInformationJobObject( - IN HANDLE JobHandle, - IN JOBOBJECTINFOCLASS JobInformationClass, - IN PVOID JobInformation, - IN ULONG JobInformationLength); + /*IN*/ HANDLE JobHandle, + /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, + /*IN*/ PVOID JobInformation, + /*IN*/ ULONG JobInformationLength); /* Tokens */ @@ -1696,149 +1696,149 @@ NTOSAPI NTSTATUS NTAPI ZwCreateToken( -OUT PHANDLE TokenHandle, -IN ACCESS_MASK DesiredAccess, -IN POBJECT_ATTRIBUTES ObjectAttributes, -IN TOKEN_TYPE Type, -IN PLUID AuthenticationId, -IN PLARGE_INTEGER ExpirationTime, -IN PTOKEN_USER User, -IN PTOKEN_GROUPS Groups, -IN PTOKEN_PRIVILEGES Privileges, -IN PTOKEN_OWNER Owner, -IN PTOKEN_PRIMARY_GROUP PrimaryGroup, -IN PTOKEN_DEFAULT_DACL DefaultDacl, -IN PTOKEN_SOURCE Source + /*OUT*/ PHANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ TOKEN_TYPE Type, + /*IN*/ PLUID AuthenticationId, + /*IN*/ PLARGE_INTEGER ExpirationTime, + /*IN*/ PTOKEN_USER User, + /*IN*/ PTOKEN_GROUPS Groups, + /*IN*/ PTOKEN_PRIVILEGES Privileges, + /*IN*/ PTOKEN_OWNER Owner, + /*IN*/ PTOKEN_PRIMARY_GROUP PrimaryGroup, + /*IN*/ PTOKEN_DEFAULT_DACL DefaultDacl, + /*IN*/ PTOKEN_SOURCE Source ); NTOSAPI NTSTATUS NTAPI NtOpenProcessToken( - IN HANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE TokenHandle); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE TokenHandle); NTOSAPI NTSTATUS NTAPI ZwOpenProcessToken( - IN HANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE TokenHandle); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE TokenHandle); NTOSAPI NTSTATUS NTAPI NtOpenThreadToken( - IN HANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN BOOLEAN OpenAsSelf, - OUT PHANDLE TokenHandle); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ BOOLEAN OpenAsSelf, + /*OUT*/ PHANDLE TokenHandle); NTOSAPI NTSTATUS NTAPI ZwOpenThreadToken( - IN HANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN BOOLEAN OpenAsSelf, - OUT PHANDLE TokenHandle); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ BOOLEAN OpenAsSelf, + /*OUT*/ PHANDLE TokenHandle); NTOSAPI NTSTATUS NTAPI NtDuplicateToken( - IN HANDLE ExistingTokenHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN EffectiveOnly, - IN TOKEN_TYPE TokenType, - OUT PHANDLE NewTokenHandle); + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN EffectiveOnly, + /*IN*/ TOKEN_TYPE TokenType, + /*OUT*/ PHANDLE NewTokenHandle); NTOSAPI NTSTATUS NTAPI ZwDuplicateToken( - IN HANDLE ExistingTokenHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN EffectiveOnly, - IN TOKEN_TYPE TokenType, - OUT PHANDLE NewTokenHandle); + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN EffectiveOnly, + /*IN*/ TOKEN_TYPE TokenType, + /*OUT*/ PHANDLE NewTokenHandle); NTOSAPI NTSTATUS NTAPI ZwFilterToken( - IN HANDLE ExistingTokenHandle, - IN ULONG Flags, - IN PTOKEN_GROUPS SidsToDisable, - IN PTOKEN_PRIVILEGES PrivilegesToDelete, - IN PTOKEN_GROUPS SidsToRestricted, - OUT PHANDLE NewTokenHandle); + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ULONG Flags, + /*IN*/ PTOKEN_GROUPS SidsToDisable, + /*IN*/ PTOKEN_PRIVILEGES PrivilegesToDelete, + /*IN*/ PTOKEN_GROUPS SidsToRestricted, + /*OUT*/ PHANDLE NewTokenHandle); NTOSAPI NTSTATUS NTAPI NtAdjustPrivilegesToken( - IN HANDLE TokenHandle, - IN BOOLEAN DisableAllPrivileges, - IN PTOKEN_PRIVILEGES NewState, - IN ULONG BufferLength, - OUT PTOKEN_PRIVILEGES PreviousState OPTIONAL, - OUT PULONG ReturnLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN DisableAllPrivileges, + /*IN*/ PTOKEN_PRIVILEGES NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_PRIVILEGES PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwAdjustPrivilegesToken( - IN HANDLE TokenHandle, - IN BOOLEAN DisableAllPrivileges, - IN PTOKEN_PRIVILEGES NewState, - IN ULONG BufferLength, - OUT PTOKEN_PRIVILEGES PreviousState OPTIONAL, - OUT PULONG ReturnLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN DisableAllPrivileges, + /*IN*/ PTOKEN_PRIVILEGES NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_PRIVILEGES PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwAdjustGroupsToken( - IN HANDLE TokenHandle, - IN BOOLEAN ResetToDefault, - IN PTOKEN_GROUPS NewState, - IN ULONG BufferLength, - OUT PTOKEN_GROUPS PreviousState OPTIONAL, - OUT PULONG ReturnLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN ResetToDefault, + /*IN*/ PTOKEN_GROUPS NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_GROUPS PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI NtQueryInformationToken( - IN HANDLE TokenHandle, - IN TOKEN_INFORMATION_CLASS TokenInformationClass, - OUT PVOID TokenInformation, - IN ULONG TokenInformationLength, - OUT PULONG ReturnLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*OUT*/ PVOID TokenInformation, + /*IN*/ ULONG TokenInformationLength, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwQueryInformationToken( - IN HANDLE TokenHandle, - IN TOKEN_INFORMATION_CLASS TokenInformationClass, - OUT PVOID TokenInformation, - IN ULONG TokenInformationLength, - OUT PULONG ReturnLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*OUT*/ PVOID TokenInformation, + /*IN*/ ULONG TokenInformationLength, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwSetInformationToken( - IN HANDLE TokenHandle, - IN TOKEN_INFORMATION_CLASS TokenInformationClass, - IN PVOID TokenInformation, - IN ULONG TokenInformationLength); + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*IN*/ PVOID TokenInformation, + /*IN*/ ULONG TokenInformationLength); @@ -1849,43 +1849,43 @@ NTOSAPI NTSTATUS NTAPI ZwQuerySystemTime( - OUT PLARGE_INTEGER CurrentTime); + /*OUT*/ PLARGE_INTEGER CurrentTime); NTOSAPI NTSTATUS NTAPI ZwSetSystemTime( - IN PLARGE_INTEGER NewTime, - OUT PLARGE_INTEGER OldTime OPTIONAL); + /*IN*/ PLARGE_INTEGER NewTime, + /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwQueryPerformanceCounter( - OUT PLARGE_INTEGER PerformanceCount, - OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL); + /*OUT*/ PLARGE_INTEGER PerformanceCount, + /*OUT*/ PLARGE_INTEGER PerformanceFrequency /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwQueryPerformanceCounter( - OUT PLARGE_INTEGER PerformanceCount, - OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL); + /*OUT*/ PLARGE_INTEGER PerformanceCount, + /*OUT*/ PLARGE_INTEGER PerformanceFrequency /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwQueryTimerResolution( - OUT PULONG CoarsestResolution, - OUT PULONG FinestResolution, - OUT PULONG ActualResolution); + /*OUT*/ PULONG CoarsestResolution, + /*OUT*/ PULONG FinestResolution, + /*OUT*/ PULONG ActualResolution); NTOSAPI NTSTATUS NTAPI ZwDelayExecution( - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Interval); + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Interval); NTOSAPI NTSTATUS @@ -1908,41 +1908,41 @@ NTOSAPI NTSTATUS NTAPI ZwCreateProfile( - OUT PHANDLE ProfileHandle, - IN HANDLE ProcessHandle, - IN PVOID Base, - IN ULONG Size, - IN ULONG BucketShift, - IN PULONG Buffer, - IN ULONG BufferLength, - IN KPROFILE_SOURCE Source, - IN ULONG ProcessorMask); + /*OUT*/ PHANDLE ProfileHandle, + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID Base, + /*IN*/ ULONG Size, + /*IN*/ ULONG BucketShift, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ KPROFILE_SOURCE Source, + /*IN*/ ULONG ProcessorMask); NTOSAPI NTSTATUS NTAPI ZwSetIntervalProfile( - IN ULONG Interval, - IN KPROFILE_SOURCE Source); + /*IN*/ ULONG Interval, + /*IN*/ KPROFILE_SOURCE Source); NTOSAPI NTSTATUS NTAPI ZwQueryIntervalProfile( - IN KPROFILE_SOURCE Source, - OUT PULONG Interval); + /*IN*/ KPROFILE_SOURCE Source, + /*OUT*/ PULONG Interval); NTOSAPI NTSTATUS NTAPI ZwStartProfile( - IN HANDLE ProfileHandle); + /*IN*/ HANDLE ProfileHandle); NTOSAPI NTSTATUS NTAPI ZwStopProfile( - IN HANDLE ProfileHandle); + /*IN*/ HANDLE ProfileHandle); /* Local Procedure Call (LPC) */ @@ -1994,162 +1994,162 @@ NTOSAPI NTSTATUS NTAPI ZwCreatePort( - OUT PHANDLE PortHandle, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN ULONG MaxDataSize, - IN ULONG MaxMessageSize, - IN ULONG Reserved); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG MaxDataSize, + /*IN*/ ULONG MaxMessageSize, + /*IN*/ ULONG Reserved); NTOSAPI NTSTATUS NTAPI ZwCreateWaitablePort( - OUT PHANDLE PortHandle, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN ULONG MaxDataSize, - IN ULONG MaxMessageSize, - IN ULONG Reserved); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG MaxDataSize, + /*IN*/ ULONG MaxMessageSize, + /*IN*/ ULONG Reserved); NTOSAPI NTSTATUS NTAPI NtConnectPort( - OUT PHANDLE PortHandle, - IN PUNICODE_STRING PortName, - IN PSECURITY_QUALITY_OF_SERVICE SecurityQos, - IN OUT PLPC_SECTION_WRITE WriteSection OPTIONAL, - IN OUT PLPC_SECTION_READ ReadSection OPTIONAL, - OUT PULONG MaxMessageSize OPTIONAL, - IN OUT PVOID ConnectData OPTIONAL, - IN OUT PULONG ConnectDataLength OPTIONAL); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ PUNICODE_STRING PortName, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos, + /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, + /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/, + /*OUT*/ PULONG MaxMessageSize /*OPTIONAL*/, + /*IN OUT*/ PVOID ConnectData /*OPTIONAL*/, + /*IN OUT*/ PULONG ConnectDataLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwConnectPort( - OUT PHANDLE PortHandle, - IN PUNICODE_STRING PortName, - IN PSECURITY_QUALITY_OF_SERVICE SecurityQos, - IN OUT PLPC_SECTION_WRITE WriteSection OPTIONAL, - IN OUT PLPC_SECTION_READ ReadSection OPTIONAL, - OUT PULONG MaxMessageSize OPTIONAL, - IN OUT PVOID ConnectData OPTIONAL, - IN OUT PULONG ConnectDataLength OPTIONAL); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ PUNICODE_STRING PortName, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos, + /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, + /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/, + /*OUT*/ PULONG MaxMessageSize /*OPTIONAL*/, + /*IN OUT*/ PVOID ConnectData /*OPTIONAL*/, + /*IN OUT*/ PULONG ConnectDataLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwConnectPort( - OUT PHANDLE PortHandle, - IN PUNICODE_STRING PortName, - IN PSECURITY_QUALITY_OF_SERVICE SecurityQos, - IN OUT PLPC_SECTION_WRITE WriteSection OPTIONAL, - IN OUT PLPC_SECTION_READ ReadSection OPTIONAL, - OUT PULONG MaxMessageSize OPTIONAL, - IN OUT PVOID ConnectData OPTIONAL, - IN OUT PULONG ConnectDataLength OPTIONAL); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ PUNICODE_STRING PortName, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos, + /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, + /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/, + /*OUT*/ PULONG MaxMessageSize /*OPTIONAL*/, + /*IN OUT*/ PVOID ConnectData /*OPTIONAL*/, + /*IN OUT*/ PULONG ConnectDataLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwListenPort( - IN HANDLE PortHandle, - OUT PLPC_MESSAGE Message); + /*IN*/ HANDLE PortHandle, + /*OUT*/ PLPC_MESSAGE Message); NTOSAPI NTSTATUS NTAPI ZwAcceptConnectPort( - OUT PHANDLE PortHandle, - IN ULONG PortIdentifier, - IN PLPC_MESSAGE Message, - IN BOOLEAN Accept, - IN OUT PLPC_SECTION_WRITE WriteSection OPTIONAL, - IN OUT PLPC_SECTION_READ ReadSection OPTIONAL); + /*OUT*/ PHANDLE PortHandle, + /*IN*/ ULONG PortIdentifier, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ BOOLEAN Accept, + /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, + /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwCompleteConnectPort( - IN HANDLE PortHandle); + /*IN*/ HANDLE PortHandle); NTOSAPI NTSTATUS NTAPI NtRequestPort( - IN HANDLE PortHandle, - IN PLPC_MESSAGE RequestMessage); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE RequestMessage); NTOSAPI NTSTATUS NTAPI NtRequestWaitReplyPort( - IN HANDLE PortHandle, - IN PLPC_MESSAGE RequestMessage, - OUT PLPC_MESSAGE ReplyMessage); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE RequestMessage, + /*OUT*/ PLPC_MESSAGE ReplyMessage); NTOSAPI NTSTATUS NTAPI ZwRequestWaitReplyPort( - IN HANDLE PortHandle, - IN PLPC_MESSAGE RequestMessage, - OUT PLPC_MESSAGE ReplyMessage); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE RequestMessage, + /*OUT*/ PLPC_MESSAGE ReplyMessage); NTOSAPI NTSTATUS NTAPI ZwReplyPort( - IN HANDLE PortHandle, - IN PLPC_MESSAGE ReplyMessage); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE ReplyMessage); NTOSAPI NTSTATUS NTAPI ZwReplyWaitReplyPort( - IN HANDLE PortHandle, - IN OUT PLPC_MESSAGE ReplyMessage); + /*IN*/ HANDLE PortHandle, + /*IN OUT*/ PLPC_MESSAGE ReplyMessage); NTOSAPI NTSTATUS NTAPI ZwReplyWaitReceivePort( - IN HANDLE PortHandle, - OUT PULONG PortIdentifier OPTIONAL, - IN PLPC_MESSAGE ReplyMessage OPTIONAL, - OUT PLPC_MESSAGE Message); + /*IN*/ HANDLE PortHandle, + /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, + /*IN*/ PLPC_MESSAGE ReplyMessage /*OPTIONAL*/, + /*OUT*/ PLPC_MESSAGE Message); NTOSAPI NTSTATUS NTAPI ZwReplyWaitReceivePortEx( - IN HANDLE PortHandle, - OUT PULONG PortIdentifier OPTIONAL, - IN PLPC_MESSAGE ReplyMessage OPTIONAL, - OUT PLPC_MESSAGE Message, - IN PLARGE_INTEGER Timeout); + /*IN*/ HANDLE PortHandle, + /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, + /*IN*/ PLPC_MESSAGE ReplyMessage /*OPTIONAL*/, + /*OUT*/ PLPC_MESSAGE Message, + /*IN*/ PLARGE_INTEGER Timeout); NTOSAPI NTSTATUS NTAPI ZwReadRequestData( - IN HANDLE PortHandle, - IN PLPC_MESSAGE Message, - IN ULONG Index, - OUT PVOID Buffer, - IN ULONG BufferLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ ULONG Index, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwWriteRequestData( - IN HANDLE PortHandle, - IN PLPC_MESSAGE Message, - IN ULONG Index, - IN PVOID Buffer, - IN ULONG BufferLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ ULONG Index, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); typedef enum _PORT_INFORMATION_CLASS { PortBasicInformation @@ -2159,18 +2159,18 @@ NTOSAPI NTSTATUS NTAPI ZwQueryInformationPort( - IN HANDLE PortHandle, - IN PORT_INFORMATION_CLASS PortInformationClass, - OUT PVOID PortInformation, - IN ULONG PortInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE PortHandle, + /*IN*/ PORT_INFORMATION_CLASS PortInformationClass, + /*OUT*/ PVOID PortInformation, + /*IN*/ ULONG PortInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwImpersonateClientOfPort( - IN HANDLE PortHandle, - IN PLPC_MESSAGE Message); + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message); @@ -2181,55 +2181,55 @@ NTOSAPI NTSTATUS NTAPI NtDeleteFile( - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwDeleteFile( - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwFlushBuffersFile( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock); + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); NTOSAPI NTSTATUS NTAPI ZwCancelIoFile( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock); + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); NTOSAPI NTSTATUS NTAPI ZwReadFileScatter( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PFILE_SEGMENT_ELEMENT Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PFILE_SEGMENT_ELEMENT Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); NTOSAPI NTSTATUS NTAPI ZwWriteFileGather( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PFILE_SEGMENT_ELEMENT Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PFILE_SEGMENT_ELEMENT Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); @@ -2240,60 +2240,60 @@ NTOSAPI NTSTATUS NTAPI ZwSaveKey( - IN HANDLE KeyHandle, - IN HANDLE FileHandle); + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle); NTOSAPI NTSTATUS NTAPI ZwSaveMergedKeys( - IN HANDLE KeyHandle1, - IN HANDLE KeyHandle2, - IN HANDLE FileHandle); + /*IN*/ HANDLE KeyHandle1, + /*IN*/ HANDLE KeyHandle2, + /*IN*/ HANDLE FileHandle); NTOSAPI NTSTATUS NTAPI ZwRestoreKey( - IN HANDLE KeyHandle, - IN HANDLE FileHandle, - IN ULONG Flags); + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle, + /*IN*/ ULONG Flags); NTOSAPI NTSTATUS NTAPI ZwLoadKey( - IN POBJECT_ATTRIBUTES KeyObjectAttributes, - IN POBJECT_ATTRIBUTES FileObjectAttributes); + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwLoadKey2( - IN POBJECT_ATTRIBUTES KeyObjectAttributes, - IN POBJECT_ATTRIBUTES FileObjectAttributes, - IN ULONG Flags); + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes, + /*IN*/ ULONG Flags); NTOSAPI NTSTATUS NTAPI ZwUnloadKey( - IN POBJECT_ATTRIBUTES KeyObjectAttributes); + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes); NTOSAPI NTSTATUS NTAPI ZwQueryOpenSubKeys( - IN POBJECT_ATTRIBUTES KeyObjectAttributes, - OUT PULONG NumberOfKeys); + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*OUT*/ PULONG NumberOfKeys); NTOSAPI NTSTATUS NTAPI ZwReplaceKey( - IN POBJECT_ATTRIBUTES NewFileObjectAttributes, - IN HANDLE KeyHandle, - IN POBJECT_ATTRIBUTES OldFileObjectAttributes); + /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, + /*IN*/ HANDLE KeyHandle, + /*IN*/ POBJECT_ATTRIBUTES OldFileObjectAttributes); typedef enum _KEY_SET_INFORMATION_CLASS { KeyLastWriteTimeInformation @@ -2303,10 +2303,10 @@ NTOSAPI NTSTATUS NTAPI ZwSetInformationKey( - IN HANDLE KeyHandle, - IN KEY_SET_INFORMATION_CLASS KeyInformationClass, - IN PVOID KeyInformation, - IN ULONG KeyInformationLength); + /*IN*/ HANDLE KeyHandle, + /*IN*/ KEY_SET_INFORMATION_CLASS KeyInformationClass, + /*IN*/ PVOID KeyInformation, + /*IN*/ ULONG KeyInformationLength); typedef struct _KEY_LAST_WRITE_TIME_INFORMATION { LARGE_INTEGER LastWriteTime; @@ -2321,16 +2321,16 @@ NTOSAPI NTSTATUS NTAPI ZwNotifyChangeKey( - IN HANDLE KeyHandle, - IN HANDLE EventHandle OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG NotifyFilter, - IN BOOLEAN WatchSubtree, - IN PVOID Buffer, - IN ULONG BufferLength, - IN BOOLEAN Asynchronous); + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous); /* ZwNotifyChangeMultipleKeys.Flags constants */ #define REG_MONITOR_SINGLE_KEY 0x00 @@ -2340,35 +2340,35 @@ NTOSAPI NTSTATUS NTAPI ZwNotifyChangeMultipleKeys( - IN HANDLE KeyHandle, - IN ULONG Flags, - IN POBJECT_ATTRIBUTES KeyObjectAttributes, - IN HANDLE EventHandle OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG NotifyFilter, - IN BOOLEAN WatchSubtree, - IN PVOID Buffer, - IN ULONG BufferLength, - IN BOOLEAN Asynchronous); + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous); NTOSAPI NTSTATUS NTAPI ZwQueryMultipleValueKey( - IN HANDLE KeyHandle, - IN OUT PKEY_VALUE_ENTRY ValueList, - IN ULONG NumberOfValues, - OUT PVOID Buffer, - IN OUT PULONG Length, - OUT PULONG ReturnLength); + /*IN*/ HANDLE KeyHandle, + /*IN OUT*/ PKEY_VALUE_ENTRY ValueList, + /*IN*/ ULONG NumberOfValues, + /*OUT*/ PVOID Buffer, + /*IN OUT*/ PULONG Length, + /*OUT*/ PULONG ReturnLength); NTOSAPI NTSTATUS NTAPI ZwInitializeRegistry( - IN BOOLEAN Setup); + /*IN*/ BOOLEAN Setup); @@ -2379,76 +2379,76 @@ NTOSAPI NTSTATUS NTAPI ZwPrivilegeCheck( - IN HANDLE TokenHandle, - IN PPRIVILEGE_SET RequiredPrivileges, - OUT PBOOLEAN Result); + /*IN*/ HANDLE TokenHandle, + /*IN*/ PPRIVILEGE_SET RequiredPrivileges, + /*OUT*/ PBOOLEAN Result); NTOSAPI NTSTATUS NTAPI ZwPrivilegeObjectAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN HANDLE TokenHandle, - IN ACCESS_MASK DesiredAccess, - IN PPRIVILEGE_SET Privileges, - IN BOOLEAN AccessGranted); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PPRIVILEGE_SET Privileges, + /*IN*/ BOOLEAN AccessGranted); NTOSAPI NTSTATUS NTAPI ZwPrivilegeObjectAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN HANDLE TokenHandle, - IN ACCESS_MASK DesiredAccess, - IN PPRIVILEGE_SET Privileges, - IN BOOLEAN AccessGranted); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PPRIVILEGE_SET Privileges, + /*IN*/ BOOLEAN AccessGranted); NTOSAPI NTSTATUS NTAPI ZwAccessCheck( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN HANDLE TokenHandle, - IN ACCESS_MASK DesiredAccess, - IN PGENERIC_MAPPING GenericMapping, - IN PPRIVILEGE_SET PrivilegeSet, - IN PULONG PrivilegeSetLength, - OUT PACCESS_MASK GrantedAccess, - OUT PBOOLEAN AccessStatus); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus); NTOSAPI NTSTATUS NTAPI ZwAccessCheckAndAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ACCESS_MASK DesiredAccess, - IN PGENERIC_MAPPING GenericMapping, - IN BOOLEAN ObjectCreation, - OUT PACCESS_MASK GrantedAccess, - OUT PBOOLEAN AccessStatus, - OUT PBOOLEAN GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwAccessCheckByType( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID PrincipalSelfSid, - IN HANDLE TokenHandle, - IN ULONG DesiredAccess, - IN POBJECT_TYPE_LIST ObjectTypeList, - IN ULONG ObjectTypeListLength, - IN PGENERIC_MAPPING GenericMapping, - IN PPRIVILEGE_SET PrivilegeSet, - IN PULONG PrivilegeSetLength, - OUT PACCESS_MASK GrantedAccess, - OUT PULONG AccessStatus); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ULONG DesiredAccess, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PULONG AccessStatus); typedef enum _AUDIT_EVENT_TYPE { AuditEventObjectAccess, @@ -2459,114 +2459,114 @@ NTOSAPI NTSTATUS NTAPI ZwAccessCheckByTypeAndAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID PrincipalSelfSid, - IN ACCESS_MASK DesiredAccess, - IN AUDIT_EVENT_TYPE AuditType, - IN ULONG Flags, - IN POBJECT_TYPE_LIST ObjectTypeList, - IN ULONG ObjectTypeListLength, - IN PGENERIC_MAPPING GenericMapping, - IN BOOLEAN ObjectCreation, - OUT PACCESS_MASK GrantedAccess, - OUT PULONG AccessStatus, - OUT PBOOLEAN GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PULONG AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwAccessCheckByTypeResultList( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID PrincipalSelfSid, - IN HANDLE TokenHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_TYPE_LIST ObjectTypeList, - IN ULONG ObjectTypeListLength, - IN PGENERIC_MAPPING GenericMapping, - IN PPRIVILEGE_SET PrivilegeSet, - IN PULONG PrivilegeSetLength, - OUT PACCESS_MASK GrantedAccessList, - OUT PULONG AccessStatusList); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList); NTOSAPI NTSTATUS NTAPI ZwAccessCheckByTypeResultListAndAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID PrincipalSelfSid, - IN ACCESS_MASK DesiredAccess, - IN AUDIT_EVENT_TYPE AuditType, - IN ULONG Flags, - IN POBJECT_TYPE_LIST ObjectTypeList, - IN ULONG ObjectTypeListLength, - IN PGENERIC_MAPPING GenericMapping, - IN BOOLEAN ObjectCreation, - OUT PACCESS_MASK GrantedAccessList, - OUT PULONG AccessStatusList, - OUT PULONG GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList, + /*OUT*/ PULONG GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN HANDLE TokenHandle, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID PrincipalSelfSid, - IN ACCESS_MASK DesiredAccess, - IN AUDIT_EVENT_TYPE AuditType, - IN ULONG Flags, - IN POBJECT_TYPE_LIST ObjectTypeList, - IN ULONG ObjectTypeListLength, - IN PGENERIC_MAPPING GenericMapping, - IN BOOLEAN ObjectCreation, - OUT PACCESS_MASK GrantedAccessList, - OUT PULONG AccessStatusList, - OUT PULONG GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ HANDLE TokenHandle, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList, + /*OUT*/ PULONG GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwOpenObjectAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID *HandleId, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN HANDLE TokenHandle, - IN ACCESS_MASK DesiredAccess, - IN ACCESS_MASK GrantedAccess, - IN PPRIVILEGE_SET Privileges OPTIONAL, - IN BOOLEAN ObjectCreation, - IN BOOLEAN AccessGranted, - OUT PBOOLEAN GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID *HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ACCESS_MASK GrantedAccess, + /*IN*/ PPRIVILEGE_SET Privileges /*OPTIONAL*/, + /*IN*/ BOOLEAN ObjectCreation, + /*IN*/ BOOLEAN AccessGranted, + /*OUT*/ PBOOLEAN GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwCloseObjectAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN BOOLEAN GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose); NTOSAPI NTSTATUS NTAPI ZwDeleteObjectAuditAlarm( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN BOOLEAN GenerateOnClose); + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose); @@ -2577,19 +2577,19 @@ NTOSAPI NTSTATUS NTAPI ZwRequestWakeupLatency( - IN LATENCY_TIME Latency); + /*IN*/ LATENCY_TIME Latency); NTOSAPI NTSTATUS NTAPI ZwRequestDeviceWakeup( - IN HANDLE DeviceHandle); + /*IN*/ HANDLE DeviceHandle); NTOSAPI NTSTATUS NTAPI ZwCancelDeviceWakeupRequest( - IN HANDLE DeviceHandle); + /*IN*/ HANDLE DeviceHandle); NTOSAPI BOOLEAN @@ -2601,59 +2601,59 @@ NTOSAPI NTSTATUS NTAPI ZwSetThreadExecutionState( - IN EXECUTION_STATE ExecutionState, - OUT PEXECUTION_STATE PreviousExecutionState); + /*IN*/ EXECUTION_STATE ExecutionState, + /*OUT*/ PEXECUTION_STATE PreviousExecutionState); NTOSAPI NTSTATUS NTAPI ZwGetDevicePowerState( - IN HANDLE DeviceHandle, - OUT PDEVICE_POWER_STATE DevicePowerState); + /*IN*/ HANDLE DeviceHandle, + /*OUT*/ PDEVICE_POWER_STATE DevicePowerState); NTOSAPI NTSTATUS NTAPI ZwSetSystemPowerState( - 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 NTAPI ZwInitiatePowerAction( - 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 NTAPI ZwPowerInformation( - IN POWER_INFORMATION_LEVEL PowerInformationLevel, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength); + /*IN*/ POWER_INFORMATION_LEVEL PowerInformationLevel, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength); NTOSAPI NTSTATUS NTAPI ZwPlugPlayControl( - IN ULONG ControlCode, - IN OUT PVOID Buffer, - IN ULONG BufferLength); + /*IN*/ ULONG ControlCode, + /*IN OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength); NTOSAPI NTSTATUS NTAPI ZwGetPlugPlayEvent( - IN ULONG Reserved1, - IN ULONG Reserved2, - OUT PVOID Buffer, - IN ULONG BufferLength); + /*IN*/ ULONG Reserved1, + /*IN*/ ULONG Reserved2, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength); @@ -2664,26 +2664,26 @@ NTOSAPI NTSTATUS NTAPI ZwRaiseException( - IN PEXCEPTION_RECORD ExceptionRecord, - IN PCONTEXT Context, - IN BOOLEAN SearchFrames); + /*IN*/ PEXCEPTION_RECORD ExceptionRecord, + /*IN*/ PCONTEXT Context, + /*IN*/ BOOLEAN SearchFrames); NTOSAPI NTSTATUS NTAPI ZwContinue( - IN PCONTEXT Context, - IN BOOLEAN TestAlert); + /*IN*/ PCONTEXT Context, + /*IN*/ BOOLEAN TestAlert); NTOSAPI NTSTATUS NTAPI ZwW32Call( - IN ULONG RoutineIndex, - IN PVOID Argument, - IN ULONG ArgumentLength, - OUT PVOID *Result OPTIONAL, - OUT PULONG ResultLength OPTIONAL); + /*IN*/ ULONG RoutineIndex, + /*IN*/ PVOID Argument, + /*IN*/ ULONG ArgumentLength, + /*OUT*/ PVOID *Result /*OPTIONAL*/, + /*OUT*/ PULONG ResultLength /*OPTIONAL*/); NTOSAPI NTSTATUS @@ -2701,21 +2701,21 @@ NTOSAPI NTSTATUS NTAPI ZwLoadDriver( - IN PUNICODE_STRING DriverServiceName); + /*IN*/ PUNICODE_STRING DriverServiceName); NTOSAPI NTSTATUS NTAPI ZwUnloadDriver( - IN PUNICODE_STRING DriverServiceName); + /*IN*/ PUNICODE_STRING DriverServiceName); NTOSAPI NTSTATUS NTAPI ZwFlushInstructionCache( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress OPTIONAL, - IN ULONG FlushSize); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress /*OPTIONAL*/, + /*IN*/ ULONG FlushSize); NTOSAPI NTSTATUS @@ -2727,54 +2727,54 @@ NTOSAPI NTSTATUS NTAPI ZwQueryDefaultLocale( - IN BOOLEAN ThreadOrSystem, - OUT PLCID Locale); + /*IN*/ BOOLEAN ThreadOrSystem, + /*OUT*/ PLCID Locale); NTOSAPI NTSTATUS NTAPI ZwSetDefaultLocale( - IN BOOLEAN ThreadOrSystem, - IN LCID Locale); + /*IN*/ BOOLEAN ThreadOrSystem, + /*IN*/ LCID Locale); NTOSAPI NTSTATUS NTAPI ZwQueryDefaultUILanguage( - OUT PLANGID LanguageId); + /*OUT*/ PLANGID LanguageId); NTOSAPI NTSTATUS NTAPI ZwSetDefaultUILanguage( - IN LANGID LanguageId); + /*IN*/ LANGID LanguageId); NTOSAPI NTSTATUS NTAPI ZwQueryInstallUILanguage( - OUT PLANGID LanguageId); + /*OUT*/ PLANGID LanguageId); NTOSAPI NTSTATUS NTAPI NtAllocateLocallyUniqueId( - OUT PLUID Luid); + /*OUT*/ PLUID Luid); NTOSAPI NTSTATUS NTAPI NtAllocateUuids( - OUT PLARGE_INTEGER UuidLastTimeAllocated, - OUT PULONG UuidDeltaTime, - OUT PULONG UuidSequenceNumber, - OUT PUCHAR UuidSeed); + /*OUT*/ PLARGE_INTEGER UuidLastTimeAllocated, + /*OUT*/ PULONG UuidDeltaTime, + /*OUT*/ PULONG UuidSequenceNumber, + /*OUT*/ PUCHAR UuidSeed); NTOSAPI NTSTATUS NTAPI ZwSetUuidSeed( - IN PUCHAR UuidSeed); + /*IN*/ PUCHAR UuidSeed); typedef enum _HARDERROR_RESPONSE_OPTION { OptionAbortRetryIgnore, @@ -2802,33 +2802,33 @@ NTOSAPI NTSTATUS NTAPI ZwRaiseHardError( - IN NTSTATUS Status, - IN ULONG NumberOfArguments, - IN ULONG StringArgumentsMask, - IN PULONG Arguments, - IN HARDERROR_RESPONSE_OPTION ResponseOption, - OUT PHARDERROR_RESPONSE Response); + /*IN*/ NTSTATUS Status, + /*IN*/ ULONG NumberOfArguments, + /*IN*/ ULONG StringArgumentsMask, + /*IN*/ PULONG Arguments, + /*IN*/ HARDERROR_RESPONSE_OPTION ResponseOption, + /*OUT*/ PHARDERROR_RESPONSE Response); NTOSAPI NTSTATUS NTAPI ZwSetDefaultHardErrorPort( - IN HANDLE PortHandle); + /*IN*/ HANDLE PortHandle); NTOSAPI NTSTATUS NTAPI ZwDisplayString( - IN PUNICODE_STRING String); + /*IN*/ PUNICODE_STRING String); NTOSAPI NTSTATUS NTAPI ZwCreatePagingFile( - IN PUNICODE_STRING FileName, - IN PULARGE_INTEGER InitialSize, - IN PULARGE_INTEGER MaximumSize, - IN ULONG Reserved); + /*IN*/ PUNICODE_STRING FileName, + /*IN*/ PULARGE_INTEGER InitialSize, + /*IN*/ PULARGE_INTEGER MaximumSize, + /*IN*/ ULONG Reserved); typedef USHORT RTL_ATOM, *PRTL_ATOM; @@ -2836,23 +2836,23 @@ NTOSAPI NTSTATUS NTAPI NtAddAtom( - IN PWSTR AtomName, - IN ULONG AtomNameLength, - OUT PRTL_ATOM Atom); + /*IN*/ PWSTR AtomName, + /*IN*/ ULONG AtomNameLength, + /*OUT*/ PRTL_ATOM Atom); NTOSAPI NTSTATUS NTAPI NtFindAtom( - IN PWSTR AtomName, - IN ULONG AtomNameLength, - OUT PRTL_ATOM Atom); + /*IN*/ PWSTR AtomName, + /*IN*/ ULONG AtomNameLength, + /*OUT*/ PRTL_ATOM Atom); NTOSAPI NTSTATUS NTAPI NtDeleteAtom( - IN RTL_ATOM Atom); + /*IN*/ RTL_ATOM Atom); typedef enum _ATOM_INFORMATION_CLASS { AtomBasicInformation, @@ -2863,11 +2863,11 @@ NTOSAPI NTSTATUS NTAPI NtQueryInformationAtom( - IN RTL_ATOM Atom, - IN ATOM_INFORMATION_CLASS AtomInformationClass, - OUT PVOID AtomInformation, - IN ULONG AtomInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ RTL_ATOM Atom, + /*IN*/ ATOM_INFORMATION_CLASS AtomInformationClass, + /*OUT*/ PVOID AtomInformation, + /*IN*/ ULONG AtomInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); typedef struct _ATOM_BASIC_INFORMATION { USHORT ReferenceCount; @@ -2885,17 +2885,17 @@ NTOSAPI NTSTATUS NTAPI ZwSetLdtEntries( - IN ULONG Selector1, - IN LDT_ENTRY LdtEntry1, - IN ULONG Selector2, - IN LDT_ENTRY LdtEntry2); + /*IN*/ ULONG Selector1, + /*IN*/ LDT_ENTRY LdtEntry1, + /*IN*/ ULONG Selector2, + /*IN*/ LDT_ENTRY LdtEntry2); NTOSAPI NTSTATUS NTAPI NtVdmControl( - IN ULONG ControlCode, - IN PVOID ControlData); + /*IN*/ ULONG ControlCode, + /*IN*/ PVOID ControlData); #pragma pack(pop) diff --git a/winsup/w32api/include/ddk/ntdd8042.h b/winsup/w32api/include/ddk/ntdd8042.h index b9947b162..9701792a7 100644 --- a/winsup/w32api/include/ddk/ntdd8042.h +++ b/winsup/w32api/include/ddk/ntdd8042.h @@ -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 diff --git a/winsup/w32api/include/ddk/ntddpcm.h b/winsup/w32api/include/ddk/ntddpcm.h index 22ef5dd95..fc650750c 100644 --- a/winsup/w32api/include/ddk/ntddpcm.h +++ b/winsup/w32api/include/ddk/ntddpcm.h @@ -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; diff --git a/winsup/w32api/include/ddk/ntifs.h b/winsup/w32api/include/ddk/ntifs.h index 87f50d9c7..c78b7a807 100644 --- a/winsup/w32api/include/ddk/ntifs.h +++ b/winsup/w32api/include/ddk/ntifs.h @@ -1095,13 +1095,13 @@ typedef struct _FILE_EXCLUSIVE_LOCK_ENTRY { } FILE_EXCLUSIVE_LOCK_ENTRY, *PFILE_EXCLUSIVE_LOCK_ENTRY; typedef NTSTATUS (*PCOMPLETE_LOCK_IRP_ROUTINE) ( - IN PVOID Context, - IN PIRP Irp + /*IN*/ PVOID Context, + /*IN*/ PIRP Irp ); typedef VOID (NTAPI *PUNLOCK_ROUTINE) ( - IN PVOID Context, - IN PFILE_LOCK_INFO FileLockInfo + /*IN*/ PVOID Context, + /*IN*/ PFILE_LOCK_INFO FileLockInfo ); typedef struct _FILE_LOCK { @@ -1731,118 +1731,118 @@ NTKERNELAPI BOOLEAN NTAPI CcCanIWrite ( - IN PFILE_OBJECT FileObject, - IN ULONG BytesToWrite, - IN BOOLEAN Wait, - IN BOOLEAN Retrying + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG BytesToWrite, + /*IN*/ BOOLEAN Wait, + /*IN*/ BOOLEAN Retrying ); NTKERNELAPI BOOLEAN NTAPI CcCopyRead ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - OUT PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*OUT*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus ); NTKERNELAPI BOOLEAN NTAPI CcCopyWrite ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN PVOID Buffer + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ PVOID Buffer ); #define CcCopyWriteWontFlush(FO, FOFF, LEN) ((LEN) <= 0x10000) typedef VOID (NTAPI *PCC_POST_DEFERRED_WRITE) ( - IN PVOID Context1, - IN PVOID Context2 + /*IN*/ PVOID Context1, + /*IN*/ PVOID Context2 ); NTKERNELAPI VOID NTAPI CcDeferWrite ( - IN PFILE_OBJECT FileObject, - IN PCC_POST_DEFERRED_WRITE PostRoutine, - IN PVOID Context1, - IN PVOID Context2, - IN ULONG BytesToWrite, - IN BOOLEAN Retrying + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PCC_POST_DEFERRED_WRITE PostRoutine, + /*IN*/ PVOID Context1, + /*IN*/ PVOID Context2, + /*IN*/ ULONG BytesToWrite, + /*IN*/ BOOLEAN Retrying ); NTKERNELAPI VOID NTAPI CcFastCopyRead ( - IN PFILE_OBJECT FileObject, - IN ULONG FileOffset, - IN ULONG Length, - IN ULONG PageCount, - OUT PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG FileOffset, + /*IN*/ ULONG Length, + /*IN*/ ULONG PageCount, + /*OUT*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus ); NTKERNELAPI VOID NTAPI CcFastCopyWrite ( - IN PFILE_OBJECT FileObject, - IN ULONG FileOffset, - IN ULONG Length, - IN PVOID Buffer + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG FileOffset, + /*IN*/ ULONG Length, + /*IN*/ PVOID Buffer ); NTKERNELAPI VOID NTAPI CcFlushCache ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN PLARGE_INTEGER FileOffset OPTIONAL, - IN ULONG Length, - OUT PIO_STATUS_BLOCK IoStatus OPTIONAL + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ PLARGE_INTEGER FileOffset /*OPTIONAL*/, + /*IN*/ ULONG Length, + /*OUT*/ PIO_STATUS_BLOCK IoStatus /*OPTIONAL*/ ); typedef VOID (*PDIRTY_PAGE_ROUTINE) ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN PLARGE_INTEGER OldestLsn, - IN PLARGE_INTEGER NewestLsn, - IN PVOID Context1, - IN PVOID Context2 + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER OldestLsn, + /*IN*/ PLARGE_INTEGER NewestLsn, + /*IN*/ PVOID Context1, + /*IN*/ PVOID Context2 ); NTKERNELAPI LARGE_INTEGER NTAPI CcGetDirtyPages ( - IN PVOID LogHandle, - IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine, - IN PVOID Context1, - IN PVOID Context2 + /*IN*/ PVOID LogHandle, + /*IN*/ PDIRTY_PAGE_ROUTINE DirtyPageRoutine, + /*IN*/ PVOID Context1, + /*IN*/ PVOID Context2 ); NTKERNELAPI PFILE_OBJECT NTAPI CcGetFileObjectFromBcb ( - IN PVOID Bcb + /*IN*/ PVOID Bcb ); NTKERNELAPI PFILE_OBJECT NTAPI CcGetFileObjectFromSectionPtrs ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer ); #define CcGetFileSizePointer(FO) ( \ @@ -1855,8 +1855,8 @@ NTKERNELAPI LARGE_INTEGER NTAPI CcGetFlushedValidData ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN BOOLEAN BcbListHeld + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ BOOLEAN BcbListHeld ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -1864,26 +1864,26 @@ CcGetFlushedValidData ( NTKERNELAPI LARGE_INTEGER CcGetLsnForFileObject ( - IN PFILE_OBJECT FileObject, - OUT PLARGE_INTEGER OldestLsn OPTIONAL + /*IN*/ PFILE_OBJECT FileObject, + /*OUT*/ PLARGE_INTEGER OldestLsn /*OPTIONAL*/ ); typedef BOOLEAN (NTAPI *PACQUIRE_FOR_LAZY_WRITE) ( - IN PVOID Context, - IN BOOLEAN Wait + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN Wait ); typedef VOID (NTAPI *PRELEASE_FROM_LAZY_WRITE) ( - IN PVOID Context + /*IN*/ PVOID Context ); typedef BOOLEAN (NTAPI *PACQUIRE_FOR_READ_AHEAD) ( - IN PVOID Context, - IN BOOLEAN Wait + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN Wait ); typedef VOID (NTAPI *PRELEASE_FROM_READ_AHEAD) ( - IN PVOID Context + /*IN*/ PVOID Context ); typedef struct _CACHE_MANAGER_CALLBACKS { @@ -1897,11 +1897,11 @@ NTKERNELAPI VOID NTAPI CcInitializeCacheMap ( - IN PFILE_OBJECT FileObject, - IN PCC_FILE_SIZES FileSizes, - IN BOOLEAN PinAccess, - IN PCACHE_MANAGER_CALLBACKS Callbacks, - IN PVOID LazyWriteContext + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PCC_FILE_SIZES FileSizes, + /*IN*/ BOOLEAN PinAccess, + /*IN*/ PCACHE_MANAGER_CALLBACKS Callbacks, + /*IN*/ PVOID LazyWriteContext ); #define CcIsFileCached(FO) ( \ @@ -1913,116 +1913,116 @@ NTKERNELAPI BOOLEAN NTAPI CcIsThereDirtyData ( - IN PVPB Vpb + /*IN*/ PVPB Vpb ); NTKERNELAPI BOOLEAN NTAPI CcMapData ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - OUT PVOID *Bcb, - OUT PVOID *Buffer + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*OUT*/ PVOID *Bcb, + /*OUT*/ PVOID *Buffer ); NTKERNELAPI VOID NTAPI CcMdlRead ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus ); NTKERNELAPI VOID NTAPI CcMdlReadComplete ( - IN PFILE_OBJECT FileObject, - IN PMDL MdlChain + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PMDL MdlChain ); NTKERNELAPI VOID NTAPI CcMdlWriteComplete ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN PMDL MdlChain + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PMDL MdlChain ); NTKERNELAPI BOOLEAN NTAPI CcPinMappedData ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, #if (VER_PRODUCTBUILD >= 2195) - IN ULONG Flags, + /*IN*/ ULONG Flags, #else - IN BOOLEAN Wait, + /*IN*/ BOOLEAN Wait, #endif - IN OUT PVOID *Bcb + /*IN OUT*/ PVOID *Bcb ); NTKERNELAPI BOOLEAN NTAPI CcPinRead ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, #if (VER_PRODUCTBUILD >= 2195) - IN ULONG Flags, + /*IN*/ ULONG Flags, #else - IN BOOLEAN Wait, + /*IN*/ BOOLEAN Wait, #endif - OUT PVOID *Bcb, - OUT PVOID *Buffer + /*OUT*/ PVOID *Bcb, + /*OUT*/ PVOID *Buffer ); NTKERNELAPI VOID NTAPI CcPrepareMdlWrite ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus ); NTKERNELAPI BOOLEAN NTAPI CcPreparePinWrite ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Zero, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Zero, #if (VER_PRODUCTBUILD >= 2195) - IN ULONG Flags, + /*IN*/ ULONG Flags, #else - IN BOOLEAN Wait, + /*IN*/ BOOLEAN Wait, #endif - OUT PVOID *Bcb, - OUT PVOID *Buffer + /*OUT*/ PVOID *Bcb, + /*OUT*/ PVOID *Buffer ); NTKERNELAPI BOOLEAN NTAPI CcPurgeCacheSection ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN PLARGE_INTEGER FileOffset OPTIONAL, - IN ULONG Length, - IN BOOLEAN UninitializeCacheMaps + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ PLARGE_INTEGER FileOffset /*OPTIONAL*/, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN UninitializeCacheMaps ); #define CcReadAhead(FO, FOFF, LEN) ( \ @@ -2037,7 +2037,7 @@ NTKERNELAPI PVOID NTAPI CcRemapBcb ( - IN PVOID Bcb + /*IN*/ PVOID Bcb ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2046,79 +2046,79 @@ NTKERNELAPI VOID NTAPI CcRepinBcb ( - IN PVOID Bcb + /*IN*/ PVOID Bcb ); NTKERNELAPI VOID NTAPI CcScheduleReadAhead ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length ); NTKERNELAPI VOID NTAPI CcSetAdditionalCacheAttributes ( - IN PFILE_OBJECT FileObject, - IN BOOLEAN DisableReadAhead, - IN BOOLEAN DisableWriteBehind + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ BOOLEAN DisableReadAhead, + /*IN*/ BOOLEAN DisableWriteBehind ); NTKERNELAPI VOID NTAPI CcSetBcbOwnerPointer ( - IN PVOID Bcb, - IN PVOID OwnerPointer + /*IN*/ PVOID Bcb, + /*IN*/ PVOID OwnerPointer ); NTKERNELAPI VOID NTAPI CcSetDirtyPageThreshold ( - IN PFILE_OBJECT FileObject, - IN ULONG DirtyPageThreshold + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG DirtyPageThreshold ); NTKERNELAPI VOID NTAPI CcSetDirtyPinnedData ( - IN PVOID BcbVoid, - IN PLARGE_INTEGER Lsn OPTIONAL + /*IN*/ PVOID BcbVoid, + /*IN*/ PLARGE_INTEGER Lsn /*OPTIONAL*/ ); NTKERNELAPI VOID NTAPI CcSetFileSizes ( - IN PFILE_OBJECT FileObject, - IN PCC_FILE_SIZES FileSizes + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PCC_FILE_SIZES FileSizes ); typedef VOID (NTAPI *PFLUSH_TO_LSN) ( - IN PVOID LogHandle, - IN PLARGE_INTEGER Lsn + /*IN*/ PVOID LogHandle, + /*IN*/ PLARGE_INTEGER Lsn ); NTKERNELAPI VOID NTAPI CcSetLogHandleForFile ( - IN PFILE_OBJECT FileObject, - IN PVOID LogHandle, - IN PFLUSH_TO_LSN FlushToLsnRoutine + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PVOID LogHandle, + /*IN*/ PFLUSH_TO_LSN FlushToLsnRoutine ); NTKERNELAPI VOID NTAPI CcSetReadAheadGranularity ( - IN PFILE_OBJECT FileObject, - IN ULONG Granularity /* default: PAGE_SIZE */ + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG Granularity /* default: PAGE_SIZE */ /* allowed: 2^n * PAGE_SIZE */ ); @@ -2126,33 +2126,33 @@ NTKERNELAPI BOOLEAN NTAPI CcUninitializeCacheMap ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER TruncateSize OPTIONAL, - IN PCACHE_UNINITIALIZE_EVENT UninitializeCompleteEvent OPTIONAL + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER TruncateSize /*OPTIONAL*/, + /*IN*/ PCACHE_UNINITIALIZE_EVENT UninitializeCompleteEvent /*OPTIONAL*/ ); NTKERNELAPI VOID NTAPI CcUnpinData ( - IN PVOID Bcb + /*IN*/ PVOID Bcb ); NTKERNELAPI VOID NTAPI CcUnpinDataForThread ( - IN PVOID Bcb, - IN ERESOURCE_THREAD ResourceThreadId + /*IN*/ PVOID Bcb, + /*IN*/ ERESOURCE_THREAD ResourceThreadId ); NTKERNELAPI VOID NTAPI CcUnpinRepinnedBcb ( - IN PVOID Bcb, - IN BOOLEAN WriteThrough, - OUT PIO_STATUS_BLOCK IoStatus + /*IN*/ PVOID Bcb, + /*IN*/ BOOLEAN WriteThrough, + /*OUT*/ PIO_STATUS_BLOCK IoStatus ); #if (VER_PRODUCTBUILD >= 2195) @@ -2170,25 +2170,25 @@ NTKERNELAPI BOOLEAN NTAPI CcZeroData ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER StartOffset, - IN PLARGE_INTEGER EndOffset, - IN BOOLEAN Wait + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER StartOffset, + /*IN*/ PLARGE_INTEGER EndOffset, + /*IN*/ BOOLEAN Wait ); NTKERNELAPI VOID NTAPI ExDisableResourceBoostLite ( - IN PERESOURCE Resource + /*IN*/ PERESOURCE Resource ); NTKERNELAPI ULONG NTAPI ExQueryPoolBlockSize ( - IN PVOID PoolBlock, - OUT PBOOLEAN QuotaCharged + /*IN*/ PVOID PoolBlock, + /*OUT*/ PBOOLEAN QuotaCharged ); #define FlagOn(x, f) ((x) & (f)) @@ -2197,13 +2197,13 @@ NTKERNELAPI VOID NTAPI FsRtlAddToTunnelCache ( - IN PTUNNEL Cache, - IN ULONGLONG DirectoryKey, - IN PUNICODE_STRING ShortName, - IN PUNICODE_STRING LongName, - IN BOOLEAN KeyByShortName, - IN ULONG DataLength, - IN PVOID Data + /*IN*/ PTUNNEL Cache, + /*IN*/ ULONGLONG DirectoryKey, + /*IN*/ PUNICODE_STRING ShortName, + /*IN*/ PUNICODE_STRING LongName, + /*IN*/ BOOLEAN KeyByShortName, + /*IN*/ ULONG DataLength, + /*IN*/ PVOID Data ); #if (VER_PRODUCTBUILD >= 2195) @@ -2211,8 +2211,8 @@ FsRtlAddToTunnelCache ( PFILE_LOCK NTAPI FsRtlAllocateFileLock ( - IN PCOMPLETE_LOCK_IRP_ROUTINE CompleteLockIrpRoutine OPTIONAL, - IN PUNLOCK_ROUTINE UnlockRoutine OPTIONAL + /*IN*/ PCOMPLETE_LOCK_IRP_ROUTINE CompleteLockIrpRoutine /*OPTIONAL*/, + /*IN*/ PUNLOCK_ROUTINE UnlockRoutine /*OPTIONAL*/ ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2221,44 +2221,44 @@ NTKERNELAPI PVOID NTAPI FsRtlAllocatePool ( - IN POOL_TYPE PoolType, - IN ULONG NumberOfBytes + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG NumberOfBytes ); NTKERNELAPI PVOID NTAPI FsRtlAllocatePoolWithQuota ( - IN POOL_TYPE PoolType, - IN ULONG NumberOfBytes + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG NumberOfBytes ); NTKERNELAPI PVOID NTAPI FsRtlAllocatePoolWithQuotaTag ( - IN POOL_TYPE PoolType, - IN ULONG NumberOfBytes, - IN ULONG Tag + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG NumberOfBytes, + /*IN*/ ULONG Tag ); NTKERNELAPI PVOID NTAPI FsRtlAllocatePoolWithTag ( - IN POOL_TYPE PoolType, - IN ULONG NumberOfBytes, - IN ULONG Tag + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG NumberOfBytes, + /*IN*/ ULONG Tag ); NTKERNELAPI BOOLEAN NTAPI FsRtlAreNamesEqual ( - IN PUNICODE_STRING Name1, - IN PUNICODE_STRING Name2, - IN BOOLEAN IgnoreCase, - IN PWCHAR UpcaseTable OPTIONAL + /*IN*/ PUNICODE_STRING Name1, + /*IN*/ PUNICODE_STRING Name2, + /*IN*/ BOOLEAN IgnoreCase, + /*IN*/ PWCHAR UpcaseTable /*OPTIONAL*/ ); #define FsRtlAreThereCurrentFileLocks(FL) ( \ @@ -2276,8 +2276,8 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlCheckLockForReadAccess ( - IN PFILE_LOCK FileLock, - IN PIRP Irp + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PIRP Irp ); /* @@ -2291,97 +2291,97 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlCheckLockForWriteAccess ( - IN PFILE_LOCK FileLock, - IN PIRP Irp + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PIRP Irp ); typedef VOID NTAPI (*POPLOCK_WAIT_COMPLETE_ROUTINE) ( - IN PVOID Context, - IN PIRP Irp + /*IN*/ PVOID Context, + /*IN*/ PIRP Irp ); typedef VOID NTAPI (*POPLOCK_FS_PREPOST_IRP) ( - IN PVOID Context, - IN PIRP Irp + /*IN*/ PVOID Context, + /*IN*/ PIRP Irp ); NTKERNELAPI NTSTATUS NTAPI FsRtlCheckOplock ( - IN POPLOCK Oplock, - IN PIRP Irp, - IN PVOID Context, - IN POPLOCK_WAIT_COMPLETE_ROUTINE CompletionRoutine OPTIONAL, - IN POPLOCK_FS_PREPOST_IRP PostIrpRoutine OPTIONAL + /*IN*/ POPLOCK Oplock, + /*IN*/ PIRP Irp, + /*IN*/ PVOID Context, + /*IN*/ POPLOCK_WAIT_COMPLETE_ROUTINE CompletionRoutine /*OPTIONAL*/, + /*IN*/ POPLOCK_FS_PREPOST_IRP PostIrpRoutine /*OPTIONAL*/ ); NTKERNELAPI BOOLEAN NTAPI FsRtlCopyRead ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - OUT PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ ULONG LockKey, + /*OUT*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI BOOLEAN NTAPI FsRtlCopyWrite ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - IN PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ ULONG LockKey, + /*IN*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI BOOLEAN NTAPI FsRtlCurrentBatchOplock ( - IN POPLOCK Oplock + /*IN*/ POPLOCK Oplock ); NTKERNELAPI VOID NTAPI FsRtlDeleteKeyFromTunnelCache ( - IN PTUNNEL Cache, - IN ULONGLONG DirectoryKey + /*IN*/ PTUNNEL Cache, + /*IN*/ ULONGLONG DirectoryKey ); NTKERNELAPI VOID NTAPI FsRtlDeleteTunnelCache ( - IN PTUNNEL Cache + /*IN*/ PTUNNEL Cache ); NTKERNELAPI VOID NTAPI FsRtlDeregisterUncProvider ( - IN HANDLE Handle + /*IN*/ HANDLE Handle ); NTKERNELAPI BOOLEAN NTAPI FsRtlDoesNameContainWildCards ( - IN PUNICODE_STRING Name + /*IN*/ PUNICODE_STRING Name ); #define FsRtlEnterFileSystem KeEnterCriticalRegion @@ -2392,24 +2392,24 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlFastCheckLockForRead ( - IN PFILE_LOCK FileLock, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, - IN ULONG Key, - IN PFILE_OBJECT FileObject, - IN PEPROCESS Process + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, + /*IN*/ ULONG Key, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PEPROCESS Process ); NTKERNELAPI BOOLEAN NTAPI FsRtlFastCheckLockForWrite ( - IN PFILE_LOCK FileLock, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, - IN ULONG Key, - IN PFILE_OBJECT FileObject, - IN PEPROCESS Process + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, + /*IN*/ ULONG Key, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PEPROCESS Process ); #define FsRtlFastLock(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) ( \ @@ -2420,10 +2420,10 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlFastUnlockAll ( - IN PFILE_LOCK FileLock, - IN PFILE_OBJECT FileObject, - IN PEPROCESS Process, - IN PVOID Context OPTIONAL + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PEPROCESS Process, + /*IN*/ PVOID Context /*OPTIONAL*/ ); /* ret: STATUS_RANGE_NOT_LOCKED */ @@ -2431,11 +2431,11 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlFastUnlockAllByKey ( - IN PFILE_LOCK FileLock, - IN PFILE_OBJECT FileObject, - IN PEPROCESS Process, - IN ULONG Key, - IN PVOID Context OPTIONAL + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PEPROCESS Process, + /*IN*/ ULONG Key, + /*IN*/ PVOID Context /*OPTIONAL*/ ); /* ret: STATUS_RANGE_NOT_LOCKED */ @@ -2443,14 +2443,14 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlFastUnlockSingle ( - IN PFILE_LOCK FileLock, - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, - IN PEPROCESS Process, - IN ULONG Key, - IN PVOID Context OPTIONAL, - IN BOOLEAN AlreadySynchronized + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, + /*IN*/ PEPROCESS Process, + /*IN*/ ULONG Key, + /*IN*/ PVOID Context /*OPTIONAL*/, + /*IN*/ BOOLEAN AlreadySynchronized ); /* ret: STATUS_RANGE_NOT_LOCKED */ @@ -2458,13 +2458,13 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlFindInTunnelCache ( - IN PTUNNEL Cache, - IN ULONGLONG DirectoryKey, - IN PUNICODE_STRING Name, - OUT PUNICODE_STRING ShortName, - OUT PUNICODE_STRING LongName, - IN OUT PULONG DataLength, - OUT PVOID Data + /*IN*/ PTUNNEL Cache, + /*IN*/ ULONGLONG DirectoryKey, + /*IN*/ PUNICODE_STRING Name, + /*OUT*/ PUNICODE_STRING ShortName, + /*OUT*/ PUNICODE_STRING LongName, + /*IN OUT*/ PULONG DataLength, + /*OUT*/ PVOID Data ); #if (VER_PRODUCTBUILD >= 2195) @@ -2473,7 +2473,7 @@ NTKERNELAPI VOID NTAPI FsRtlFreeFileLock ( - IN PFILE_LOCK FileLock + /*IN*/ PFILE_LOCK FileLock ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2482,8 +2482,8 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlGetFileSize ( - IN PFILE_OBJECT FileObject, - IN OUT PLARGE_INTEGER FileSize + /*IN*/ PFILE_OBJECT FileObject, + /*IN OUT*/ PLARGE_INTEGER FileSize ); /* @@ -2502,48 +2502,48 @@ NTKERNELAPI PFILE_LOCK_INFO NTAPI FsRtlGetNextFileLock ( - IN PFILE_LOCK FileLock, - IN BOOLEAN Restart + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ BOOLEAN Restart ); NTKERNELAPI VOID NTAPI FsRtlInitializeFileLock ( - IN PFILE_LOCK FileLock, - IN PCOMPLETE_LOCK_IRP_ROUTINE CompleteLockIrpRoutine OPTIONAL, - IN PUNLOCK_ROUTINE UnlockRoutine OPTIONAL + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PCOMPLETE_LOCK_IRP_ROUTINE CompleteLockIrpRoutine /*OPTIONAL*/, + /*IN*/ PUNLOCK_ROUTINE UnlockRoutine /*OPTIONAL*/ ); NTKERNELAPI VOID NTAPI FsRtlInitializeOplock ( - IN OUT POPLOCK Oplock + /*IN OUT*/ POPLOCK Oplock ); NTKERNELAPI VOID NTAPI FsRtlInitializeTunnelCache ( - IN PTUNNEL Cache + /*IN*/ PTUNNEL Cache ); NTKERNELAPI BOOLEAN NTAPI FsRtlIsNameInExpression ( - IN PUNICODE_STRING Expression, - IN PUNICODE_STRING Name, - IN BOOLEAN IgnoreCase, - IN PWCHAR UpcaseTable OPTIONAL + /*IN*/ PUNICODE_STRING Expression, + /*IN*/ PUNICODE_STRING Name, + /*IN*/ BOOLEAN IgnoreCase, + /*IN*/ PWCHAR UpcaseTable /*OPTIONAL*/ ); NTKERNELAPI BOOLEAN NTAPI FsRtlIsNtstatusExpected ( - IN NTSTATUS Ntstatus + /*IN*/ NTSTATUS Ntstatus ); #define FsRtlIsUnicodeCharacterWild(C) ( \ @@ -2556,128 +2556,128 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlMdlReadComplete ( - IN PFILE_OBJECT FileObject, - IN PMDL MdlChain + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PMDL MdlChain ); NTKERNELAPI BOOLEAN NTAPI FsRtlMdlReadCompleteDev ( - IN PFILE_OBJECT FileObject, - IN PMDL MdlChain, - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PMDL MdlChain, + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI BOOLEAN NTAPI FsRtlMdlWriteComplete ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN PMDL MdlChain + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PMDL MdlChain ); NTKERNELAPI BOOLEAN NTAPI FsRtlMdlWriteCompleteDev ( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN PMDL MdlChain, - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PMDL MdlChain, + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI NTSTATUS NTAPI FsRtlNormalizeNtstatus ( - IN NTSTATUS Exception, - IN NTSTATUS GenericException + /*IN*/ NTSTATUS Exception, + /*IN*/ NTSTATUS GenericException ); NTKERNELAPI VOID NTAPI FsRtlNotifyChangeDirectory ( - IN PNOTIFY_SYNC NotifySync, - IN PVOID FsContext, - IN PSTRING FullDirectoryName, - IN PLIST_ENTRY NotifyList, - IN BOOLEAN WatchTree, - IN ULONG CompletionFilter, - IN PIRP NotifyIrp + /*IN*/ PNOTIFY_SYNC NotifySync, + /*IN*/ PVOID FsContext, + /*IN*/ PSTRING FullDirectoryName, + /*IN*/ PLIST_ENTRY NotifyList, + /*IN*/ BOOLEAN WatchTree, + /*IN*/ ULONG CompletionFilter, + /*IN*/ PIRP NotifyIrp ); NTKERNELAPI VOID NTAPI FsRtlNotifyCleanup ( - IN PNOTIFY_SYNC NotifySync, - IN PLIST_ENTRY NotifyList, - IN PVOID FsContext + /*IN*/ PNOTIFY_SYNC NotifySync, + /*IN*/ PLIST_ENTRY NotifyList, + /*IN*/ PVOID FsContext ); typedef BOOLEAN (*PCHECK_FOR_TRAVERSE_ACCESS) ( - IN PVOID NotifyContext, - IN PVOID TargetContext, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext + /*IN*/ PVOID NotifyContext, + /*IN*/ PVOID TargetContext, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI VOID NTAPI FsRtlNotifyFullChangeDirectory ( - IN PNOTIFY_SYNC NotifySync, - IN PLIST_ENTRY NotifyList, - IN PVOID FsContext, - IN PSTRING FullDirectoryName, - IN BOOLEAN WatchTree, - IN BOOLEAN IgnoreBuffer, - IN ULONG CompletionFilter, - IN PIRP NotifyIrp, - IN PCHECK_FOR_TRAVERSE_ACCESS TraverseCallback OPTIONAL, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext OPTIONAL + /*IN*/ PNOTIFY_SYNC NotifySync, + /*IN*/ PLIST_ENTRY NotifyList, + /*IN*/ PVOID FsContext, + /*IN*/ PSTRING FullDirectoryName, + /*IN*/ BOOLEAN WatchTree, + /*IN*/ BOOLEAN IgnoreBuffer, + /*IN*/ ULONG CompletionFilter, + /*IN*/ PIRP NotifyIrp, + /*IN*/ PCHECK_FOR_TRAVERSE_ACCESS TraverseCallback /*OPTIONAL*/, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext /*OPTIONAL*/ ); NTKERNELAPI VOID NTAPI FsRtlNotifyFullReportChange ( - IN PNOTIFY_SYNC NotifySync, - IN PLIST_ENTRY NotifyList, - IN PSTRING FullTargetName, - IN USHORT TargetNameOffset, - IN PSTRING StreamName OPTIONAL, - IN PSTRING NormalizedParentName OPTIONAL, - IN ULONG FilterMatch, - IN ULONG Action, - IN PVOID TargetContext + /*IN*/ PNOTIFY_SYNC NotifySync, + /*IN*/ PLIST_ENTRY NotifyList, + /*IN*/ PSTRING FullTargetName, + /*IN*/ USHORT TargetNameOffset, + /*IN*/ PSTRING StreamName /*OPTIONAL*/, + /*IN*/ PSTRING NormalizedParentName /*OPTIONAL*/, + /*IN*/ ULONG FilterMatch, + /*IN*/ ULONG Action, + /*IN*/ PVOID TargetContext ); NTKERNELAPI VOID NTAPI FsRtlNotifyInitializeSync ( - IN PNOTIFY_SYNC NotifySync + /*IN*/ PNOTIFY_SYNC NotifySync ); NTKERNELAPI VOID NTAPI FsRtlNotifyReportChange ( - IN PNOTIFY_SYNC NotifySync, - IN PLIST_ENTRY NotifyList, - IN PSTRING FullTargetName, - IN PUSHORT FileNamePartLength, - IN ULONG FilterMatch + /*IN*/ PNOTIFY_SYNC NotifySync, + /*IN*/ PLIST_ENTRY NotifyList, + /*IN*/ PSTRING FullTargetName, + /*IN*/ PUSHORT FileNamePartLength, + /*IN*/ ULONG FilterMatch ); NTKERNELAPI VOID NTAPI FsRtlNotifyUninitializeSync ( - IN PNOTIFY_SYNC NotifySync + /*IN*/ PNOTIFY_SYNC NotifySync ); #if (VER_PRODUCTBUILD >= 2195) @@ -2686,8 +2686,8 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlNotifyVolumeEvent ( - IN PFILE_OBJECT FileObject, - IN ULONG EventCode + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ ULONG EventCode ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2696,16 +2696,16 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlOplockFsctrl ( - IN POPLOCK Oplock, - IN PIRP Irp, - IN ULONG OpenCount + /*IN*/ POPLOCK Oplock, + /*IN*/ PIRP Irp, + /*IN*/ ULONG OpenCount ); NTKERNELAPI BOOLEAN NTAPI FsRtlOplockIsFastIoPossible ( - IN POPLOCK Oplock + /*IN*/ POPLOCK Oplock ); /* @@ -2721,18 +2721,18 @@ NTKERNELAPI BOOLEAN NTAPI FsRtlPrivateLock ( - IN PFILE_LOCK FileLock, - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, - IN PEPROCESS Process, - IN ULONG Key, - IN BOOLEAN FailImmediately, - IN BOOLEAN ExclusiveLock, - OUT PIO_STATUS_BLOCK IoStatus, - IN PIRP Irp OPTIONAL, - IN PVOID Context, - IN BOOLEAN AlreadySynchronized + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, + /*IN*/ PEPROCESS Process, + /*IN*/ ULONG Key, + /*IN*/ BOOLEAN FailImmediately, + /*IN*/ BOOLEAN ExclusiveLock, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ PIRP Irp /*OPTIONAL*/, + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN AlreadySynchronized ); /* @@ -2760,53 +2760,53 @@ NTKERNELAPI NTSTATUS NTAPI FsRtlProcessFileLock ( - IN PFILE_LOCK FileLock, - IN PIRP Irp, - IN PVOID Context OPTIONAL + /*IN*/ PFILE_LOCK FileLock, + /*IN*/ PIRP Irp, + /*IN*/ PVOID Context /*OPTIONAL*/ ); NTKERNELAPI NTSTATUS NTAPI FsRtlRegisterUncProvider ( - IN OUT PHANDLE MupHandle, - IN PUNICODE_STRING RedirectorDeviceName, - IN BOOLEAN MailslotsSupported + /*IN OUT*/ PHANDLE MupHandle, + /*IN*/ PUNICODE_STRING RedirectorDeviceName, + /*IN*/ BOOLEAN MailslotsSupported ); NTKERNELAPI VOID NTAPI FsRtlUninitializeFileLock ( - IN PFILE_LOCK FileLock + /*IN*/ PFILE_LOCK FileLock ); NTKERNELAPI VOID NTAPI FsRtlUninitializeOplock ( - IN OUT POPLOCK Oplock + /*IN OUT*/ POPLOCK Oplock ); NTSYSAPI VOID NTAPI HalDisplayString ( - IN PCHAR String + /*IN*/ PCHAR String ); NTSYSAPI VOID NTAPI HalQueryRealTimeClock ( - IN OUT PTIME_FIELDS TimeFields + /*IN OUT*/ PTIME_FIELDS TimeFields ); NTSYSAPI VOID NTAPI HalSetRealTimeClock ( - IN PTIME_FIELDS TimeFields + /*IN*/ PTIME_FIELDS TimeFields ); #define InitializeMessageHeader(m, l, t) { \ @@ -2820,36 +2820,36 @@ NTKERNELAPI VOID NTAPI IoAcquireVpbSpinLock ( - OUT PKIRQL Irql + /*OUT*/ PKIRQL Irql ); NTKERNELAPI NTSTATUS NTAPI IoCheckDesiredAccess ( - IN OUT PACCESS_MASK DesiredAccess, - IN ACCESS_MASK GrantedAccess + /*IN OUT*/ PACCESS_MASK DesiredAccess, + /*IN*/ ACCESS_MASK GrantedAccess ); NTKERNELAPI NTSTATUS NTAPI IoCheckEaBufferValidity ( - IN PFILE_FULL_EA_INFORMATION EaBuffer, - IN ULONG EaLength, - OUT PULONG ErrorOffset + /*IN*/ PFILE_FULL_EA_INFORMATION EaBuffer, + /*IN*/ ULONG EaLength, + /*OUT*/ PULONG ErrorOffset ); NTKERNELAPI NTSTATUS NTAPI IoCheckFunctionAccess ( - IN ACCESS_MASK GrantedAccess, - IN UCHAR MajorFunction, - IN UCHAR MinorFunction, - IN ULONG IoControlCode, - IN PFILE_INFORMATION_CLASS FileInformationClass OPTIONAL, - IN PFS_INFORMATION_CLASS FsInformationClass OPTIONAL + /*IN*/ ACCESS_MASK GrantedAccess, + /*IN*/ UCHAR MajorFunction, + /*IN*/ UCHAR MinorFunction, + /*IN*/ ULONG IoControlCode, + /*IN*/ PFILE_INFORMATION_CLASS FileInformationClass /*OPTIONAL*/, + /*IN*/ PFS_INFORMATION_CLASS FsInformationClass /*OPTIONAL*/ ); #if (VER_PRODUCTBUILD >= 2195) @@ -2858,9 +2858,9 @@ NTKERNELAPI NTSTATUS NTAPI IoCheckQuotaBufferValidity ( - IN PFILE_QUOTA_INFORMATION QuotaBuffer, - IN ULONG QuotaLength, - OUT PULONG ErrorOffset + /*IN*/ PFILE_QUOTA_INFORMATION QuotaBuffer, + /*IN*/ ULONG QuotaLength, + /*OUT*/ PULONG ErrorOffset ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2869,8 +2869,8 @@ NTKERNELAPI PFILE_OBJECT NTAPI IoCreateStreamFileObject ( - IN PFILE_OBJECT FileObject OPTIONAL, - IN PDEVICE_OBJECT DeviceObject OPTIONAL + /*IN*/ PFILE_OBJECT FileObject /*OPTIONAL*/, + /*IN*/ PDEVICE_OBJECT DeviceObject /*OPTIONAL*/ ); #if (VER_PRODUCTBUILD >= 2195) @@ -2879,8 +2879,8 @@ NTKERNELAPI PFILE_OBJECT NTAPI IoCreateStreamFileObjectLite ( - IN PFILE_OBJECT FileObject OPTIONAL, - IN PDEVICE_OBJECT DeviceObject OPTIONAL + /*IN*/ PFILE_OBJECT FileObject /*OPTIONAL*/, + /*IN*/ PDEVICE_OBJECT DeviceObject /*OPTIONAL*/ ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2889,32 +2889,32 @@ NTKERNELAPI BOOLEAN NTAPI IoFastQueryNetworkAttributes ( - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN ACCESS_MASK DesiredAccess, - IN ULONG OpenOptions, - OUT PIO_STATUS_BLOCK IoStatus, - OUT PFILE_NETWORK_OPEN_INFORMATION Buffer + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG OpenOptions, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*OUT*/ PFILE_NETWORK_OPEN_INFORMATION Buffer ); NTKERNELAPI PDEVICE_OBJECT NTAPI IoGetAttachedDevice ( - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI PDEVICE_OBJECT NTAPI IoGetBaseFileSystemDeviceObject ( - IN PFILE_OBJECT FileObject + /*IN*/ PFILE_OBJECT FileObject ); NTKERNELAPI PEPROCESS NTAPI IoGetRequestorProcess ( - IN PIRP Irp + /*IN*/ PIRP Irp ); #if (VER_PRODUCTBUILD >= 2195) @@ -2923,7 +2923,7 @@ NTKERNELAPI ULONG NTAPI IoGetRequestorProcessId ( - IN PIRP Irp + /*IN*/ PIRP Irp ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2947,14 +2947,14 @@ NTKERNELAPI BOOLEAN NTAPI IoIsOperationSynchronous ( - IN PIRP Irp + /*IN*/ PIRP Irp ); NTKERNELAPI BOOLEAN NTAPI IoIsSystemThread ( - IN PETHREAD Thread + /*IN*/ PETHREAD Thread ); #if (VER_PRODUCTBUILD >= 2195) @@ -2963,8 +2963,8 @@ NTKERNELAPI BOOLEAN NTAPI IoIsValidNameGraftingBuffer ( - IN PIRP Irp, - IN PREPARSE_DATA_BUFFER ReparseBuffer + /*IN*/ PIRP Irp, + /*IN*/ PREPARSE_DATA_BUFFER ReparseBuffer ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -2973,55 +2973,55 @@ NTKERNELAPI NTSTATUS NTAPI IoPageRead ( - IN PFILE_OBJECT FileObject, - IN PMDL Mdl, - IN PLARGE_INTEGER Offset, - IN PKEVENT Event, - OUT PIO_STATUS_BLOCK IoStatusBlock + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PMDL Mdl, + /*IN*/ PLARGE_INTEGER Offset, + /*IN*/ PKEVENT Event, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock ); NTKERNELAPI NTSTATUS NTAPI IoQueryFileInformation ( - IN PFILE_OBJECT FileObject, - IN FILE_INFORMATION_CLASS FileInformationClass, - IN ULONG Length, - OUT PVOID FileInformation, - OUT PULONG ReturnedLength + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass, + /*IN*/ ULONG Length, + /*OUT*/ PVOID FileInformation, + /*OUT*/ PULONG ReturnedLength ); NTKERNELAPI NTSTATUS NTAPI IoQueryVolumeInformation ( - IN PFILE_OBJECT FileObject, - IN FS_INFORMATION_CLASS FsInformationClass, - IN ULONG Length, - OUT PVOID FsInformation, - OUT PULONG ReturnedLength + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ FS_INFORMATION_CLASS FsInformationClass, + /*IN*/ ULONG Length, + /*OUT*/ PVOID FsInformation, + /*OUT*/ PULONG ReturnedLength ); NTKERNELAPI VOID NTAPI IoRegisterFileSystem ( - IN OUT PDEVICE_OBJECT DeviceObject + /*IN OUT*/ PDEVICE_OBJECT DeviceObject ); #if (VER_PRODUCTBUILD >= 1381) typedef VOID (NTAPI *PDRIVER_FS_NOTIFICATION) ( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN DriverActive + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN DriverActive ); NTKERNELAPI NTSTATUS NTAPI IoRegisterFsRegistrationChange ( - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_FS_NOTIFICATION DriverNotificationRoutine + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_FS_NOTIFICATION DriverNotificationRoutine ); #endif /* (VER_PRODUCTBUILD >= 1381) */ @@ -3030,57 +3030,57 @@ NTKERNELAPI VOID NTAPI IoReleaseVpbSpinLock ( - IN KIRQL Irql + /*IN*/ KIRQL Irql ); NTKERNELAPI VOID NTAPI IoSetDeviceToVerify ( - IN PETHREAD Thread, - IN PDEVICE_OBJECT DeviceObject + /*IN*/ PETHREAD Thread, + /*IN*/ PDEVICE_OBJECT DeviceObject ); NTKERNELAPI NTSTATUS NTAPI IoSetInformation ( - IN PFILE_OBJECT FileObject, - IN FILE_INFORMATION_CLASS FileInformationClass, - IN ULONG Length, - IN PVOID FileInformation + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass, + /*IN*/ ULONG Length, + /*IN*/ PVOID FileInformation ); NTKERNELAPI VOID NTAPI IoSetTopLevelIrp ( - IN PIRP Irp + /*IN*/ PIRP Irp ); NTKERNELAPI NTSTATUS NTAPI IoSynchronousPageWrite ( - IN PFILE_OBJECT FileObject, - IN PMDL Mdl, - IN PLARGE_INTEGER FileOffset, - IN PKEVENT Event, - OUT PIO_STATUS_BLOCK IoStatusBlock + /*IN*/ PFILE_OBJECT FileObject, + /*IN*/ PMDL Mdl, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PKEVENT Event, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock ); NTKERNELAPI PEPROCESS NTAPI IoThreadToProcess ( - IN PETHREAD Thread + /*IN*/ PETHREAD Thread ); NTKERNELAPI VOID NTAPI IoUnregisterFileSystem ( - IN OUT PDEVICE_OBJECT DeviceObject + /*IN OUT*/ PDEVICE_OBJECT DeviceObject ); #if (VER_PRODUCTBUILD >= 1381) @@ -3089,8 +3089,8 @@ NTKERNELAPI NTSTATUS NTAPI IoUnregisterFsRegistrationChange ( - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_FS_NOTIFICATION DriverNotificationRoutine + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_FS_NOTIFICATION DriverNotificationRoutine ); #endif /* (VER_PRODUCTBUILD >= 1381) */ @@ -3099,15 +3099,15 @@ NTKERNELAPI NTSTATUS NTAPI IoVerifyVolume ( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN AllowRawMount + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN AllowRawMount ); NTKERNELAPI VOID NTAPI KeAttachProcess ( - IN PEPROCESS Process + /*IN*/ PEPROCESS Process ); NTKERNELAPI @@ -3121,57 +3121,57 @@ NTKERNELAPI VOID NTAPI KeInitializeQueue ( - IN PRKQUEUE Queue, - IN ULONG Count OPTIONAL + /*IN*/ PRKQUEUE Queue, + /*IN*/ ULONG Count /*OPTIONAL*/ ); NTKERNELAPI LONG NTAPI KeInsertHeadQueue ( - IN PRKQUEUE Queue, - IN PLIST_ENTRY Entry + /*IN*/ PRKQUEUE Queue, + /*IN*/ PLIST_ENTRY Entry ); NTKERNELAPI LONG NTAPI KeInsertQueue ( - IN PRKQUEUE Queue, - IN PLIST_ENTRY Entry + /*IN*/ PRKQUEUE Queue, + /*IN*/ PLIST_ENTRY Entry ); NTKERNELAPI BOOLEAN NTAPI KeInsertQueueApc ( - IN PKAPC Apc, - IN PVOID SystemArgument1, - IN PVOID SystemArgument2, - IN KPRIORITY PriorityBoost + /*IN*/ PKAPC Apc, + /*IN*/ PVOID SystemArgument1, + /*IN*/ PVOID SystemArgument2, + /*IN*/ KPRIORITY PriorityBoost ); NTKERNELAPI LONG NTAPI KeReadStateQueue ( - IN PRKQUEUE Queue + /*IN*/ PRKQUEUE Queue ); NTKERNELAPI PLIST_ENTRY NTAPI KeRemoveQueue ( - IN PRKQUEUE Queue, - IN KPROCESSOR_MODE WaitMode, - IN PLARGE_INTEGER Timeout OPTIONAL + /*IN*/ PRKQUEUE Queue, + /*IN*/ KPROCESSOR_MODE WaitMode, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/ ); NTKERNELAPI PLIST_ENTRY NTAPI KeRundownQueue ( - IN PRKQUEUE Queue + /*IN*/ PRKQUEUE Queue ); #if (VER_PRODUCTBUILD >= 2195) @@ -3180,15 +3180,15 @@ NTKERNELAPI VOID NTAPI KeStackAttachProcess ( - IN PKPROCESS Process, - OUT PKAPC_STATE ApcState + /*IN*/ PKPROCESS Process, + /*OUT*/ PKAPC_STATE ApcState ); NTKERNELAPI VOID NTAPI KeUnstackDetachProcess ( - IN PKAPC_STATE ApcState + /*IN*/ PKAPC_STATE ApcState ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3197,24 +3197,24 @@ NTKERNELAPI BOOLEAN NTAPI MmCanFileBeTruncated ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN PLARGE_INTEGER NewFileSize + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ PLARGE_INTEGER NewFileSize ); NTKERNELAPI BOOLEAN NTAPI MmFlushImageSection ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN MMFLUSH_TYPE FlushType + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ MMFLUSH_TYPE FlushType ); NTKERNELAPI BOOLEAN NTAPI MmForceSectionClosed ( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN BOOLEAN DelayClose + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ BOOLEAN DelayClose ); #if (VER_PRODUCTBUILD >= 1381) @@ -3239,119 +3239,119 @@ NTKERNELAPI NTSTATUS NTAPI MmMapViewOfSection ( - IN PVOID SectionObject, - IN PEPROCESS Process, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN ULONG CommitSize, - IN OUT PLARGE_INTEGER SectionOffset OPTIONAL, - IN OUT PULONG ViewSize, - IN SECTION_INHERIT InheritDisposition, - IN ULONG AllocationType, - IN ULONG Protect + /*IN*/ PVOID SectionObject, + /*IN*/ PEPROCESS Process, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN*/ ULONG CommitSize, + /*IN OUT*/ PLARGE_INTEGER SectionOffset /*OPTIONAL*/, + /*IN OUT*/ PULONG ViewSize, + /*IN*/ SECTION_INHERIT InheritDisposition, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect ); NTKERNELAPI BOOLEAN NTAPI MmSetAddressRangeModified ( - IN PVOID Address, - IN ULONG Length + /*IN*/ PVOID Address, + /*IN*/ ULONG Length ); NTKERNELAPI NTSTATUS NTAPI ObCreateObject ( - IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL, - IN POBJECT_TYPE ObjectType, - IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, - IN KPROCESSOR_MODE AccessMode, - IN OUT PVOID ParseContext OPTIONAL, - IN ULONG ObjectSize, - IN ULONG PagedPoolCharge OPTIONAL, - IN ULONG NonPagedPoolCharge OPTIONAL, - OUT PVOID *Object + /*IN*/ KPROCESSOR_MODE ObjectAttributesAccessMode /*OPTIONAL*/, + /*IN*/ POBJECT_TYPE ObjectType, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN OUT*/ PVOID ParseContext /*OPTIONAL*/, + /*IN*/ ULONG ObjectSize, + /*IN*/ ULONG PagedPoolCharge /*OPTIONAL*/, + /*IN*/ ULONG NonPagedPoolCharge /*OPTIONAL*/, + /*OUT*/ PVOID *Object ); NTKERNELAPI ULONG NTAPI ObGetObjectPointerCount ( - IN PVOID Object + /*IN*/ PVOID Object ); NTKERNELAPI NTSTATUS NTAPI ObInsertObject ( - IN PVOID Object, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess, - IN ULONG AdditionalReferences, - OUT PVOID *ReferencedObject OPTIONAL, - OUT PHANDLE Handle + /*IN*/ PVOID Object, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG AdditionalReferences, + /*OUT*/ PVOID *ReferencedObject /*OPTIONAL*/, + /*OUT*/ PHANDLE Handle ); NTKERNELAPI VOID NTAPI ObMakeTemporaryObject ( - IN PVOID Object + /*IN*/ PVOID Object ); NTKERNELAPI NTSTATUS NTAPI ObOpenObjectByPointer ( - IN PVOID Object, - IN ULONG HandleAttributes, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess OPTIONAL, - IN POBJECT_TYPE ObjectType OPTIONAL, - IN KPROCESSOR_MODE AccessMode, - OUT PHANDLE Handle + /*IN*/ PVOID Object, + /*IN*/ ULONG HandleAttributes, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess /*OPTIONAL*/, + /*IN*/ POBJECT_TYPE ObjectType /*OPTIONAL*/, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PHANDLE Handle ); NTKERNELAPI NTSTATUS NTAPI ObQueryNameString ( - IN PVOID Object, - OUT POBJECT_NAME_INFORMATION ObjectNameInfo, - IN ULONG Length, - OUT PULONG ReturnLength + /*IN*/ PVOID Object, + /*OUT*/ POBJECT_NAME_INFORMATION ObjectNameInfo, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ReturnLength ); NTKERNELAPI NTSTATUS NTAPI ObQueryObjectAuditingByHandle ( - IN HANDLE Handle, - OUT PBOOLEAN GenerateOnClose + /*IN*/ HANDLE Handle, + /*OUT*/ PBOOLEAN GenerateOnClose ); NTKERNELAPI NTSTATUS NTAPI ObReferenceObjectByName ( - IN PUNICODE_STRING ObjectName, - IN ULONG Attributes, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess OPTIONAL, - IN POBJECT_TYPE ObjectType, - IN KPROCESSOR_MODE AccessMode, - IN OUT PVOID ParseContext OPTIONAL, - OUT PVOID *Object + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ ULONG Attributes, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess /*OPTIONAL*/, + /*IN*/ POBJECT_TYPE ObjectType, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN OUT*/ PVOID ParseContext /*OPTIONAL*/, + /*OUT*/ PVOID *Object ); NTKERNELAPI VOID NTAPI PsChargePoolQuota ( - IN PEPROCESS Process, - IN POOL_TYPE PoolType, - IN ULONG Amount + /*IN*/ PEPROCESS Process, + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG Amount ); #define PsDereferenceImpersonationToken(T) \ @@ -3375,58 +3375,58 @@ NTKERNELAPI BOOLEAN NTAPI PsIsThreadTerminating ( - IN PETHREAD Thread + /*IN*/ PETHREAD Thread ); NTKERNELAPI NTSTATUS NTAPI PsLookupProcessByProcessId ( - IN PVOID ProcessId, - OUT PEPROCESS *Process + /*IN*/ PVOID ProcessId, + /*OUT*/ PEPROCESS *Process ); NTKERNELAPI NTSTATUS NTAPI PsLookupProcessThreadByCid ( - IN PCLIENT_ID Cid, - OUT PEPROCESS *Process OPTIONAL, - OUT PETHREAD *Thread + /*IN*/ PCLIENT_ID Cid, + /*OUT*/ PEPROCESS *Process /*OPTIONAL*/, + /*OUT*/ PETHREAD *Thread ); NTKERNELAPI NTSTATUS NTAPI PsLookupThreadByThreadId ( - IN PVOID UniqueThreadId, - OUT PETHREAD *Thread + /*IN*/ PVOID UniqueThreadId, + /*OUT*/ PETHREAD *Thread ); NTKERNELAPI PACCESS_TOKEN NTAPI PsReferenceImpersonationToken ( - IN PETHREAD Thread, - OUT PBOOLEAN CopyOnUse, - OUT PBOOLEAN EffectiveOnly, - OUT PSECURITY_IMPERSONATION_LEVEL Level + /*IN*/ PETHREAD Thread, + /*OUT*/ PBOOLEAN CopyOnUse, + /*OUT*/ PBOOLEAN EffectiveOnly, + /*OUT*/ PSECURITY_IMPERSONATION_LEVEL Level ); NTKERNELAPI HANDLE NTAPI PsReferencePrimaryToken ( - IN PEPROCESS Process + /*IN*/ PEPROCESS Process ); NTKERNELAPI VOID NTAPI PsReturnPoolQuota ( - IN PEPROCESS Process, - IN POOL_TYPE PoolType, - IN ULONG Amount + /*IN*/ PEPROCESS Process, + /*IN*/ POOL_TYPE PoolType, + /*IN*/ ULONG Amount ); NTKERNELAPI @@ -3440,203 +3440,203 @@ NTSYSAPI NTSTATUS NTAPI RtlAbsoluteToSelfRelativeSD ( - IN PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor, - IN OUT PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor, - IN PULONG BufferLength + /*IN*/ PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor, + /*IN OUT*/ PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor, + /*IN*/ PULONG BufferLength ); NTSYSAPI PVOID NTAPI RtlAllocateHeap ( - IN HANDLE HeapHandle, - IN ULONG Flags, - IN ULONG Size + /*IN*/ HANDLE HeapHandle, + /*IN*/ ULONG Flags, + /*IN*/ ULONG Size ); NTSYSAPI NTSTATUS NTAPI RtlCompressBuffer ( - IN USHORT CompressionFormatAndEngine, - IN PUCHAR UncompressedBuffer, - IN ULONG UncompressedBufferSize, - OUT PUCHAR CompressedBuffer, - IN ULONG CompressedBufferSize, - IN ULONG UncompressedChunkSize, - OUT PULONG FinalCompressedSize, - IN PVOID WorkSpace + /*IN*/ USHORT CompressionFormatAndEngine, + /*IN*/ PUCHAR UncompressedBuffer, + /*IN*/ ULONG UncompressedBufferSize, + /*OUT*/ PUCHAR CompressedBuffer, + /*IN*/ ULONG CompressedBufferSize, + /*IN*/ ULONG UncompressedChunkSize, + /*OUT*/ PULONG FinalCompressedSize, + /*IN*/ PVOID WorkSpace ); NTSYSAPI NTSTATUS NTAPI RtlCompressChunks ( - IN PUCHAR UncompressedBuffer, - IN ULONG UncompressedBufferSize, - OUT PUCHAR CompressedBuffer, - IN ULONG CompressedBufferSize, - IN OUT PCOMPRESSED_DATA_INFO CompressedDataInfo, - IN ULONG CompressedDataInfoLength, - IN PVOID WorkSpace + /*IN*/ PUCHAR UncompressedBuffer, + /*IN*/ ULONG UncompressedBufferSize, + /*OUT*/ PUCHAR CompressedBuffer, + /*IN*/ ULONG CompressedBufferSize, + /*IN OUT*/ PCOMPRESSED_DATA_INFO CompressedDataInfo, + /*IN*/ ULONG CompressedDataInfoLength, + /*IN*/ PVOID WorkSpace ); NTSYSAPI NTSTATUS NTAPI RtlConvertSidToUnicodeString ( - OUT PUNICODE_STRING DestinationString, - IN PSID Sid, - IN BOOLEAN AllocateDestinationString + /*OUT*/ PUNICODE_STRING DestinationString, + /*IN*/ PSID Sid, + /*IN*/ BOOLEAN AllocateDestinationString ); NTSYSAPI NTSTATUS NTAPI RtlCopySid ( - IN ULONG Length, - IN PSID Destination, - IN PSID Source + /*IN*/ ULONG Length, + /*IN*/ PSID Destination, + /*IN*/ PSID Source ); NTSYSAPI NTSTATUS NTAPI RtlDecompressBuffer ( - IN USHORT CompressionFormat, - OUT PUCHAR UncompressedBuffer, - IN ULONG UncompressedBufferSize, - IN PUCHAR CompressedBuffer, - IN ULONG CompressedBufferSize, - OUT PULONG FinalUncompressedSize + /*IN*/ USHORT CompressionFormat, + /*OUT*/ PUCHAR UncompressedBuffer, + /*IN*/ ULONG UncompressedBufferSize, + /*IN*/ PUCHAR CompressedBuffer, + /*IN*/ ULONG CompressedBufferSize, + /*OUT*/ PULONG FinalUncompressedSize ); NTSYSAPI NTSTATUS NTAPI RtlDecompressChunks ( - OUT PUCHAR UncompressedBuffer, - IN ULONG UncompressedBufferSize, - IN PUCHAR CompressedBuffer, - IN ULONG CompressedBufferSize, - IN PUCHAR CompressedTail, - IN ULONG CompressedTailSize, - IN PCOMPRESSED_DATA_INFO CompressedDataInfo + /*OUT*/ PUCHAR UncompressedBuffer, + /*IN*/ ULONG UncompressedBufferSize, + /*IN*/ PUCHAR CompressedBuffer, + /*IN*/ ULONG CompressedBufferSize, + /*IN*/ PUCHAR CompressedTail, + /*IN*/ ULONG CompressedTailSize, + /*IN*/ PCOMPRESSED_DATA_INFO CompressedDataInfo ); NTSYSAPI NTSTATUS NTAPI RtlDecompressFragment ( - IN USHORT CompressionFormat, - OUT PUCHAR UncompressedFragment, - IN ULONG UncompressedFragmentSize, - IN PUCHAR CompressedBuffer, - IN ULONG CompressedBufferSize, - IN ULONG FragmentOffset, - OUT PULONG FinalUncompressedSize, - IN PVOID WorkSpace + /*IN*/ USHORT CompressionFormat, + /*OUT*/ PUCHAR UncompressedFragment, + /*IN*/ ULONG UncompressedFragmentSize, + /*IN*/ PUCHAR CompressedBuffer, + /*IN*/ ULONG CompressedBufferSize, + /*IN*/ ULONG FragmentOffset, + /*OUT*/ PULONG FinalUncompressedSize, + /*IN*/ PVOID WorkSpace ); NTSYSAPI NTSTATUS NTAPI RtlDescribeChunk ( - IN USHORT CompressionFormat, - IN OUT PUCHAR *CompressedBuffer, - IN PUCHAR EndOfCompressedBufferPlus1, - OUT PUCHAR *ChunkBuffer, - OUT PULONG ChunkSize + /*IN*/ USHORT CompressionFormat, + /*IN OUT*/ PUCHAR *CompressedBuffer, + /*IN*/ PUCHAR EndOfCompressedBufferPlus1, + /*OUT*/ PUCHAR *ChunkBuffer, + /*OUT*/ PULONG ChunkSize ); NTSYSAPI BOOLEAN NTAPI RtlEqualSid ( - IN PSID Sid1, - IN PSID Sid2 + /*IN*/ PSID Sid1, + /*IN*/ PSID Sid2 ); NTSYSAPI VOID NTAPI RtlFillMemoryUlong ( - IN PVOID Destination, - IN ULONG Length, - IN ULONG Fill + /*IN*/ PVOID Destination, + /*IN*/ ULONG Length, + /*IN*/ ULONG Fill ); NTSYSAPI BOOLEAN NTAPI RtlFreeHeap ( - IN HANDLE HeapHandle, - IN ULONG Flags, - IN PVOID P + /*IN*/ HANDLE HeapHandle, + /*IN*/ ULONG Flags, + /*IN*/ PVOID P ); NTSYSAPI VOID NTAPI RtlGenerate8dot3Name ( - IN PUNICODE_STRING Name, - IN BOOLEAN AllowExtendedCharacters, - IN OUT PGENERATE_NAME_CONTEXT Context, - OUT PUNICODE_STRING Name8dot3 + /*IN*/ PUNICODE_STRING Name, + /*IN*/ BOOLEAN AllowExtendedCharacters, + /*IN OUT*/ PGENERATE_NAME_CONTEXT Context, + /*OUT*/ PUNICODE_STRING Name8dot3 ); NTSYSAPI NTSTATUS NTAPI RtlGetCompressionWorkSpaceSize ( - IN USHORT CompressionFormatAndEngine, - OUT PULONG CompressBufferWorkSpaceSize, - OUT PULONG CompressFragmentWorkSpaceSize + /*IN*/ USHORT CompressionFormatAndEngine, + /*OUT*/ PULONG CompressBufferWorkSpaceSize, + /*OUT*/ PULONG CompressFragmentWorkSpaceSize ); NTSYSAPI NTSTATUS NTAPI RtlGetDaclSecurityDescriptor ( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - OUT PBOOLEAN DaclPresent, - OUT PACL *Dacl, - OUT PBOOLEAN DaclDefaulted + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*OUT*/ PBOOLEAN DaclPresent, + /*OUT*/ PACL *Dacl, + /*OUT*/ PBOOLEAN DaclDefaulted ); NTSYSAPI NTSTATUS NTAPI RtlGetGroupSecurityDescriptor ( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - OUT PSID *Group, - OUT PBOOLEAN GroupDefaulted + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*OUT*/ PSID *Group, + /*OUT*/ PBOOLEAN GroupDefaulted ); NTSYSAPI NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor ( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - OUT PSID *Owner, - OUT PBOOLEAN OwnerDefaulted + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*OUT*/ PSID *Owner, + /*OUT*/ PBOOLEAN OwnerDefaulted ); NTSYSAPI NTSTATUS NTAPI RtlInitializeSid ( - IN OUT PSID Sid, - IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, - IN UCHAR SubAuthorityCount + /*IN OUT*/ PSID Sid, + /*IN*/ PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, + /*IN*/ UCHAR SubAuthorityCount ); NTSYSAPI BOOLEAN NTAPI RtlIsNameLegalDOS8Dot3 ( - IN PUNICODE_STRING UnicodeName, - IN PANSI_STRING AnsiName, + /*IN*/ PUNICODE_STRING UnicodeName, + /*IN*/ PANSI_STRING AnsiName, PBOOLEAN Unknown ); @@ -3644,40 +3644,40 @@ NTSYSAPI ULONG NTAPI RtlLengthRequiredSid ( - IN UCHAR SubAuthorityCount + /*IN*/ UCHAR SubAuthorityCount ); NTSYSAPI ULONG NTAPI RtlLengthSid ( - IN PSID Sid + /*IN*/ PSID Sid ); NTSYSAPI ULONG NTAPI RtlNtStatusToDosError ( - IN NTSTATUS Status + /*IN*/ NTSTATUS Status ); NTSYSAPI NTSTATUS NTAPI RtlReserveChunk ( - IN USHORT CompressionFormat, - IN OUT PUCHAR *CompressedBuffer, - IN PUCHAR EndOfCompressedBufferPlus1, - OUT PUCHAR *ChunkBuffer, - IN ULONG ChunkSize + /*IN*/ USHORT CompressionFormat, + /*IN OUT*/ PUCHAR *CompressedBuffer, + /*IN*/ PUCHAR EndOfCompressedBufferPlus1, + /*OUT*/ PUCHAR *ChunkBuffer, + /*IN*/ ULONG ChunkSize ); NTSYSAPI VOID NTAPI RtlSecondsSince1970ToTime ( - IN ULONG SecondsSince1970, - OUT PLARGE_INTEGER Time + /*IN*/ ULONG SecondsSince1970, + /*OUT*/ PLARGE_INTEGER Time ); #if (VER_PRODUCTBUILD >= 2195) @@ -3686,17 +3686,17 @@ NTSYSAPI NTSTATUS NTAPI RtlSelfRelativeToAbsoluteSD ( - IN PSECURITY_DESCRIPTOR SelfRelativeSD, - OUT PSECURITY_DESCRIPTOR AbsoluteSD, - IN PULONG AbsoluteSDSize, - IN PACL Dacl, - IN PULONG DaclSize, - IN PACL Sacl, - IN PULONG SaclSize, - IN PSID Owner, - IN PULONG OwnerSize, - IN PSID PrimaryGroup, - IN PULONG PrimaryGroupSize + /*IN*/ PSECURITY_DESCRIPTOR SelfRelativeSD, + /*OUT*/ PSECURITY_DESCRIPTOR AbsoluteSD, + /*IN*/ PULONG AbsoluteSDSize, + /*IN*/ PACL Dacl, + /*IN*/ PULONG DaclSize, + /*IN*/ PACL Sacl, + /*IN*/ PULONG SaclSize, + /*IN*/ PSID Owner, + /*IN*/ PULONG OwnerSize, + /*IN*/ PSID PrimaryGroup, + /*IN*/ PULONG PrimaryGroupSize ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3705,50 +3705,50 @@ NTSYSAPI NTSTATUS NTAPI RtlSetGroupSecurityDescriptor ( - IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID Group, - IN BOOLEAN GroupDefaulted + /*IN OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID Group, + /*IN*/ BOOLEAN GroupDefaulted ); NTSYSAPI NTSTATUS NTAPI RtlSetOwnerSecurityDescriptor ( - IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSID Owner, - IN BOOLEAN OwnerDefaulted + /*IN OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID Owner, + /*IN*/ BOOLEAN OwnerDefaulted ); NTSYSAPI NTSTATUS NTAPI RtlSetSaclSecurityDescriptor ( - IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN BOOLEAN SaclPresent, - IN PACL Sacl, - IN BOOLEAN SaclDefaulted + /*IN OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ BOOLEAN SaclPresent, + /*IN*/ PACL Sacl, + /*IN*/ BOOLEAN SaclDefaulted ); NTSYSAPI PUCHAR NTAPI RtlSubAuthorityCountSid ( - IN PSID Sid + /*IN*/ PSID Sid ); NTSYSAPI PULONG NTAPI RtlSubAuthoritySid ( - IN PSID Sid, - IN ULONG SubAuthority + /*IN*/ PSID Sid, + /*IN*/ ULONG SubAuthority ); NTSYSAPI BOOLEAN NTAPI RtlValidSid ( - IN PSID Sid + /*IN*/ PSID Sid ); NTKERNELAPI @@ -3763,44 +3763,44 @@ NTKERNELAPI BOOLEAN NTAPI SeAuditingFileEvents ( - IN BOOLEAN AccessGranted, - IN PSECURITY_DESCRIPTOR SecurityDescriptor + /*IN*/ BOOLEAN AccessGranted, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor ); NTKERNELAPI BOOLEAN NTAPI SeAuditingFileOrGlobalEvents ( - IN BOOLEAN AccessGranted, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext + /*IN*/ BOOLEAN AccessGranted, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI VOID NTAPI SeCaptureSubjectContext ( - OUT PSECURITY_SUBJECT_CONTEXT SubjectContext + /*OUT*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI NTSTATUS NTAPI SeCreateAccessState ( - OUT PACCESS_STATE AccessState, - IN PVOID AuxData, - IN ACCESS_MASK AccessMask, - IN PGENERIC_MAPPING Mapping + /*OUT*/ PACCESS_STATE AccessState, + /*IN*/ PVOID AuxData, + /*IN*/ ACCESS_MASK AccessMask, + /*IN*/ PGENERIC_MAPPING Mapping ); NTKERNELAPI NTSTATUS NTAPI SeCreateClientSecurity ( - IN PETHREAD Thread, - IN PSECURITY_QUALITY_OF_SERVICE QualityOfService, - IN BOOLEAN RemoteClient, - OUT PSECURITY_CLIENT_CONTEXT ClientContext + /*IN*/ PETHREAD Thread, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE QualityOfService, + /*IN*/ BOOLEAN RemoteClient, + /*OUT*/ PSECURITY_CLIENT_CONTEXT ClientContext ); #if (VER_PRODUCTBUILD >= 2195) @@ -3809,10 +3809,10 @@ NTKERNELAPI NTSTATUS NTAPI SeCreateClientSecurityFromSubjectContext ( - IN PSECURITY_SUBJECT_CONTEXT SubjectContext, - IN PSECURITY_QUALITY_OF_SERVICE QualityOfService, - IN BOOLEAN ServerIsRemote, - OUT PSECURITY_CLIENT_CONTEXT ClientContext + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE QualityOfService, + /*IN*/ BOOLEAN ServerIsRemote, + /*OUT*/ PSECURITY_CLIENT_CONTEXT ClientContext ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3829,8 +3829,8 @@ NTKERNELAPI VOID NTAPI SeDeleteObjectAuditAlarm ( - IN PVOID Object, - IN HANDLE Handle + /*IN*/ PVOID Object, + /*IN*/ HANDLE Handle ); #define SeEnableAccessToExports() SeExports = *(PSE_EXPORTS *)SeExports; @@ -3839,15 +3839,15 @@ NTKERNELAPI VOID NTAPI SeFreePrivileges ( - IN PPRIVILEGE_SET Privileges + /*IN*/ PPRIVILEGE_SET Privileges ); NTKERNELAPI VOID NTAPI SeImpersonateClient ( - IN PSECURITY_CLIENT_CONTEXT ClientContext, - IN PETHREAD ServerThread OPTIONAL + /*IN*/ PSECURITY_CLIENT_CONTEXT ClientContext, + /*IN*/ PETHREAD ServerThread /*OPTIONAL*/ ); #if (VER_PRODUCTBUILD >= 2195) @@ -3856,8 +3856,8 @@ NTKERNELAPI NTSTATUS NTAPI SeImpersonateClientEx ( - IN PSECURITY_CLIENT_CONTEXT ClientContext, - IN PETHREAD ServerThread OPTIONAL + /*IN*/ PSECURITY_CLIENT_CONTEXT ClientContext, + /*IN*/ PETHREAD ServerThread /*OPTIONAL*/ ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3866,61 +3866,61 @@ NTKERNELAPI VOID NTAPI SeLockSubjectContext ( - IN PSECURITY_SUBJECT_CONTEXT SubjectContext + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI NTSTATUS NTAPI SeMarkLogonSessionForTerminationNotification ( - IN PLUID LogonId + /*IN*/ PLUID LogonId ); NTKERNELAPI VOID NTAPI SeOpenObjectAuditAlarm ( - IN PUNICODE_STRING ObjectTypeName, - IN PVOID Object OPTIONAL, - IN PUNICODE_STRING AbsoluteObjectName OPTIONAL, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PACCESS_STATE AccessState, - IN BOOLEAN ObjectCreated, - IN BOOLEAN AccessGranted, - IN KPROCESSOR_MODE AccessMode, - OUT PBOOLEAN GenerateOnClose + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PVOID Object /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING AbsoluteObjectName /*OPTIONAL*/, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PACCESS_STATE AccessState, + /*IN*/ BOOLEAN ObjectCreated, + /*IN*/ BOOLEAN AccessGranted, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PBOOLEAN GenerateOnClose ); NTKERNELAPI VOID NTAPI SeOpenObjectForDeleteAuditAlarm ( - IN PUNICODE_STRING ObjectTypeName, - IN PVOID Object OPTIONAL, - IN PUNICODE_STRING AbsoluteObjectName OPTIONAL, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PACCESS_STATE AccessState, - IN BOOLEAN ObjectCreated, - IN BOOLEAN AccessGranted, - IN KPROCESSOR_MODE AccessMode, - OUT PBOOLEAN GenerateOnClose + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PVOID Object /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING AbsoluteObjectName /*OPTIONAL*/, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PACCESS_STATE AccessState, + /*IN*/ BOOLEAN ObjectCreated, + /*IN*/ BOOLEAN AccessGranted, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PBOOLEAN GenerateOnClose ); NTKERNELAPI BOOLEAN NTAPI SePrivilegeCheck ( - IN OUT PPRIVILEGE_SET RequiredPrivileges, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext, - IN KPROCESSOR_MODE AccessMode + /*IN OUT*/ PPRIVILEGE_SET RequiredPrivileges, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext, + /*IN*/ KPROCESSOR_MODE AccessMode ); NTKERNELAPI NTSTATUS NTAPI SeQueryAuthenticationIdToken ( - IN PACCESS_TOKEN Token, - OUT PLUID LogonId + /*IN*/ PACCESS_TOKEN Token, + /*OUT*/ PLUID LogonId ); #if (VER_PRODUCTBUILD >= 2195) @@ -3929,9 +3929,9 @@ NTKERNELAPI NTSTATUS NTAPI SeQueryInformationToken ( - IN PACCESS_TOKEN Token, - IN TOKEN_INFORMATION_CLASS TokenInformationClass, - OUT PVOID *TokenInformation + /*IN*/ PACCESS_TOKEN Token, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*OUT*/ PVOID *TokenInformation ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3940,10 +3940,10 @@ NTKERNELAPI NTSTATUS NTAPI SeQuerySecurityDescriptorInfo ( - IN PSECURITY_INFORMATION SecurityInformation, - OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN OUT PULONG Length, - IN PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor + /*IN*/ PSECURITY_INFORMATION SecurityInformation, + /*OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN OUT*/ PULONG Length, + /*IN*/ PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor ); #if (VER_PRODUCTBUILD >= 2195) @@ -3952,8 +3952,8 @@ NTKERNELAPI NTSTATUS NTAPI SeQuerySessionIdToken ( - IN PACCESS_TOKEN Token, - IN PULONG SessionId + /*IN*/ PACCESS_TOKEN Token, + /*IN*/ PULONG SessionId ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -3966,21 +3966,21 @@ SeQuerySessionIdToken ( ((PSECURITY_SUBJECT_CONTEXT) SubjectContext)->PrimaryToken ) typedef NTSTATUS (*PSE_LOGON_SESSION_TERMINATED_ROUTINE) ( - IN PLUID LogonId + /*IN*/ PLUID LogonId ); NTKERNELAPI NTSTATUS NTAPI SeRegisterLogonSessionTerminatedRoutine ( - IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine + /*IN*/ PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine ); NTKERNELAPI VOID NTAPI SeReleaseSubjectContext ( - IN PSECURITY_SUBJECT_CONTEXT SubjectContext + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI @@ -3995,12 +3995,12 @@ NTKERNELAPI NTSTATUS NTAPI SeSetSecurityDescriptorInfo ( - IN PVOID Object OPTIONAL, - IN PSECURITY_INFORMATION SecurityInformation, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, - IN POOL_TYPE PoolType, - IN PGENERIC_MAPPING GenericMapping + /*IN*/ PVOID Object /*OPTIONAL*/, + /*IN*/ PSECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN OUT*/ PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, + /*IN*/ POOL_TYPE PoolType, + /*IN*/ PGENERIC_MAPPING GenericMapping ); #if (VER_PRODUCTBUILD >= 2195) @@ -4009,27 +4009,27 @@ NTKERNELAPI NTSTATUS NTAPI SeSetSecurityDescriptorInfoEx ( - IN PVOID Object OPTIONAL, - IN PSECURITY_INFORMATION SecurityInformation, - IN PSECURITY_DESCRIPTOR ModificationDescriptor, - IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, - IN ULONG AutoInheritFlags, - IN POOL_TYPE PoolType, - IN PGENERIC_MAPPING GenericMapping + /*IN*/ PVOID Object /*OPTIONAL*/, + /*IN*/ PSECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR ModificationDescriptor, + /*IN OUT*/ PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, + /*IN*/ ULONG AutoInheritFlags, + /*IN*/ POOL_TYPE PoolType, + /*IN*/ PGENERIC_MAPPING GenericMapping ); NTKERNELAPI BOOLEAN NTAPI SeTokenIsAdmin ( - IN PACCESS_TOKEN Token + /*IN*/ PACCESS_TOKEN Token ); NTKERNELAPI BOOLEAN NTAPI SeTokenIsRestricted ( - IN PACCESS_TOKEN Token + /*IN*/ PACCESS_TOKEN Token ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4038,20 +4038,20 @@ NTKERNELAPI TOKEN_TYPE NTAPI SeTokenType ( - IN PACCESS_TOKEN Token + /*IN*/ PACCESS_TOKEN Token ); NTKERNELAPI VOID NTAPI SeUnlockSubjectContext ( - IN PSECURITY_SUBJECT_CONTEXT SubjectContext + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext ); NTKERNELAPI NTSTATUS SeUnregisterLogonSessionTerminatedRoutine ( - IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine + /*IN*/ PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine ); #if (VER_PRODUCTBUILD >= 2195) @@ -4060,12 +4060,12 @@ NTSYSAPI NTSTATUS NTAPI ZwAdjustPrivilegesToken ( - IN HANDLE TokenHandle, - IN BOOLEAN DisableAllPrivileges, - IN PTOKEN_PRIVILEGES NewState, - IN ULONG BufferLength, - OUT PTOKEN_PRIVILEGES PreviousState OPTIONAL, - OUT PULONG ReturnLength + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN DisableAllPrivileges, + /*IN*/ PTOKEN_PRIVILEGES NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_PRIVILEGES PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4074,36 +4074,36 @@ NTSYSAPI NTSTATUS NTAPI ZwAlertThread ( - IN HANDLE ThreadHandle + /*IN*/ HANDLE ThreadHandle ); NTSYSAPI NTSTATUS NTAPI ZwAllocateVirtualMemory ( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN OUT PULONG RegionSize, - IN ULONG AllocationType, - IN ULONG Protect + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN OUT*/ PULONG RegionSize, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect ); NTSYSAPI NTSTATUS NTAPI ZwAccessCheckAndAuditAlarm ( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN PUNICODE_STRING ObjectTypeName, - IN PUNICODE_STRING ObjectName, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ACCESS_MASK DesiredAccess, - IN PGENERIC_MAPPING GenericMapping, - IN BOOLEAN ObjectCreation, - OUT PACCESS_MASK GrantedAccess, - OUT PBOOLEAN AccessStatus, - OUT PBOOLEAN GenerateOnClose + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose ); #if (VER_PRODUCTBUILD >= 2195) @@ -4112,8 +4112,8 @@ NTSYSAPI NTSTATUS NTAPI ZwCancelIoFile ( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4122,111 +4122,111 @@ NTSYSAPI NTSTATUS NTAPI ZwClearEvent ( - IN HANDLE EventHandle + /*IN*/ HANDLE EventHandle ); NTSYSAPI NTSTATUS NTAPI ZwCloseObjectAuditAlarm ( - IN PUNICODE_STRING SubsystemName, - IN PVOID HandleId, - IN BOOLEAN GenerateOnClose + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose ); NTSYSAPI NTSTATUS NTAPI ZwCreateSection ( - OUT PHANDLE SectionHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, - IN PLARGE_INTEGER MaximumSize OPTIONAL, - IN ULONG SectionPageProtection, - IN ULONG AllocationAttributes, - IN HANDLE FileHandle OPTIONAL + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ PLARGE_INTEGER MaximumSize /*OPTIONAL*/, + /*IN*/ ULONG SectionPageProtection, + /*IN*/ ULONG AllocationAttributes, + /*IN*/ HANDLE FileHandle /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwCreateSymbolicLinkObject ( - OUT PHANDLE SymbolicLinkHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PUNICODE_STRING TargetName + /*OUT*/ PHANDLE SymbolicLinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PUNICODE_STRING TargetName ); NTSYSAPI NTSTATUS NTAPI ZwDeleteFile ( - IN POBJECT_ATTRIBUTES ObjectAttributes + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwDeleteValueKey ( - IN HANDLE Handle, - IN PUNICODE_STRING Name + /*IN*/ HANDLE Handle, + /*IN*/ PUNICODE_STRING Name ); NTSYSAPI NTSTATUS NTAPI ZwDeviceIoControlFile ( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG IoControlCode, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG IoControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength ); NTSYSAPI NTSTATUS NTAPI ZwDisplayString ( - IN PUNICODE_STRING String + /*IN*/ PUNICODE_STRING String ); NTSYSAPI NTSTATUS NTAPI ZwDuplicateObject ( - IN HANDLE SourceProcessHandle, - IN HANDLE SourceHandle, - IN HANDLE TargetProcessHandle OPTIONAL, - OUT PHANDLE TargetHandle OPTIONAL, - IN ACCESS_MASK DesiredAccess, - IN ULONG HandleAttributes, - IN ULONG Options + /*IN*/ HANDLE SourceProcessHandle, + /*IN*/ HANDLE SourceHandle, + /*IN*/ HANDLE TargetProcessHandle /*OPTIONAL*/, + /*OUT*/ PHANDLE TargetHandle /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG HandleAttributes, + /*IN*/ ULONG Options ); NTSYSAPI NTSTATUS NTAPI ZwDuplicateToken ( - IN HANDLE ExistingTokenHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN EffectiveOnly, - IN TOKEN_TYPE TokenType, - OUT PHANDLE NewTokenHandle + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN EffectiveOnly, + /*IN*/ TOKEN_TYPE TokenType, + /*OUT*/ PHANDLE NewTokenHandle ); NTSYSAPI NTSTATUS NTAPI ZwFlushInstructionCache ( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress OPTIONAL, - IN ULONG FlushSize + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress /*OPTIONAL*/, + /*IN*/ ULONG FlushSize ); #if (VER_PRODUCTBUILD >= 2195) @@ -4235,10 +4235,10 @@ NTSYSAPI NTSTATUS NTAPI ZwFlushVirtualMemory ( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG FlushSize, - OUT PIO_STATUS_BLOCK IoStatusBlock + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FlushSize, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4247,26 +4247,26 @@ NTSYSAPI NTSTATUS NTAPI ZwFreeVirtualMemory ( - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN OUT PULONG RegionSize, - IN ULONG FreeType + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG RegionSize, + /*IN*/ ULONG FreeType ); NTSYSAPI NTSTATUS NTAPI ZwFsControlFile ( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG FsControlCode, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG FsControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength ); #if (VER_PRODUCTBUILD >= 2195) @@ -4275,10 +4275,10 @@ NTSYSAPI NTSTATUS NTAPI ZwInitiatePowerAction ( - 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 ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4288,88 +4288,88 @@ NTSTATUS NTAPI ZwLoadDriver ( /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\" */ - IN PUNICODE_STRING RegistryPath + /*IN*/ PUNICODE_STRING RegistryPath ); NTSYSAPI NTSTATUS NTAPI ZwLoadKey ( - IN POBJECT_ATTRIBUTES KeyObjectAttributes, - IN POBJECT_ATTRIBUTES FileObjectAttributes + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwNotifyChangeKey ( - IN HANDLE KeyHandle, - IN HANDLE EventHandle OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG NotifyFilter, - IN BOOLEAN WatchSubtree, - IN PVOID Buffer, - IN ULONG BufferLength, - IN BOOLEAN Asynchronous + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous ); NTSYSAPI NTSTATUS NTAPI ZwOpenDirectoryObject ( - OUT PHANDLE DirectoryHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwOpenEvent ( - OUT PHANDLE EventHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes + /*OUT*/ PHANDLE EventHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwOpenProcess ( - OUT PHANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PCLIENT_ID ClientId OPTIONAL + /*OUT*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwOpenProcessToken ( - IN HANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE TokenHandle + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE TokenHandle ); NTSYSAPI NTSTATUS NTAPI ZwOpenThread ( - OUT PHANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PCLIENT_ID ClientId + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId ); NTSYSAPI NTSTATUS NTAPI ZwOpenThreadToken ( - IN HANDLE ThreadHandle, - IN ACCESS_MASK DesiredAccess, - IN BOOLEAN OpenAsSelf, - OUT PHANDLE TokenHandle + /*IN*/ HANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ BOOLEAN OpenAsSelf, + /*OUT*/ PHANDLE TokenHandle ); #if (VER_PRODUCTBUILD >= 2195) @@ -4378,11 +4378,11 @@ NTSYSAPI NTSTATUS NTAPI ZwPowerInformation ( - IN POWER_INFORMATION_LEVEL PowerInformationLevel, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength + /*IN*/ POWER_INFORMATION_LEVEL PowerInformationLevel, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4391,33 +4391,33 @@ NTSYSAPI NTSTATUS NTAPI ZwPulseEvent ( - IN HANDLE EventHandle, - OUT PULONG PreviousState OPTIONAL + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultLocale ( - IN BOOLEAN ThreadOrSystem, - OUT PLCID Locale + /*IN*/ BOOLEAN ThreadOrSystem, + /*OUT*/ PLCID Locale ); NTSYSAPI NTSTATUS NTAPI ZwQueryDirectoryFile ( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass, - IN BOOLEAN ReturnSingleEntry, - IN PUNICODE_STRING FileName OPTIONAL, - IN BOOLEAN RestartScan + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ PUNICODE_STRING FileName /*OPTIONAL*/, + /*IN*/ BOOLEAN RestartScan ); #if (VER_PRODUCTBUILD >= 2195) @@ -4426,28 +4426,28 @@ NTSYSAPI NTSTATUS NTAPI ZwQueryDirectoryObject ( - IN HANDLE DirectoryHandle, - OUT PVOID Buffer, - IN ULONG Length, - IN BOOLEAN ReturnSingleEntry, - IN BOOLEAN RestartScan, - IN OUT PULONG Context, - OUT PULONG ReturnLength OPTIONAL + /*IN*/ HANDLE DirectoryHandle, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ BOOLEAN RestartScan, + /*IN OUT*/ PULONG Context, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwQueryEaFile ( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID Buffer, - IN ULONG Length, - IN BOOLEAN ReturnSingleEntry, - IN PVOID EaList OPTIONAL, - IN ULONG EaListLength, - IN PULONG EaIndex OPTIONAL, - IN BOOLEAN RestartScan + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ PVOID EaList /*OPTIONAL*/, + /*IN*/ ULONG EaListLength, + /*IN*/ PULONG EaIndex /*OPTIONAL*/, + /*IN*/ BOOLEAN RestartScan ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4456,93 +4456,93 @@ NTSYSAPI NTSTATUS NTAPI ZwQueryInformationProcess ( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - OUT PVOID ProcessInformation, - IN ULONG ProcessInformationLength, - OUT PULONG ReturnLength OPTIONAL + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*OUT*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwQueryInformationToken ( - IN HANDLE TokenHandle, - IN TOKEN_INFORMATION_CLASS TokenInformationClass, - OUT PVOID TokenInformation, - IN ULONG Length, - OUT PULONG ResultLength + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*OUT*/ PVOID TokenInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength ); NTSYSAPI NTSTATUS NTAPI ZwQueryObject ( - IN HANDLE ObjectHandle, - IN OBJECT_INFORMATION_CLASS ObjectInformationClass, - OUT PVOID ObjectInformation, - IN ULONG Length, - OUT PULONG ResultLength + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*OUT*/ PVOID ObjectInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength ); NTSYSAPI NTSTATUS NTAPI ZwQuerySection ( - IN HANDLE SectionHandle, - IN SECTION_INFORMATION_CLASS SectionInformationClass, - OUT PVOID SectionInformation, - IN ULONG SectionInformationLength, - OUT PULONG ResultLength OPTIONAL + /*IN*/ HANDLE SectionHandle, + /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, + /*OUT*/ PVOID SectionInformation, + /*IN*/ ULONG SectionInformationLength, + /*OUT*/ PULONG ResultLength /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwQuerySecurityObject ( - IN HANDLE FileHandle, - IN SECURITY_INFORMATION SecurityInformation, - OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG Length, - OUT PULONG ResultLength + /*IN*/ HANDLE FileHandle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength ); NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation ( - IN SYSTEM_INFORMATION_CLASS SystemInformationClass, - OUT PVOID SystemInformation, - IN ULONG Length, - OUT PULONG ReturnLength + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*OUT*/ PVOID SystemInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ReturnLength ); NTSYSAPI NTSTATUS NTAPI ZwQueryVolumeInformationFile ( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID FsInformation, - IN ULONG Length, - IN FS_INFORMATION_CLASS FsInformationClass + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FsInformation, + /*IN*/ ULONG Length, + /*IN*/ FS_INFORMATION_CLASS FsInformationClass ); NTSYSAPI NTSTATUS NTAPI ZwReplaceKey ( - IN POBJECT_ATTRIBUTES NewFileObjectAttributes, - IN HANDLE KeyHandle, - IN POBJECT_ATTRIBUTES OldFileObjectAttributes + /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, + /*IN*/ HANDLE KeyHandle, + /*IN*/ POBJECT_ATTRIBUTES OldFileObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwResetEvent ( - IN HANDLE EventHandle, - OUT PULONG PreviousState OPTIONAL + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ ); #if (VER_PRODUCTBUILD >= 2195) @@ -4551,9 +4551,9 @@ NTSYSAPI NTSTATUS NTAPI ZwRestoreKey ( - IN HANDLE KeyHandle, - IN HANDLE FileHandle, - IN ULONG Flags + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle, + /*IN*/ ULONG Flags ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4562,16 +4562,16 @@ NTSYSAPI NTSTATUS NTAPI ZwSaveKey ( - IN HANDLE KeyHandle, - IN HANDLE FileHandle + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle ); NTSYSAPI NTSTATUS NTAPI ZwSetDefaultLocale ( - IN BOOLEAN ThreadOrSystem, - IN LCID Locale + /*IN*/ BOOLEAN ThreadOrSystem, + /*IN*/ LCID Locale ); #if (VER_PRODUCTBUILD >= 2195) @@ -4580,17 +4580,17 @@ NTSYSAPI NTSTATUS NTAPI ZwSetDefaultUILanguage ( - IN LANGID LanguageId + /*IN*/ LANGID LanguageId ); NTSYSAPI NTSTATUS NTAPI ZwSetEaFile ( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID Buffer, - IN ULONG Length + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4599,28 +4599,28 @@ NTSYSAPI NTSTATUS NTAPI ZwSetEvent ( - IN HANDLE EventHandle, - OUT PULONG PreviousState OPTIONAL + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwSetInformationObject ( - IN HANDLE ObjectHandle, - IN OBJECT_INFORMATION_CLASS ObjectInformationClass, - IN PVOID ObjectInformation, - IN ULONG ObjectInformationLength + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*IN*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength ); NTSYSAPI NTSTATUS NTAPI ZwSetInformationProcess ( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - IN PVOID ProcessInformation, - IN ULONG ProcessInformationLength + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*IN*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength ); #if (VER_PRODUCTBUILD >= 2195) @@ -4629,9 +4629,9 @@ NTSYSAPI NTSTATUS NTAPI ZwSetSecurityObject ( - IN HANDLE Handle, - IN SECURITY_INFORMATION SecurityInformation, - IN PSECURITY_DESCRIPTOR SecurityDescriptor + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4640,17 +4640,17 @@ NTSYSAPI NTSTATUS NTAPI ZwSetSystemInformation ( - IN SYSTEM_INFORMATION_CLASS SystemInformationClass, - IN PVOID SystemInformation, - IN ULONG Length + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN*/ PVOID SystemInformation, + /*IN*/ ULONG Length ); NTSYSAPI NTSTATUS NTAPI ZwSetSystemTime ( - IN PLARGE_INTEGER NewTime, - OUT PLARGE_INTEGER OldTime OPTIONAL + /*IN*/ PLARGE_INTEGER NewTime, + /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/ ); #if (VER_PRODUCTBUILD >= 2195) @@ -4659,11 +4659,11 @@ NTSYSAPI NTSTATUS NTAPI ZwSetVolumeInformationFile ( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PVOID FsInformation, - IN ULONG Length, - IN FS_INFORMATION_CLASS FsInformationClass + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID FsInformation, + /*IN*/ ULONG Length, + /*IN*/ FS_INFORMATION_CLASS FsInformationClass ); #endif /* (VER_PRODUCTBUILD >= 2195) */ @@ -4672,8 +4672,8 @@ NTSYSAPI NTSTATUS NTAPI ZwTerminateProcess ( - IN HANDLE ProcessHandle OPTIONAL, - IN NTSTATUS ExitStatus + /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus ); NTSYSAPI @@ -4681,34 +4681,34 @@ NTSTATUS NTAPI ZwUnloadDriver ( /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\" */ - IN PUNICODE_STRING RegistryPath + /*IN*/ PUNICODE_STRING RegistryPath ); NTSYSAPI NTSTATUS NTAPI ZwUnloadKey ( - IN POBJECT_ATTRIBUTES KeyObjectAttributes + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes ); NTSYSAPI NTSTATUS NTAPI ZwWaitForSingleObject ( - IN HANDLE Handle, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Timeout OPTIONAL + /*IN*/ HANDLE Handle, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/ ); NTSYSAPI NTSTATUS NTAPI ZwWaitForMultipleObjects ( - IN ULONG HandleCount, - IN PHANDLE Handles, - IN WAIT_TYPE WaitType, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Timeout OPTIONAL + /*IN*/ ULONG HandleCount, + /*IN*/ PHANDLE Handles, + /*IN*/ WAIT_TYPE WaitType, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/ ); NTSYSAPI diff --git a/winsup/w32api/include/ddk/ntpoapi.h b/winsup/w32api/include/ddk/ntpoapi.h index 9c854bf23..5173c6538 100644 --- a/winsup/w32api/include/ddk/ntpoapi.h +++ b/winsup/w32api/include/ddk/ntpoapi.h @@ -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 diff --git a/winsup/w32api/include/ddk/parallel.h b/winsup/w32api/include/ddk/parallel.h index d6a2429af..06230b81e 100644 --- a/winsup/w32api/include/ddk/parallel.h +++ b/winsup/w32api/include/ddk/parallel.h @@ -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; diff --git a/winsup/w32api/include/ddk/pfhook.h b/winsup/w32api/include/ddk/pfhook.h index 57e3973bb..1b42bfab4 100644 --- a/winsup/w32api/include/ddk/pfhook.h +++ b/winsup/w32api/include/ddk/pfhook.h @@ -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; diff --git a/winsup/w32api/include/ddk/scsiwmi.h b/winsup/w32api/include/ddk/scsiwmi.h index 684271593..7aae2a83a 100644 --- a/winsup/w32api/include/ddk/scsiwmi.h +++ b/winsup/w32api/include/ddk/scsiwmi.h @@ -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) diff --git a/winsup/w32api/include/ddk/smbus.h b/winsup/w32api/include/ddk/smbus.h index 6531c15dc..a88d39736 100644 --- a/winsup/w32api/include/ddk/smbus.h +++ b/winsup/w32api/include/ddk/smbus.h @@ -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 } diff --git a/winsup/w32api/include/ddk/srb.h b/winsup/w32api/include/ddk/srb.h index 052d1682b..a93854c88 100644 --- a/winsup/w32api/include/ddk/srb.h +++ b/winsup/w32api/include/ddk/srb.h @@ -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 } diff --git a/winsup/w32api/include/ddk/storport.h b/winsup/w32api/include/ddk/storport.h index f4f9d3ccc..a7df9a1f3 100644 --- a/winsup/w32api/include/ddk/storport.h +++ b/winsup/w32api/include/ddk/storport.h @@ -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 diff --git a/winsup/w32api/include/ddk/tdikrnl.h b/winsup/w32api/include/ddk/tdikrnl.h index a019e7d23..1223c265a 100644 --- a/winsup/w32api/include/ddk/tdikrnl.h +++ b/winsup/w32api/include/ddk/tdikrnl.h @@ -163,236 +163,236 @@ typedef struct _TDI_REQUEST_KERNEL_SET_INFO { typedef NTSTATUS DDKAPI (*PTDI_IND_CONNECT)( - IN PVOID TdiEventContext, - IN LONG RemoteAddressLength, - IN PVOID RemoteAddress, - IN LONG UserDataLength, - IN PVOID UserData, - IN LONG OptionsLength, - IN PVOID Options, - OUT CONNECTION_CONTEXT *ConnectionContext, - OUT PIRP *AcceptIrp); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG RemoteAddressLength, + /*IN*/ PVOID RemoteAddress, + /*IN*/ LONG UserDataLength, + /*IN*/ PVOID UserData, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*OUT*/ CONNECTION_CONTEXT *ConnectionContext, + /*OUT*/ PIRP *AcceptIrp); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultConnectHandler( - IN PVOID TdiEventContext, - IN LONG RemoteAddressLength, - IN PVOID RemoteAddress, - IN LONG UserDataLength, - IN PVOID UserData, - IN LONG OptionsLength, - IN PVOID Options, - OUT CONNECTION_CONTEXT *ConnectionContext, - OUT PIRP *AcceptIrp); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG RemoteAddressLength, + /*IN*/ PVOID RemoteAddress, + /*IN*/ LONG UserDataLength, + /*IN*/ PVOID UserData, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*OUT*/ CONNECTION_CONTEXT *ConnectionContext, + /*OUT*/ PIRP *AcceptIrp); typedef NTSTATUS DDKAPI (*PTDI_IND_DISCONNECT)( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN LONG DisconnectDataLength, - IN PVOID DisconnectData, - IN LONG DisconnectInformationLength, - IN PVOID DisconnectInformation, - IN ULONG DisconnectFlags); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ LONG DisconnectDataLength, + /*IN*/ PVOID DisconnectData, + /*IN*/ LONG DisconnectInformationLength, + /*IN*/ PVOID DisconnectInformation, + /*IN*/ ULONG DisconnectFlags); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultDisconnectHandler( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN LONG DisconnectDataLength, - IN PVOID DisconnectData, - IN LONG DisconnectInformationLength, - IN PVOID DisconnectInformation, - IN ULONG DisconnectFlags); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ LONG DisconnectDataLength, + /*IN*/ PVOID DisconnectData, + /*IN*/ LONG DisconnectInformationLength, + /*IN*/ PVOID DisconnectInformation, + /*IN*/ ULONG DisconnectFlags); typedef NTSTATUS DDKAPI (*PTDI_IND_ERROR)( - IN PVOID TdiEventContext, - IN NTSTATUS Status); + /*IN*/ PVOID TdiEventContext, + /*IN*/ NTSTATUS Status); typedef NTSTATUS DDKAPI (*PTDI_IND_ERROR_EX)( - IN PVOID TdiEventContext, - IN NTSTATUS Status, - IN PVOID Buffer); + /*IN*/ PVOID TdiEventContext, + /*IN*/ NTSTATUS Status, + /*IN*/ PVOID Buffer); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultErrorHandler( - IN PVOID TdiEventContext, - IN NTSTATUS Status); + /*IN*/ PVOID TdiEventContext, + /*IN*/ NTSTATUS Status); typedef NTSTATUS DDKAPI (*PTDI_IND_RECEIVE)( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultReceiveHandler( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); typedef NTSTATUS DDKAPI (*PTDI_IND_RECEIVE_DATAGRAM)( - IN PVOID TdiEventContext, - IN LONG SourceAddressLength, - IN PVOID SourceAddress, - IN LONG OptionsLength, - IN PVOID Options, - IN ULONG ReceiveDatagramFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG SourceAddressLength, + /*IN*/ PVOID SourceAddress, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*IN*/ ULONG ReceiveDatagramFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultRcvDatagramHandler( - IN PVOID TdiEventContext, - IN LONG SourceAddressLength, - IN PVOID SourceAddress, - IN LONG OptionsLength, - IN PVOID Options, - IN ULONG ReceiveDatagramFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG SourceAddressLength, + /*IN*/ PVOID SourceAddress, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*IN*/ ULONG ReceiveDatagramFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); typedef NTSTATUS DDKAPI (*PTDI_IND_RECEIVE_EXPEDITED)( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultRcvExpeditedHandler( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG BytesIndicated, - IN ULONG BytesAvailable, - OUT ULONG *BytesTaken, - IN PVOID Tsdu, - OUT PIRP *IoRequestPacket); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG BytesIndicated, + /*IN*/ ULONG BytesAvailable, + /*OUT*/ ULONG *BytesTaken, + /*IN*/ PVOID Tsdu, + /*OUT*/ PIRP *IoRequestPacket); typedef NTSTATUS DDKAPI (*PTDI_IND_CHAINED_RECEIVE)( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG ReceiveLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG ReceiveLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultChainedReceiveHandler( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG ReceiveLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG ReceiveLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); typedef NTSTATUS DDKAPI (*PTDI_IND_CHAINED_RECEIVE_DATAGRAM)( - IN PVOID TdiEventContext, - IN LONG SourceAddressLength, - IN PVOID SourceAddress, - IN LONG OptionsLength, - IN PVOID Options, - IN ULONG ReceiveDatagramFlags, - IN ULONG ReceiveDatagramLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG SourceAddressLength, + /*IN*/ PVOID SourceAddress, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*IN*/ ULONG ReceiveDatagramFlags, + /*IN*/ ULONG ReceiveDatagramLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultChainedRcvDatagramHandler( - IN PVOID TdiEventContext, - IN LONG SourceAddressLength, - IN PVOID SourceAddress, - IN LONG OptionsLength, - IN PVOID Options, - IN ULONG ReceiveDatagramFlags, - IN ULONG ReceiveDatagramLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ LONG SourceAddressLength, + /*IN*/ PVOID SourceAddress, + /*IN*/ LONG OptionsLength, + /*IN*/ PVOID Options, + /*IN*/ ULONG ReceiveDatagramFlags, + /*IN*/ ULONG ReceiveDatagramLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); typedef NTSTATUS DDKAPI (*PTDI_IND_CHAINED_RECEIVE_EXPEDITED)( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG ReceiveLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG ReceiveLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultChainedRcvExpeditedHandler( - IN PVOID TdiEventContext, - IN CONNECTION_CONTEXT ConnectionContext, - IN ULONG ReceiveFlags, - IN ULONG ReceiveLength, - IN ULONG StartingOffset, - IN PMDL Tsdu, - IN PVOID TsduDescriptor); + /*IN*/ PVOID TdiEventContext, + /*IN*/ CONNECTION_CONTEXT ConnectionContext, + /*IN*/ ULONG ReceiveFlags, + /*IN*/ ULONG ReceiveLength, + /*IN*/ ULONG StartingOffset, + /*IN*/ PMDL Tsdu, + /*IN*/ PVOID TsduDescriptor); typedef NTSTATUS DDKAPI (*PTDI_IND_SEND_POSSIBLE)( - IN PVOID TdiEventContext, - IN PVOID ConnectionContext, - IN ULONG BytesAvailable); + /*IN*/ PVOID TdiEventContext, + /*IN*/ PVOID ConnectionContext, + /*IN*/ ULONG BytesAvailable); TDIKRNLAPI NTSTATUS DDKAPI TdiDefaultSendPossibleHandler( - IN PVOID TdiEventContext, - IN PVOID ConnectionContext, - IN ULONG BytesAvailable); + /*IN*/ PVOID TdiEventContext, + /*IN*/ PVOID ConnectionContext, + /*IN*/ ULONG BytesAvailable); -/* Macros and functions to build IRPs */ + /* Macros and functions to build IRPs */ #define TdiBuildBaseIrp( \ bIrp, bDevObj, bFileObj, bCompRoutine, bContxt, bIrpSp, bMinor) \ @@ -407,16 +407,16 @@ TdiDefaultSendPossibleHandler( IoSetCompletionRoutine(bIrp, NULL, NULL, FALSE, FALSE, FALSE); \ } -/* + /* * VOID * TdiBuildAccept( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, - * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, + * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); */ #define TdiBuildAccept( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -435,15 +435,15 @@ TdiDefaultSendPossibleHandler( _Request->ReturnConnectionInformation = (ReturnConnectionInfo); \ } -/* + /* * VOID * TdiBuildAction( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PMDL MdlAddr); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PMDL MdlAddr); */ #define TdiBuildAction( \ Irp, DevObj, FileObj, CompRoutine, Contxt, MdlAddr) \ @@ -458,15 +458,15 @@ TdiDefaultSendPossibleHandler( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildAssociateAddress( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN HANDLE AddrHandle); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN HANDLE AddrHandle); */ #define TdiBuildAssociateAddress( \ Irp, DevObj, FileObj, CompRoutine, Contxt, AddrHandle) \ @@ -483,17 +483,17 @@ TdiDefaultSendPossibleHandler( _Request->AddressHandle = (HANDLE)(AddrHandle); \ } -/* + /* * VOID * TdiBuildConnect( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PLARGE_INTEGER Time, - * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, - * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PLARGE_INTEGER Time, + * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, + * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); */ #define TdiBuildConnect( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -513,14 +513,14 @@ TdiDefaultSendPossibleHandler( _Request->RequestSpecific = (PVOID)(Time); \ } -/* + /* * VOID * TdiBuildDisassociateAddress( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt); */ #define TdiBuildDisassociateAddress( \ Irp, DevObj, FileObj, CompRoutine, Contxt) \ @@ -533,18 +533,18 @@ TdiDefaultSendPossibleHandler( Contxt, _IrpSp, TDI_DISASSOCIATE_ADDRESS); \ } -/* + /* * VOID * TdiBuildDisconnect( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PLARGE_INTEGER Time, - * IN PULONG Flags, - * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, - * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PLARGE_INTEGER Time, + * IN PULONG Flags, + * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, + * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); */ #define TdiBuildDisconnect( \ Irp, DevObj, FileObj, CompRoutine, Contxt, Time, \ @@ -565,14 +565,14 @@ TdiDefaultSendPossibleHandler( _Request->RequestFlags = (Flags); \ } -/* + /* * PIRP * TdiBuildInternalDeviceControlIrp( - * IN CCHAR IrpSubFunction, - * IN PDEVICE_OBJECT DeviceObject, - * IN PFILE_OBJECT FileObject, - * IN PKEVENT Event, - * IN PIO_STATUS_BLOCK IoStatusBlock); + * IN CCHAR IrpSubFunction, + * IN PDEVICE_OBJECT DeviceObject, + * IN PFILE_OBJECT FileObject, + * IN PKEVENT Event, + * IN PIO_STATUS_BLOCK IoStatusBlock); */ #define TdiBuildInternalDeviceControlIrp( \ IrpSubFunction, DeviceObject, \ @@ -582,17 +582,17 @@ TdiDefaultSendPossibleHandler( NULL, 0, NULL, 0, \ TRUE, Event, IoStatusBlock) -/* + /* * VOID * TdiBuildListen( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN ULONG Flags, - * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, - * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN ULONG Flags, + * IN PTDI_CONNECTION_INFORMATION RequestConnectionInfo, + * OUT PTDI_CONNECTION_INFORMATION ReturnConnectionInfo); */ #define TdiBuildListen( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -616,28 +616,28 @@ TDIKRNLAPI VOID DDKAPI TdiBuildNetbiosAddress( - IN PUCHAR NetbiosName, - IN BOOLEAN IsGroupName, - IN OUT PTA_NETBIOS_ADDRESS NetworkName); + /*IN*/ PUCHAR NetbiosName, + /*IN*/ BOOLEAN IsGroupName, + /*IN OUT*/ PTA_NETBIOS_ADDRESS NetworkName); TDIKRNLAPI NTSTATUS DDKAPI TdiBuildNetbiosAddressEa( - IN PUCHAR Buffer, - IN BOOLEAN IsGroupName, - IN PUCHAR NetbiosName); + /*IN*/ PUCHAR Buffer, + /*IN*/ BOOLEAN IsGroupName, + /*IN*/ PUCHAR NetbiosName); -/* + /* * VOID * TdiBuildQueryInformation( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN UINT QType, - * IN PMDL MdlAddr); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN UINT QType, + * IN PMDL MdlAddr); */ #define TdiBuildQueryInformation( \ Irp, DevObj, FileObj, CompRoutine, Contxt, QType, MdlAddr) \ @@ -656,17 +656,17 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildReceive( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PMDL MdlAddr, - * IN ULONG InFlags, - * IN ULONG ReceiveLen); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PMDL MdlAddr, + * IN ULONG InFlags, + * IN ULONG ReceiveLen); */ #define TdiBuildReceive( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -686,18 +686,18 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildReceiveDatagram( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PMDL MdlAddr, - * IN ULONG ReceiveLen, - * IN PTDI_CONNECTION_INFORMATION ReceiveDatagramInfo, - * OUT PTDI_CONNECTION_INFORMATION ReturnInfo, + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PMDL MdlAddr, + * IN ULONG ReceiveLen, + * IN PTDI_CONNECTION_INFORMATION ReceiveDatagramInfo, + * OUT PTDI_CONNECTION_INFORMATION ReturnInfo, * ULONG InFlags); */ #define TdiBuildReceiveDatagram( \ @@ -720,17 +720,17 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildSend( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PMDL MdlAddr, - * IN ULONG InFlags, - * IN ULONG SendLen); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PMDL MdlAddr, + * IN ULONG InFlags, + * IN ULONG SendLen); */ #define TdiBuildSend( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -750,17 +750,17 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildSendDatagram( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN PMDL MdlAddr, - * IN ULONG SendLen, - * IN PTDI_CONNECTION_INFORMATION SendDatagramInfo); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN PMDL MdlAddr, + * IN ULONG SendLen, + * IN PTDI_CONNECTION_INFORMATION SendDatagramInfo); */ #define TdiBuildSendDatagram( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -780,17 +780,17 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* + /* * VOID * TdiBuildSetEventHandler( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN INT InEventType, - * IN PVOID InEventHandler, - * IN PVOID InEventContext); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN INT InEventType, + * IN PVOID InEventHandler, + * IN PVOID InEventContext); */ #define TdiBuildSetEventHandler( \ Irp, DevObj, FileObj, CompRoutine, Contxt, \ @@ -810,16 +810,16 @@ TdiBuildNetbiosAddressEa( _Request->EventContext = (PVOID)(InEventContext); \ } -/* + /* * VOID * TdiBuildSetInformation( - * IN PIRP Irp, - * IN PDEVICE_OBJECT DevObj, - * IN PFILE_OBJECT FileObj, - * IN PVOID CompRoutine, - * IN PVOID Contxt, - * IN UINT SType, - * IN PMDL MdlAddr); + * IN PIRP Irp, + * IN PDEVICE_OBJECT DevObj, + * IN PFILE_OBJECT FileObj, + * IN PVOID CompRoutine, + * IN PVOID Contxt, + * IN UINT SType, + * IN PMDL MdlAddr); */ #define TdiBuildSetInformation( \ Irp, DevObj, FileObj, CompRoutine, Contxt, SType, MdlAddr) \ @@ -838,7 +838,7 @@ TdiBuildNetbiosAddressEa( (Irp)->MdlAddress = (MdlAddr); \ } -/* TDI20_CLIENT_INTERFACE_INFO.TdiVersion constants */ + /* TDI20_CLIENT_INTERFACE_INFO.TdiVersion constants */ #define TDI_CURRENT_MAJOR_VERSION 2 #define TDI_CURRENT_MINOR_VERSION 0 @@ -859,7 +859,7 @@ typedef enum _TDI_PNP_OPCODE { TDI_PNP_OP_MAX } TDI_PNP_OPCODE; -/* TDI_PNP_CONTEXT.ContextType */ + /* TDI_PNP_CONTEXT.ContextType */ #define TDI_PNP_CONTEXT_TYPE_IF_NAME 0x1 #define TDI_PNP_CONTEXT_TYPE_IF_ADDR 0x2 #define TDI_PNP_CONTEXT_TYPE_PDO 0x3 @@ -873,49 +873,49 @@ typedef struct _TDI_PNP_CONTEXT { typedef VOID DDKAPI (*TDI_ADD_ADDRESS_HANDLER)( - IN PTA_ADDRESS Address); + /*IN*/ PTA_ADDRESS Address); typedef VOID DDKAPI (*TDI_ADD_ADDRESS_HANDLER_V2)( - IN PTA_ADDRESS Address, - IN PUNICODE_STRING DeviceName, - IN PTDI_PNP_CONTEXT Context); + /*IN*/ PTA_ADDRESS Address, + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PTDI_PNP_CONTEXT Context); typedef VOID DDKAPI (*TDI_BINDING_HANDLER)( - IN TDI_PNP_OPCODE PnPOpcode, - IN PUNICODE_STRING DeviceName, - IN PWSTR MultiSZBindList); + /*IN*/ TDI_PNP_OPCODE PnPOpcode, + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PWSTR MultiSZBindList); typedef VOID DDKAPI (*TDI_BIND_HANDLER)( - IN PUNICODE_STRING DeviceName); + /*IN*/ PUNICODE_STRING DeviceName); typedef VOID DDKAPI (*TDI_DEL_ADDRESS_HANDLER)( - IN PTA_ADDRESS Address); + /*IN*/ PTA_ADDRESS Address); typedef VOID DDKAPI (*TDI_DEL_ADDRESS_HANDLER_V2)( - IN PTA_ADDRESS Address, - IN PUNICODE_STRING DeviceName, - IN PTDI_PNP_CONTEXT Context); + /*IN*/ PTA_ADDRESS Address, + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PTDI_PNP_CONTEXT Context); typedef NTSTATUS DDKAPI (*TDI_PNP_POWER_HANDLER)( - IN PUNICODE_STRING DeviceName, - IN PNET_PNP_EVENT PowerEvent, - IN PTDI_PNP_CONTEXT Context1, - IN PTDI_PNP_CONTEXT Context2); + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PNET_PNP_EVENT PowerEvent, + /*IN*/ PTDI_PNP_CONTEXT Context1, + /*IN*/ PTDI_PNP_CONTEXT Context2); typedef VOID DDKAPI (*TDI_UNBIND_HANDLER)( - IN PUNICODE_STRING DeviceName); + /*IN*/ PUNICODE_STRING DeviceName); typedef VOID DDKAPI (*ProviderPnPPowerComplete)( - IN PNET_PNP_EVENT NetEvent, - IN NTSTATUS ProviderStatus); + /*IN*/ PNET_PNP_EVENT NetEvent, + /*IN*/ NTSTATUS ProviderStatus); typedef struct _TDI20_CLIENT_INTERFACE_INFO { _ANONYMOUS_UNION union { @@ -951,13 +951,13 @@ typedef TDI20_CLIENT_INTERFACE_INFO TDI_CLIENT_INTERFACE_INFO; typedef TDI_CLIENT_INTERFACE_INFO *PTDI_CLIENT_INTERFACE_INFO; -/* TDI functions */ + /* TDI functions */ -/* + /* * VOID * TdiCompleteRequest( - * IN PIRP Irp, - * IN NTSTATUS Status); + * IN PIRP Irp, + * IN NTSTATUS Status); */ #define TdiCompleteRequest(Irp, Status) \ { \ @@ -969,20 +969,20 @@ TDIKRNLAPI NTSTATUS DDKAPI TdiCopyBufferToMdl( - IN PVOID SourceBuffer, - IN ULONG SourceOffset, - IN ULONG SourceBytesToCopy, - IN PMDL DestinationMdlChain, - IN ULONG DestinationOffset, - IN PULONG BytesCopied); + /*IN*/ PVOID SourceBuffer, + /*IN*/ ULONG SourceOffset, + /*IN*/ ULONG SourceBytesToCopy, + /*IN*/ PMDL DestinationMdlChain, + /*IN*/ ULONG DestinationOffset, + /*IN*/ PULONG BytesCopied); -/* + /* * VOID * TdiCopyLookaheadData( - * IN PVOID Destination, - * IN PVOID Source, - * IN ULONG Length, - * IN ULONG ReceiveFlags); + * IN PVOID Destination, + * IN PVOID Source, + * IN ULONG Length, + * IN ULONG ReceiveFlags); */ #define TdiCopyLookaheadData(Destination, Source, Length, ReceiveFlags) \ RtlCopyMemory(Destination, Source, Length) @@ -991,58 +991,58 @@ TDIKRNLAPI NTSTATUS DDKAPI TdiCopyMdlChainToMdlChain ( - IN PMDL SourceMdlChain, - IN ULONG SourceOffset, - IN PMDL DestinationMdlChain, - IN ULONG DestinationOffset, - OUT PULONG BytesCopied); + /*IN*/ PMDL SourceMdlChain, + /*IN*/ ULONG SourceOffset, + /*IN*/ PMDL DestinationMdlChain, + /*IN*/ ULONG DestinationOffset, + /*OUT*/ PULONG BytesCopied); TDIKRNLAPI NTSTATUS DDKAPI TdiCopyMdlToBuffer( - IN PMDL SourceMdlChain, - IN ULONG SourceOffset, - IN PVOID DestinationBuffer, - IN ULONG DestinationOffset, - IN ULONG DestinationBufferSize, - OUT PULONG BytesCopied); + /*IN*/ PMDL SourceMdlChain, + /*IN*/ ULONG SourceOffset, + /*IN*/ PVOID DestinationBuffer, + /*IN*/ ULONG DestinationOffset, + /*IN*/ ULONG DestinationBufferSize, + /*OUT*/ PULONG BytesCopied); TDIKRNLAPI NTSTATUS DDKAPI TdiDeregisterAddressChangeHandler( - IN HANDLE BindingHandle); + /*IN*/ HANDLE BindingHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiDeregisterDeviceObject( - IN HANDLE DevRegistrationHandle); + /*IN*/ HANDLE DevRegistrationHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiDeregisterNetAddress( - IN HANDLE AddrRegistrationHandle); + /*IN*/ HANDLE AddrRegistrationHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiDeregisterPnPHandlers( - IN HANDLE BindingHandle); + /*IN*/ HANDLE BindingHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiDeregisterProvider( - IN HANDLE ProviderHandle); + /*IN*/ HANDLE ProviderHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiEnumerateAddresses( - IN HANDLE BindingHandle); + /*IN*/ HANDLE BindingHandle); TDIKRNLAPI VOID @@ -1054,106 +1054,106 @@ TDIKRNLAPI VOID DDKAPI TdiMapBuffer( - IN PMDL MdlChain); + /*IN*/ PMDL MdlChain); TDIKRNLAPI NTSTATUS DDKAPI TdiMapUserRequest( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - IN PIO_STACK_LOCATION IrpSp); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp, + /*IN*/ PIO_STACK_LOCATION IrpSp); TDIKRNLAPI BOOLEAN DDKAPI TdiMatchPdoWithChainedReceiveContext( - IN PVOID TsduDescriptor, - IN PVOID PDO); + /*IN*/ PVOID TsduDescriptor, + /*IN*/ PVOID PDO); TDIKRNLAPI VOID DDKAPI TdiPnPPowerComplete( - IN HANDLE BindingHandle, - IN PNET_PNP_EVENT PowerEvent, - IN NTSTATUS Status); + /*IN*/ HANDLE BindingHandle, + /*IN*/ PNET_PNP_EVENT PowerEvent, + /*IN*/ NTSTATUS Status); TDIKRNLAPI NTSTATUS DDKAPI TdiPnPPowerRequest( - IN PUNICODE_STRING DeviceName, - IN PNET_PNP_EVENT PowerEvent, - IN PTDI_PNP_CONTEXT Context1, - IN PTDI_PNP_CONTEXT Context2, - IN ProviderPnPPowerComplete ProtocolCompletionHandler); + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PNET_PNP_EVENT PowerEvent, + /*IN*/ PTDI_PNP_CONTEXT Context1, + /*IN*/ PTDI_PNP_CONTEXT Context2, + /*IN*/ ProviderPnPPowerComplete ProtocolCompletionHandler); TDIKRNLAPI NTSTATUS DDKAPI TdiProviderReady( - IN HANDLE ProviderHandle); + /*IN*/ HANDLE ProviderHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterAddressChangeHandler( - IN TDI_ADD_ADDRESS_HANDLER AddHandler, - IN TDI_DEL_ADDRESS_HANDLER DeleteHandler, - OUT HANDLE *BindingHandle); + /*IN*/ TDI_ADD_ADDRESS_HANDLER AddHandler, + /*IN*/ TDI_DEL_ADDRESS_HANDLER DeleteHandler, + /*OUT*/ HANDLE *BindingHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterDeviceObject( - IN PUNICODE_STRING DeviceName, - OUT HANDLE *DevRegistrationHandle); + /*IN*/ PUNICODE_STRING DeviceName, + /*OUT*/ HANDLE *DevRegistrationHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterNetAddress( - IN PTA_ADDRESS Address, - IN PUNICODE_STRING DeviceName, - IN PTDI_PNP_CONTEXT Context, - OUT HANDLE *AddrRegistrationHandle); + /*IN*/ PTA_ADDRESS Address, + /*IN*/ PUNICODE_STRING DeviceName, + /*IN*/ PTDI_PNP_CONTEXT Context, + /*OUT*/ HANDLE *AddrRegistrationHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterNotificationHandler( - IN TDI_BIND_HANDLER BindHandler, - IN TDI_UNBIND_HANDLER UnbindHandler, - OUT HANDLE *BindingHandle); + /*IN*/ TDI_BIND_HANDLER BindHandler, + /*IN*/ TDI_UNBIND_HANDLER UnbindHandler, + /*OUT*/ HANDLE *BindingHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterPnPHandlers( - IN PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo, - IN ULONG InterfaceInfoSize, - OUT HANDLE *BindingHandle); + /*IN*/ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo, + /*IN*/ ULONG InterfaceInfoSize, + /*OUT*/ HANDLE *BindingHandle); TDIKRNLAPI NTSTATUS DDKAPI TdiRegisterProvider( - IN PUNICODE_STRING ProviderName, - OUT HANDLE *ProviderHandle); + /*IN*/ PUNICODE_STRING ProviderName, + /*OUT*/ HANDLE *ProviderHandle); TDIKRNLAPI VOID DDKAPI TdiReturnChainedReceives( - IN PVOID *TsduDescriptors, - IN ULONG NumberOfTsdus); + /*IN*/ PVOID *TsduDescriptors, + /*IN*/ ULONG NumberOfTsdus); TDIKRNLAPI VOID DDKAPI TdiUnmapBuffer( - IN PMDL MdlChain); + /*IN*/ PMDL MdlChain); #ifdef __cplusplus } diff --git a/winsup/w32api/include/ddk/upssvc.h b/winsup/w32api/include/ddk/upssvc.h index 404c25a38..561a163ff 100644 --- a/winsup/w32api/include/ddk/upssvc.h +++ b/winsup/w32api/include/ddk/upssvc.h @@ -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 } diff --git a/winsup/w32api/include/ddk/usbcamdi.h b/winsup/w32api/include/ddk/usbcamdi.h index 5d96435d8..3a0f9de4d 100644 --- a/winsup/w32api/include/ddk/usbcamdi.h +++ b/winsup/w32api/include/ddk/usbcamdi.h @@ -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) diff --git a/winsup/w32api/include/ddk/usbscan.h b/winsup/w32api/include/ddk/usbscan.h index d9a0b8ab1..f22b0b560 100644 --- a/winsup/w32api/include/ddk/usbscan.h +++ b/winsup/w32api/include/ddk/usbscan.h @@ -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 { diff --git a/winsup/w32api/include/ddk/video.h b/winsup/w32api/include/ddk/video.h index 68a496a62..52e821221 100644 --- a/winsup/w32api/include/ddk/video.h +++ b/winsup/w32api/include/ddk/video.h @@ -149,15 +149,15 @@ typedef struct _VP_SCATTER_GATHER_LIST { typedef VOID DDKAPI (*PEXECUTE_DMA)( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter, - IN PVP_SCATTER_GATHER_LIST SGList, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter, + /*IN*/ PVP_SCATTER_GATHER_LIST SGList, + /*IN*/ PVOID Context); typedef PVOID DDKAPI (*PVIDEO_PORT_GET_PROC_ADDRESS)( - IN PVOID HwDeviceExtension, - IN PUCHAR FunctionName); +/*IN*/ PVOID HwDeviceExtension, +/*IN*/ PUCHAR FunctionName); typedef struct _VIDEO_PORT_CONFIG_INFO { ULONG Length; @@ -193,17 +193,17 @@ typedef struct _VIDEO_PORT_CONFIG_INFO { typedef VP_STATUS DDKAPI (*PVIDEO_HW_FIND_ADAPTER)( - IN PVOID HwDeviceExtension, - IN PVOID HwContext, - IN PWSTR ArgumentString, - IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo, - OUT PUCHAR Again); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID HwContext, + /*IN*/ PWSTR ArgumentString, + /*IN OUT*/ PVIDEO_PORT_CONFIG_INFO ConfigInfo, + /*OUT*/ PUCHAR Again); typedef VP_STATUS DDKAPI (*PVIDEO_HW_POWER_GET)( - IN PVOID HwDeviceExtension, - IN ULONG HwId, - IN OUT PVIDEO_POWER_MANAGEMENT VideoPowerControl); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG HwId, + /*IN OUT*/ PVIDEO_POWER_MANAGEMENT VideoPowerControl); /* PVIDEO_HW_GET_CHILD_DESCRIPTOR return values */ #define VIDEO_ENUM_MORE_DEVICES ERROR_CONTINUE @@ -229,20 +229,20 @@ typedef enum _VIDEO_CHILD_TYPE { typedef VP_STATUS DDKAPI (*PVIDEO_HW_GET_CHILD_DESCRIPTOR)( - IN PVOID HwDeviceExtension, - IN PVIDEO_CHILD_ENUM_INFO ChildEnumInfo, - OUT PVIDEO_CHILD_TYPE VideoChildType, - OUT PUCHAR pChildDescriptor, - OUT PULONG UId, - OUT PULONG pUnused); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVIDEO_CHILD_ENUM_INFO ChildEnumInfo, + /*OUT*/ PVIDEO_CHILD_TYPE VideoChildType, + /*OUT*/ PUCHAR pChildDescriptor, + /*OUT*/ PULONG UId, + /*OUT*/ PULONG pUnused); typedef BOOLEAN DDKAPI (*PVIDEO_HW_INITIALIZE)( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); typedef BOOLEAN DDKAPI (*PVIDEO_HW_INTERRUPT)( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); /* VIDEO_ACCESS_RANGE.RangePassive */ #define VIDEO_RANGE_PASSIVE_DECODE 1 @@ -262,22 +262,22 @@ typedef struct _VIDEO_ACCESS_RANGE { typedef VOID DDKAPI (*PVIDEO_HW_LEGACYRESOURCES)( - IN ULONG VendorId, - IN ULONG DeviceId, - IN OUT PVIDEO_ACCESS_RANGE *LegacyResourceList, - IN OUT PULONG LegacyResourceCount); + /*IN*/ ULONG VendorId, + /*IN*/ ULONG DeviceId, + /*IN OUT*/ PVIDEO_ACCESS_RANGE *LegacyResourceList, + /*IN OUT*/ PULONG LegacyResourceCount); typedef VP_STATUS DDKAPI (*PMINIPORT_QUERY_DEVICE_ROUTINE)( - IN PVOID HwDeviceExtension, - IN PVOID Context, - IN VIDEO_DEVICE_DATA_TYPE DeviceDataType, - IN PVOID Identifier, - IN ULONG IdentifierLength, - IN PVOID ConfigurationData, - IN ULONG ConfigurationDataLength, - IN OUT PVOID ComponentInformation, - IN ULONG ComponentInformationLength); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Context, + /*IN*/ VIDEO_DEVICE_DATA_TYPE DeviceDataType, + /*IN*/ PVOID Identifier, + /*IN*/ ULONG IdentifierLength, + /*IN*/ PVOID ConfigurationData, + /*IN*/ ULONG ConfigurationDataLength, + /*IN OUT*/ PVOID ComponentInformation, + /*IN*/ ULONG ComponentInformationLength); typedef struct _QUERY_INTERFACE { CONST GUID *InterfaceType; @@ -289,28 +289,28 @@ typedef struct _QUERY_INTERFACE { typedef VP_STATUS DDKAPI (*PVIDEO_HW_QUERY_INTERFACE)( - IN PVOID HwDeviceExtension, - IN OUT PQUERY_INTERFACE QueryInterface); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PQUERY_INTERFACE QueryInterface); typedef VP_STATUS DDKAPI (*PMINIPORT_GET_REGISTRY_ROUTINE)( - IN PVOID HwDeviceExtension, - IN PVOID Context, - IN OUT PWSTR ValueName, - IN OUT PVOID ValueData, - IN ULONG ValueLength); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Context, + /*IN OUT*/ PWSTR ValueName, + /*IN OUT*/ PVOID ValueData, + /*IN*/ ULONG ValueLength); typedef BOOLEAN DDKAPI (*PVIDEO_HW_RESET_HW)( - IN PVOID HwDeviceExtension, - IN ULONG Columns, - IN ULONG Rows); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG Columns, + /*IN*/ ULONG Rows); typedef VP_STATUS DDKAPI (*PVIDEO_HW_POWER_SET)( - IN PVOID HwDeviceExtension, - IN ULONG HwId, - IN PVIDEO_POWER_MANAGEMENT VideoPowerControl); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG HwId, + /*IN*/ PVIDEO_POWER_MANAGEMENT VideoPowerControl); typedef struct _STATUS_BLOCK { _ANONYMOUS_UNION union { @@ -331,66 +331,66 @@ typedef struct _VIDEO_REQUEST_PACKET { typedef BOOLEAN DDKAPI (*PVIDEO_HW_START_IO)( - IN PVOID HwDeviceExtension, - IN PVIDEO_REQUEST_PACKET RequestPacket); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVIDEO_REQUEST_PACKET RequestPacket); typedef BOOLEAN DDKAPI (*PMINIPORT_SYNCHRONIZE_ROUTINE)( - IN PVOID Context); + /*IN*/ PVOID Context); typedef VOID DDKAPI (*PVIDEO_HW_TIMER)( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); typedef VOID DDKAPI (*PMINIPORT_DPC_ROUTINE)( - IN PVOID HwDeviceExtension, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Context); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_UCHAR)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PUCHAR Data); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PUCHAR Data); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_UCHAR_STRING)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PUCHAR Data, - IN ULONG DataLength); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PUCHAR Data, + /*IN*/ ULONG DataLength); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_ULONG)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PULONG Data); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PULONG Data); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_ULONG_STRING)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PULONG Data, - IN ULONG DataLength); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PULONG Data, + /*IN*/ ULONG DataLength); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_USHORT)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PUSHORT Data); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PUSHORT Data); typedef VP_STATUS DDKAPI (*PDRIVER_IO_PORT_USHORT_STRING)( - IN ULONG_PTR Context, - IN ULONG Port, - IN UCHAR AccessMode, - IN PUSHORT Data, - IN ULONG DataLength); + /*IN*/ ULONG_PTR Context, + /*IN*/ ULONG Port, + /*IN*/ UCHAR AccessMode, + /*IN*/ PUSHORT Data, + /*IN*/ ULONG DataLength); @@ -440,7 +440,7 @@ typedef struct _VIDEO_HW_INITIALIZATION_DATA { ULONG Reserved; } VIDEO_HW_INITIALIZATION_DATA, *PVIDEO_HW_INITIALIZATION_DATA; -/* VIDEO_PORT_AGP_INTERFACE.Version contants */ + /* VIDEO_PORT_AGP_INTERFACE.Version contants */ #define VIDEO_PORT_AGP_INTERFACE_VERSION_1 1 typedef struct _VIDEO_PORT_AGP_INTERFACE { @@ -460,25 +460,25 @@ typedef struct _VIDEO_PORT_AGP_INTERFACE { ULONGLONG AgpAllocationLimit; } VIDEO_PORT_AGP_INTERFACE, *PVIDEO_PORT_AGP_INTERFACE; -/* VIDEO_PORT_AGP_INTERFACE_2.Version constants */ + /* VIDEO_PORT_AGP_INTERFACE_2.Version constants */ #define VIDEO_PORT_AGP_INTERFACE_VERSION_2 2 typedef struct _VIDEO_PORT_AGP_INTERFACE_2 { - IN USHORT Size; - IN USHORT Version; - OUT PVOID Context; - OUT PINTERFACE_REFERENCE InterfaceReference; - OUT PINTERFACE_DEREFERENCE InterfaceDereference; - OUT PAGP_RESERVE_PHYSICAL AgpReservePhysical; - OUT PAGP_RELEASE_PHYSICAL AgpReleasePhysical; - OUT PAGP_COMMIT_PHYSICAL AgpCommitPhysical; - OUT PAGP_FREE_PHYSICAL AgpFreePhysical; - OUT PAGP_RESERVE_VIRTUAL AgpReserveVirtual; - OUT PAGP_RELEASE_VIRTUAL AgpReleaseVirtual; - OUT PAGP_COMMIT_VIRTUAL AgpCommitVirtual; - OUT PAGP_FREE_VIRTUAL AgpFreeVirtual; - OUT ULONGLONG AgpAllocationLimit; - OUT PAGP_SET_RATE AgpSetRate; + /*IN*/ USHORT Size; + /*IN*/ USHORT Version; + /*OUT*/ PVOID Context; + /*OUT*/ PINTERFACE_REFERENCE InterfaceReference; + /*OUT*/ PINTERFACE_DEREFERENCE InterfaceDereference; + /*OUT*/ PAGP_RESERVE_PHYSICAL AgpReservePhysical; + /*OUT*/ PAGP_RELEASE_PHYSICAL AgpReleasePhysical; + /*OUT*/ PAGP_COMMIT_PHYSICAL AgpCommitPhysical; + /*OUT*/ PAGP_FREE_PHYSICAL AgpFreePhysical; + /*OUT*/ PAGP_RESERVE_VIRTUAL AgpReserveVirtual; + /*OUT*/ PAGP_RELEASE_VIRTUAL AgpReleaseVirtual; + /*OUT*/ PAGP_COMMIT_VIRTUAL AgpCommitVirtual; + /*OUT*/ PAGP_FREE_VIRTUAL AgpFreeVirtual; + /*OUT*/ ULONGLONG AgpAllocationLimit; + /*OUT*/ PAGP_SET_RATE AgpSetRate; } VIDEO_PORT_AGP_INTERFACE_2, *PVIDEO_PORT_AGP_INTERFACE_2; #define VIDEO_PORT_I2C_INTERFACE_VERSION_1 1 @@ -503,35 +503,35 @@ typedef BOOLEAN DDKAPI typedef struct _I2C_CALLBACKS { - IN PVIDEO_WRITE_CLOCK_LINE WriteClockLine; - IN PVIDEO_WRITE_DATA_LINE WriteDataLine; - IN PVIDEO_READ_CLOCK_LINE ReadClockLine; - IN PVIDEO_READ_DATA_LINE ReadDataLine; + /*IN*/ PVIDEO_WRITE_CLOCK_LINE WriteClockLine; + /*IN*/ PVIDEO_WRITE_DATA_LINE WriteDataLine; + /*IN*/ PVIDEO_READ_CLOCK_LINE ReadClockLine; + /*IN*/ PVIDEO_READ_DATA_LINE ReadDataLine; } I2C_CALLBACKS, *PI2C_CALLBACKS; typedef BOOLEAN DDKAPI (*PI2C_START)( - IN PVOID HwDeviceExtension, - IN PI2C_CALLBACKS I2CCallbacks); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PI2C_CALLBACKS I2CCallbacks); typedef BOOLEAN DDKAPI (*PI2C_STOP)( - IN PVOID HwDeviceExtension, - IN PI2C_CALLBACKS I2CCallbacks); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PI2C_CALLBACKS I2CCallbacks); typedef BOOLEAN DDKAPI (*PI2C_WRITE)( - IN PVOID HwDeviceExtension, - IN PI2C_CALLBACKS I2CCallbacks, - IN PUCHAR Buffer, - IN ULONG Length); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PI2C_CALLBACKS I2CCallbacks, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Length); typedef BOOLEAN DDKAPI (*PI2C_READ)( - IN PVOID HwDeviceExtension, - IN PI2C_CALLBACKS I2CCallbacks, - OUT PUCHAR Buffer, - IN ULONG Length); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PI2C_CALLBACKS I2CCallbacks, + /*OUT*/ PUCHAR Buffer, + /*IN*/ ULONG Length); typedef struct _VIDEO_PORT_I2C_INTERFACE { USHORT Size; @@ -545,57 +545,57 @@ typedef struct _VIDEO_PORT_I2C_INTERFACE { PI2C_READ I2CRead; } VIDEO_PORT_I2C_INTERFACE, *PVIDEO_PORT_I2C_INTERFACE; -/* VIDEO_PORT_INT10_INTERFACE.Version constants */ + /* VIDEO_PORT_INT10_INTERFACE.Version constants */ #define VIDEO_PORT_INT10_INTERFACE_VERSION_1 1 typedef VP_STATUS DDKAPI (*PINT10_ALLOCATE_BUFFER)( - IN PVOID Context, - OUT PUSHORT Seg, - OUT PUSHORT Off, - IN OUT PULONG Length); + /*IN*/ PVOID Context, + /*OUT*/ PUSHORT Seg, + /*OUT*/ PUSHORT Off, + /*IN OUT*/ PULONG Length); typedef VP_STATUS DDKAPI (*PINT10_CALL_BIOS)( - IN PVOID Context, - IN OUT PINT10_BIOS_ARGUMENTS BiosArguments); + /*IN*/ PVOID Context, + /*IN OUT*/ PINT10_BIOS_ARGUMENTS BiosArguments); typedef VP_STATUS DDKAPI (*PINT10_FREE_BUFFER)( - IN PVOID Context, - IN USHORT Seg, - IN USHORT Off); + /*IN*/ PVOID Context, + /*IN*/ USHORT Seg, + /*IN*/ USHORT Off); typedef VP_STATUS DDKAPI (*PINT10_READ_MEMORY)( - IN PVOID Context, - IN USHORT Seg, - IN USHORT Off, - OUT PVOID Buffer, - IN ULONG Length); + /*IN*/ PVOID Context, + /*IN*/ USHORT Seg, + /*IN*/ USHORT Off, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length); typedef VP_STATUS DDKAPI (*PINT10_WRITE_MEMORY)( - IN PVOID Context, - IN USHORT Seg, - IN USHORT Off, - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ PVOID Context, + /*IN*/ USHORT Seg, + /*IN*/ USHORT Off, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); typedef struct _VIDEO_PORT_INT10_INTERFACE { - IN USHORT Size; - IN USHORT Version; - OUT PVOID Context; - OUT PINTERFACE_REFERENCE InterfaceReference; - OUT PINTERFACE_DEREFERENCE InterfaceDereference; - OUT PINT10_ALLOCATE_BUFFER Int10AllocateBuffer; - OUT PINT10_FREE_BUFFER Int10FreeBuffer; - OUT PINT10_READ_MEMORY Int10ReadMemory; - OUT PINT10_WRITE_MEMORY Int10WriteMemory; - OUT PINT10_CALL_BIOS Int10CallBios; + /*IN*/ USHORT Size; + /*IN*/ USHORT Version; + /*OUT*/ PVOID Context; + /*OUT*/ PINTERFACE_REFERENCE InterfaceReference; + /*OUT*/ PINTERFACE_DEREFERENCE InterfaceDereference; + /*OUT*/ PINT10_ALLOCATE_BUFFER Int10AllocateBuffer; + /*OUT*/ PINT10_FREE_BUFFER Int10FreeBuffer; + /*OUT*/ PINT10_READ_MEMORY Int10ReadMemory; + /*OUT*/ PINT10_WRITE_MEMORY Int10WriteMemory; + /*OUT*/ PINT10_CALL_BIOS Int10CallBios; } VIDEO_PORT_INT10_INTERFACE, *PVIDEO_PORT_INT10_INTERFACE; -/* Flags for VideoPortGetDeviceBase and VideoPortMapMemory */ + /* Flags for VideoPortGetDeviceBase and VideoPortMapMemory */ #define VIDEO_MEMORY_SPACE_MEMORY 0x00 #define VIDEO_MEMORY_SPACE_IO 0x01 #define VIDEO_MEMORY_SPACE_USER_MODE 0x02 @@ -620,75 +620,75 @@ typedef struct _VP_DEVICE_DESCRIPTION { } VP_DEVICE_DESCRIPTION, *PVP_DEVICE_DESCRIPTION; typedef struct _VPOSVERSIONINFO { - IN ULONG Size; - OUT ULONG MajorVersion; - OUT ULONG MinorVersion; - OUT ULONG BuildNumber; - OUT USHORT ServicePackMajor; - OUT USHORT ServicePackMinor; + /*IN*/ ULONG Size; + /*OUT*/ ULONG MajorVersion; + /*OUT*/ ULONG MinorVersion; + /*OUT*/ ULONG BuildNumber; + /*OUT*/ USHORT ServicePackMajor; + /*OUT*/ USHORT ServicePackMinor; } VPOSVERSIONINFO, *PVPOSVERSIONINFO; -/* Video port functions for miniports */ + /* Video port functions for miniports */ VPAPI VOID DDKAPI VideoDebugPrint( - IN ULONG DebugPrintLevel, - IN PCHAR DebugMessage, - IN ...); + /*IN*/ ULONG DebugPrintLevel, + /*IN*/ PCHAR DebugMessage, + /*IN*/ ...); VPAPI VOID DDKAPI VideoPortAcquireDeviceLock( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); VPAPI VOID DDKAPI VideoPortAcquireSpinLock( - IN PVOID HwDeviceExtension, - IN PSPIN_LOCK SpinLock, - OUT PUCHAR OldIrql); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PSPIN_LOCK SpinLock, + /*OUT*/ PUCHAR OldIrql); VPAPI VOID DDKAPI VideoPortAcquireSpinLockAtDpcLevel( - IN PVOID HwDeviceExtension, - IN PSPIN_LOCK SpinLock); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PSPIN_LOCK SpinLock); VPAPI VP_STATUS DDKAPI VideoPortAllocateBuffer( - IN PVOID HwDeviceExtension, - IN ULONG Size, - OUT PVOID *Buffer); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG Size, + /*OUT*/ PVOID *Buffer); VPAPI PVOID DDKAPI VideoPortAllocateCommonBuffer( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter, - IN ULONG DesiredLength, - OUT PPHYSICAL_ADDRESS LogicalAddress, - IN BOOLEAN CacheEnabled, + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter, + /*IN*/ ULONG DesiredLength, + /*OUT*/ PPHYSICAL_ADDRESS LogicalAddress, + /*IN*/ BOOLEAN CacheEnabled, PVOID Reserved); VPAPI PVOID DDKAPI VideoPortAllocateContiguousMemory( - IN PVOID HwDeviceExtension, - IN ULONG NumberOfBytes, - IN PHYSICAL_ADDRESS HighestAcceptableAddress); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG NumberOfBytes, + /*IN*/ PHYSICAL_ADDRESS HighestAcceptableAddress); -/* VideoPortAllocatePool.PoolType constants */ + /* VideoPortAllocatePool.PoolType constants */ typedef enum _VP_POOL_TYPE { VpNonPagedPool = 0, VpPagedPool, @@ -700,21 +700,21 @@ VPAPI PVOID DDKAPI VideoPortAllocatePool( - IN PVOID HwDeviceExtension, - IN VP_POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes, - IN ULONG Tag); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ VP_POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG Tag); VPAPI PDMA DDKAPI VideoPortAssociateEventsWithDmaHandle( - IN PVOID HwDeviceExtension, - IN OUT PVIDEO_REQUEST_PACKET pVrp, - IN PVOID MappedUserEvent, - IN PVOID DisplayDriverEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PVIDEO_REQUEST_PACKET pVrp, + /*IN*/ PVOID MappedUserEvent, + /*IN*/ PVOID DisplayDriverEvent); -/* VideoPortCheckForDeviceExistence.Flags constants */ + /* VideoPortCheckForDeviceExistence.Flags constants */ #define CDE_USE_SUBSYSTEM_IDS 0x00000001 #define CDE_USE_REVISION 0x00000002 @@ -722,203 +722,203 @@ VPAPI BOOLEAN DDKAPI VideoPortCheckForDeviceExistence( - IN PVOID HwDeviceExtension, - IN USHORT VendorId, - IN USHORT DeviceId, - IN UCHAR RevisionId, - IN USHORT SubVendorId, - IN USHORT SubSystemId, - IN ULONG Flags); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ USHORT VendorId, + /*IN*/ USHORT DeviceId, + /*IN*/ UCHAR RevisionId, + /*IN*/ USHORT SubVendorId, + /*IN*/ USHORT SubSystemId, + /*IN*/ ULONG Flags); VPAPI VOID DDKAPI VideoPortClearEvent( - IN PVOID HwDeviceExtension, - IN PEVENT pEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PEVENT pEvent); VPAPI ULONG DDKAPI VideoPortCompareMemory( - IN PVOID Source1, - IN PVOID Source2, - IN ULONG Length); + /*IN*/ PVOID Source1, + /*IN*/ PVOID Source2, + /*IN*/ ULONG Length); VPAPI VP_STATUS DDKAPI VideoPortCompleteDma( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter, - IN PVP_SCATTER_GATHER_LIST VpScatterGather, - IN BOOLEAN WriteToDevice); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter, + /*IN*/ PVP_SCATTER_GATHER_LIST VpScatterGather, + /*IN*/ BOOLEAN WriteToDevice); VPAPI VP_STATUS DDKAPI VideoPortCreateEvent( - IN PVOID HwDeviceExtension, - IN ULONG EventFlag, - IN PVOID Unused, - OUT PEVENT *ppEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG EventFlag, + /*IN*/ PVOID Unused, + /*OUT*/ PEVENT *ppEvent); VPAPI VP_STATUS DDKAPI VideoPortCreateSecondaryDisplay( - IN PVOID HwDeviceExtension, - IN OUT PVOID *SecondaryDeviceExtension, - IN ULONG ulFlag); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PVOID *SecondaryDeviceExtension, + /*IN*/ ULONG ulFlag); VPAPI VP_STATUS DDKAPI VideoPortCreateSpinLock( - IN PVOID HwDeviceExtension, - OUT PSPIN_LOCK *SpinLock); + /*IN*/ PVOID HwDeviceExtension, + /*OUT*/ PSPIN_LOCK *SpinLock); typedef struct _DDC_CONTROL { - IN ULONG Size; - IN I2C_CALLBACKS I2CCallbacks; - IN UCHAR EdidSegment; + /*IN*/ ULONG Size; + /*IN*/ I2C_CALLBACKS I2CCallbacks; + /*IN*/ UCHAR EdidSegment; } DDC_CONTROL, *PDDC_CONTROL; VPAPI BOOLEAN DDKAPI VideoPortDDCMonitorHelper( - IN PVOID HwDeviceExtension, - IN PVOID DDCControl, - IN OUT PUCHAR EdidBuffer, - IN ULONG EdidBufferSize); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID DDCControl, + /*IN OUT*/ PUCHAR EdidBuffer, + /*IN*/ ULONG EdidBufferSize); VPAPI VOID DDKCDECLAPI VideoPortDebugPrint( - IN VIDEO_DEBUG_LEVEL DebugPrintLevel, - IN PCHAR DebugMessage, - IN ...); + /*IN*/ VIDEO_DEBUG_LEVEL DebugPrintLevel, + /*IN*/ PCHAR DebugMessage, + /*IN*/ ...); VPAPI VP_STATUS DDKAPI VideoPortDeleteEvent( - IN PVOID HwDeviceExtension, - IN PEVENT pEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PEVENT pEvent); VPAPI VP_STATUS DDKAPI VideoPortDeleteSpinLock( - IN PVOID HwDeviceExtension, - IN PSPIN_LOCK SpinLock); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PSPIN_LOCK SpinLock); VPAPI VP_STATUS DDKAPI VideoPortDisableInterrupt( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); VPAPI PDMA DDKAPI VideoPortDoDma( - IN PVOID HwDeviceExtension, - IN PDMA pDma, - IN DMA_FLAGS DmaFlags); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PDMA pDma, + /*IN*/ DMA_FLAGS DmaFlags); VPAPI VP_STATUS DDKAPI VideoPortEnableInterrupt( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); VPAPI VP_STATUS DDKAPI VideoPortEnumerateChildren( - IN PVOID HwDeviceExtension, - IN PVOID Reserved); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Reserved); VPAPI VOID DDKAPI VideoPortFreeCommonBuffer( - IN PVOID HwDeviceExtension, - IN ULONG Length, - IN PVOID VirtualAddress, - IN PHYSICAL_ADDRESS LogicalAddress, - IN BOOLEAN CacheEnabled); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG Length, + /*IN*/ PVOID VirtualAddress, + /*IN*/ PHYSICAL_ADDRESS LogicalAddress, + /*IN*/ BOOLEAN CacheEnabled); VPAPI VOID DDKAPI VideoPortFreeDeviceBase( - IN PVOID HwDeviceExtension, - IN PVOID MappedAddress); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID MappedAddress); VPAPI VOID DDKAPI VideoPortFreePool( - IN PVOID HwDeviceExtension, - IN PVOID Ptr); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Ptr); VPAPI VP_STATUS DDKAPI VideoPortGetAccessRanges( - IN PVOID HwDeviceExtension, - IN ULONG NumRequestedResources, - IN PIO_RESOURCE_DESCRIPTOR RequestedResources OPTIONAL, - IN ULONG NumAccessRanges, - OUT PVIDEO_ACCESS_RANGE AccessRanges, - IN PVOID VendorId, - IN PVOID DeviceId, - OUT PULONG Slot); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG NumRequestedResources, + /*IN*/ PIO_RESOURCE_DESCRIPTOR RequestedResources /*OPTIONAL*/, + /*IN*/ ULONG NumAccessRanges, + /*OUT*/ PVIDEO_ACCESS_RANGE AccessRanges, + /*IN*/ PVOID VendorId, + /*IN*/ PVOID DeviceId, + /*OUT*/ PULONG Slot); VPAPI PVOID DDKAPI VideoPortGetAssociatedDeviceExtension( - IN PVOID DeviceObject); + /*IN*/ PVOID DeviceObject); VPAPI ULONG DDKAPI VideoPortGetAssociatedDeviceID( - IN PVOID DeviceObject); + /*IN*/ PVOID DeviceObject); VPAPI ULONG DDKAPI VideoPortGetBusData( - IN PVOID HwDeviceExtension, - IN BUS_DATA_TYPE BusDataType, - IN ULONG SlotNumber, - IN OUT PVOID Buffer, - IN ULONG Offset, - IN ULONG Length); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ BUS_DATA_TYPE BusDataType, + /*IN*/ ULONG SlotNumber, + /*IN OUT*/ PVOID Buffer, + /*IN*/ ULONG Offset, + /*IN*/ ULONG Length); VPAPI ULONG DDKAPI VideoPortGetBytesUsed( - IN PVOID HwDeviceExtension, - IN PDMA pDma); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PDMA pDma); VPAPI PVOID DDKAPI VideoPortGetCommonBuffer( - IN PVOID HwDeviceExtension, - IN ULONG DesiredLength, - IN ULONG Alignment, - OUT PPHYSICAL_ADDRESS LogicalAddress, - OUT PULONG pActualLength, - IN BOOLEAN CacheEnabled); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG DesiredLength, + /*IN*/ ULONG Alignment, + /*OUT*/ PPHYSICAL_ADDRESS LogicalAddress, + /*OUT*/ PULONG pActualLength, + /*IN*/ BOOLEAN CacheEnabled); VPAPI UCHAR @@ -930,108 +930,108 @@ VPAPI PVOID DDKAPI VideoPortGetDeviceBase( - IN PVOID HwDeviceExtension, - IN PHYSICAL_ADDRESS IoAddress, - IN ULONG NumberOfUchars, - IN UCHAR InIoSpace); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PHYSICAL_ADDRESS IoAddress, + /*IN*/ ULONG NumberOfUchars, + /*IN*/ UCHAR InIoSpace); VPAPI VP_STATUS DDKAPI VideoPortGetDeviceData( - IN PVOID HwDeviceExtension, - IN VIDEO_DEVICE_DATA_TYPE DeviceDataType, - IN PMINIPORT_QUERY_DEVICE_ROUTINE CallbackRoutine, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ VIDEO_DEVICE_DATA_TYPE DeviceDataType, + /*IN*/ PMINIPORT_QUERY_DEVICE_ROUTINE CallbackRoutine, + /*IN*/ PVOID Context); VPAPI PVP_DMA_ADAPTER DDKAPI VideoPortGetDmaAdapter( - IN PVOID HwDeviceExtension, - IN PVP_DEVICE_DESCRIPTION VpDeviceDescription); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DEVICE_DESCRIPTION VpDeviceDescription); VPAPI PVOID DDKAPI VideoPortGetDmaContext( - IN PVOID HwDeviceExtension, - IN PDMA pDma); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PDMA pDma); VPAPI PVOID DDKAPI VideoPortGetMdl( - IN PVOID HwDeviceExtension, - IN PDMA pDma); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PDMA pDma); VPAPI VP_STATUS DDKAPI VideoPortGetRegistryParameters( - IN PVOID HwDeviceExtension, - IN PWSTR ParameterName, - IN UCHAR IsParameterFileName, - IN PMINIPORT_GET_REGISTRY_ROUTINE CallbackRoutine, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PWSTR ParameterName, + /*IN*/ UCHAR IsParameterFileName, + /*IN*/ PMINIPORT_GET_REGISTRY_ROUTINE CallbackRoutine, + /*IN*/ PVOID Context); VPAPI PVOID DDKAPI VideoPortGetRomImage( - IN PVOID HwDeviceExtension, - IN PVOID Unused1, - IN ULONG Unused2, - IN ULONG Length); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Unused1, + /*IN*/ ULONG Unused2, + /*IN*/ ULONG Length); VPAPI VP_STATUS DDKAPI VideoPortGetVersion( - IN PVOID HwDeviceExtension, - IN OUT PVPOSVERSIONINFO pVpOsVersionInfo); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PVPOSVERSIONINFO pVpOsVersionInfo); VPAPI VP_STATUS DDKAPI VideoPortGetVgaStatus( - IN PVOID HwDeviceExtension, - OUT PULONG VgaStatus); + /*IN*/ PVOID HwDeviceExtension, + /*OUT*/ PULONG VgaStatus); VPAPI ULONG DDKAPI VideoPortInitialize( - IN PVOID Argument1, - IN PVOID Argument2, - IN PVIDEO_HW_INITIALIZATION_DATA HwInitializationData, - IN PVOID HwContext); + /*IN*/ PVOID Argument1, + /*IN*/ PVOID Argument2, + /*IN*/ PVIDEO_HW_INITIALIZATION_DATA HwInitializationData, + /*IN*/ PVOID HwContext); VPAPI VP_STATUS DDKAPI VideoPortInt10( - IN PVOID HwDeviceExtension, - IN PVIDEO_X86_BIOS_ARGUMENTS BiosArguments); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVIDEO_X86_BIOS_ARGUMENTS BiosArguments); VPAPI LONG DDKFASTAPI VideoPortInterlockedDecrement( - IN PLONG Addend); + /*IN*/ PLONG Addend); VPAPI LONG DDKFASTAPI VideoPortInterlockedExchange( - IN OUT PLONG Target, - IN LONG Value); + /*IN OUT*/ PLONG Target, + /*IN*/ LONG Value); VPAPI LONG DDKFASTAPI VideoPortInterlockedIncrement( - IN PLONG Addend); + /*IN*/ PLONG Addend); typedef enum _VP_LOCK_OPERATION { VpReadAccess = 0, @@ -1043,37 +1043,37 @@ VPAPI PVOID DDKAPI VideoPortLockBuffer( - IN PVOID HwDeviceExtension, - IN PVOID BaseAddress, - IN ULONG Length, - IN VP_LOCK_OPERATION Operation); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG Length, + /*IN*/ VP_LOCK_OPERATION Operation); VPAPI BOOLEAN DDKAPI VideoPortLockPages( - IN PVOID HwDeviceExtension, - IN OUT PVIDEO_REQUEST_PACKET pVrp, - IN OUT PEVENT pUEvent, - IN PEVENT pDisplayEvent, - IN DMA_FLAGS DmaFlags); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PVIDEO_REQUEST_PACKET pVrp, + /*IN OUT*/ PEVENT pUEvent, + /*IN*/ PEVENT pDisplayEvent, + /*IN*/ DMA_FLAGS DmaFlags); VPAPI VOID DDKAPI VideoPortLogError( - IN PVOID HwDeviceExtension, - IN PVIDEO_REQUEST_PACKET Vrp OPTIONAL, - IN VP_STATUS ErrorCode, - IN ULONG UniqueId); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVIDEO_REQUEST_PACKET Vrp /*OPTIONAL*/, + /*IN*/ VP_STATUS ErrorCode, + /*IN*/ ULONG UniqueId); VPAPI VP_STATUS DDKAPI VideoPortMapBankedMemory( - IN PVOID HwDeviceExtension, - IN PHYSICAL_ADDRESS PhysicalAddress, - IN OUT PULONG Length, + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PHYSICAL_ADDRESS PhysicalAddress, + /*IN OUT*/ PULONG Length, PULONG InIoSpace, PVOID *VirtualAddress, ULONG BankLength, @@ -1085,48 +1085,48 @@ VPAPI PDMA DDKAPI VideoPortMapDmaMemory( - IN PVOID HwDeviceExtension, - IN PVIDEO_REQUEST_PACKET pVrp, - IN PHYSICAL_ADDRESS BoardAddress, - IN PULONG Length, - IN PULONG InIoSpace, - IN PVOID MappedUserEvent, - IN PVOID DisplayDriverEvent, - IN OUT PVOID *VirtualAddress); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVIDEO_REQUEST_PACKET pVrp, + /*IN*/ PHYSICAL_ADDRESS BoardAddress, + /*IN*/ PULONG Length, + /*IN*/ PULONG InIoSpace, + /*IN*/ PVOID MappedUserEvent, + /*IN*/ PVOID DisplayDriverEvent, + /*IN OUT*/ PVOID *VirtualAddress); VPAPI VP_STATUS DDKAPI VideoPortMapMemory( - IN PVOID HwDeviceExtension, - IN PHYSICAL_ADDRESS PhysicalAddress, - IN OUT PULONG Length, - IN PULONG InIoSpace, - IN OUT PVOID *VirtualAddress); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PHYSICAL_ADDRESS PhysicalAddress, + /*IN OUT*/ PULONG Length, + /*IN*/ PULONG InIoSpace, + /*IN OUT*/ PVOID *VirtualAddress); VPAPI VOID DDKAPI VideoPortMoveMemory( - IN PVOID Destination, - IN PVOID Source, - IN ULONG Length); + /*IN*/ PVOID Destination, + /*IN*/ PVOID Source, + /*IN*/ ULONG Length); VPAPI VOID DDKAPI VideoPortPutDmaAdapter( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter); VPAPI LONGLONG DDKAPI VideoPortQueryPerformanceCounter( - IN PVOID HwDeviceExtension, - OUT PLONGLONG PerformanceFrequency OPTIONAL); + /*IN*/ PVOID HwDeviceExtension, + /*OUT*/ PLONGLONG PerformanceFrequency /*OPTIONAL*/); -/* VideoPortQueryServices.ServicesType constants */ + /* VideoPortQueryServices.ServicesType constants */ typedef enum _VIDEO_PORT_SERVICES { VideoPortServicesAGP = 1, VideoPortServicesI2C, @@ -1138,153 +1138,153 @@ VPAPI VP_STATUS DDKAPI VideoPortQueryServices( - IN PVOID HwDeviceExtension, - IN VIDEO_PORT_SERVICES ServicesType, - IN OUT PINTERFACE Interface); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ VIDEO_PORT_SERVICES ServicesType, + /*IN OUT*/ PINTERFACE Interface); VPAPI VOID DDKAPI VideoPortQuerySystemTime( - OUT PLARGE_INTEGER CurrentTime); + /*OUT*/ PLARGE_INTEGER CurrentTime); VPAPI BOOLEAN DDKAPI VideoPortQueueDpc( - IN PVOID HwDeviceExtension, - IN PMINIPORT_DPC_ROUTINE CallbackRoutine, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PMINIPORT_DPC_ROUTINE CallbackRoutine, + /*IN*/ PVOID Context); VPAPI VOID DDKAPI VideoPortReadPortBufferUchar( - IN PUCHAR Port, - OUT PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Port, + /*OUT*/ PUCHAR Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortReadPortBufferUlong( - IN PULONG Port, - OUT PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Port, + /*OUT*/ PULONG Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortReadPortBufferUshort( - IN PUSHORT Port, - OUT PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Port, + /*OUT*/ PUSHORT Buffer, + /*IN*/ ULONG Count); VPAPI UCHAR DDKAPI VideoPortReadPortUchar( - IN PUCHAR Port); + /*IN*/ PUCHAR Port); VPAPI ULONG DDKAPI VideoPortReadPortUlong( - IN PULONG Port); + /*IN*/ PULONG Port); VPAPI USHORT DDKAPI VideoPortReadPortUshort( - IN PUSHORT Port); + /*IN*/ PUSHORT Port); VPAPI VOID DDKAPI VideoPortReadRegisterBufferUchar( - IN PUCHAR Register, - OUT PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Register, + /*OUT*/ PUCHAR Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortReadRegisterBufferUlong( - IN PULONG Register, - OUT PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Register, + /*OUT*/ PULONG Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortReadRegisterBufferUshort( - IN PUSHORT Register, - OUT PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Register, + /*OUT*/ PUSHORT Buffer, + /*IN*/ ULONG Count); VPAPI UCHAR DDKAPI VideoPortReadRegisterUchar( - IN PUCHAR Register); + /*IN*/ PUCHAR Register); VPAPI ULONG DDKAPI VideoPortReadRegisterUlong( - IN PULONG Register); + /*IN*/ PULONG Register); VPAPI USHORT DDKAPI VideoPortReadRegisterUshort( - IN PUSHORT Register); + /*IN*/ PUSHORT Register); VPAPI LONG DDKAPI VideoPortReadStateEvent( - IN PVOID HwDeviceExtension, - IN PEVENT pEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PEVENT pEvent); VPAPI VOID DDKAPI VideoPortReleaseBuffer( - IN PVOID HwDeviceExtension, - IN PVOID Buffer); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Buffer); VPAPI VOID DDKAPI VideoPortReleaseCommonBuffer( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter, - IN ULONG Length, - IN PHYSICAL_ADDRESS LogicalAddress, - IN PVOID VirtualAddress, - IN BOOLEAN CacheEnabled); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter, + /*IN*/ ULONG Length, + /*IN*/ PHYSICAL_ADDRESS LogicalAddress, + /*IN*/ PVOID VirtualAddress, + /*IN*/ BOOLEAN CacheEnabled); VPAPI VOID DDKAPI VideoPortReleaseDeviceLock( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); VPAPI VOID DDKAPI VideoPortReleaseSpinLock( - IN PVOID HwDeviceExtension, - IN PSPIN_LOCK SpinLock, - IN UCHAR NewIrql); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PSPIN_LOCK SpinLock, + /*IN*/ UCHAR NewIrql); VPAPI VOID DDKAPI VideoPortReleaseSpinLockFromDpcLevel( - IN PVOID HwDeviceExtension, - IN PSPIN_LOCK SpinLock); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PSPIN_LOCK SpinLock); VPAPI BOOLEAN @@ -1299,92 +1299,92 @@ VPAPI ULONG DDKAPI VideoPortSetBusData( - IN PVOID HwDeviceExtension, - IN BUS_DATA_TYPE BusDataType, - IN ULONG SlotNumber, - IN PVOID Buffer, - IN ULONG Offset, - IN ULONG Length); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ BUS_DATA_TYPE BusDataType, + /*IN*/ ULONG SlotNumber, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Offset, + /*IN*/ ULONG Length); VPAPI VOID DDKAPI VideoPortSetBytesUsed( - IN PVOID HwDeviceExtension, - IN OUT PDMA pDma, - IN ULONG BytesUsed); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PDMA pDma, + /*IN*/ ULONG BytesUsed); VPAPI VOID DDKAPI VideoPortSetDmaContext( - IN PVOID HwDeviceExtension, - OUT PDMA pDma, - IN PVOID InstanceContext); + /*IN*/ PVOID HwDeviceExtension, + /*OUT*/ PDMA pDma, + /*IN*/ PVOID InstanceContext); VPAPI LONG DDKAPI VideoPortSetEvent( - IN PVOID HwDeviceExtension, - IN PEVENT pEvent); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PEVENT pEvent); VPAPI VP_STATUS DDKAPI VideoPortSetRegistryParameters( - IN PVOID HwDeviceExtension, - IN PWSTR ValueName, - IN PVOID ValueData, - IN ULONG ValueLength); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PWSTR ValueName, + /*IN*/ PVOID ValueData, + /*IN*/ ULONG ValueLength); VPAPI VP_STATUS DDKAPI VideoPortSetTrappedEmulatorPorts( - IN PVOID HwDeviceExtension, - IN ULONG NumAccessRanges, - IN PVIDEO_ACCESS_RANGE AccessRange); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG NumAccessRanges, + /*IN*/ PVIDEO_ACCESS_RANGE AccessRange); VPAPI BOOLEAN DDKAPI VideoPortSignalDmaComplete( - IN PVOID HwDeviceExtension, - IN PVOID pDmaHandle); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID pDmaHandle); VPAPI VOID DDKAPI VideoPortStallExecution( - IN ULONG Microseconds); + /*IN*/ ULONG Microseconds); VPAPI VP_STATUS DDKAPI VideoPortStartDma( - IN PVOID HwDeviceExtension, - IN PVP_DMA_ADAPTER VpDmaAdapter, - IN PVOID Mdl, - IN ULONG Offset, - IN OUT PULONG pLength, - IN PEXECUTE_DMA ExecuteDmaRoutine, - IN PVOID Context, - IN BOOLEAN WriteToDevice); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVP_DMA_ADAPTER VpDmaAdapter, + /*IN*/ PVOID Mdl, + /*IN*/ ULONG Offset, + /*IN OUT*/ PULONG pLength, + /*IN*/ PEXECUTE_DMA ExecuteDmaRoutine, + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN WriteToDevice); VPAPI VOID DDKAPI VideoPortStartTimer( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); VPAPI VOID DDKAPI VideoPortStopTimer( - IN PVOID HwDeviceExtension); + /*IN*/ PVOID HwDeviceExtension); -/* VideoPortSynchronizeExecution.Priority constants */ + /* VideoPortSynchronizeExecution.Priority constants */ typedef enum VIDEO_SYNCHRONIZE_PRIORITY { VpLowPriority = 0, VpMediumPriority, @@ -1395,161 +1395,161 @@ VPAPI BOOLEAN DDKAPI VideoPortSynchronizeExecution( - IN PVOID HwDeviceExtension, - IN VIDEO_SYNCHRONIZE_PRIORITY Priority, - IN PMINIPORT_SYNCHRONIZE_ROUTINE SynchronizeRoutine, - IN PVOID Context); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ VIDEO_SYNCHRONIZE_PRIORITY Priority, + /*IN*/ PMINIPORT_SYNCHRONIZE_ROUTINE SynchronizeRoutine, + /*IN*/ PVOID Context); VPAPI VOID DDKAPI VideoPortUnLockBuffer( - IN PVOID HwDeviceExtension, - IN PVOID Mdl); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Mdl); VPAPI BOOLEAN DDKAPI VideoPortUnlockPages( - IN PVOID hwDeviceExtension, - IN OUT PDMA pDma); + /*IN*/ PVOID hwDeviceExtension, + /*IN OUT*/ PDMA pDma); VPAPI BOOLEAN DDKAPI VideoPortUnmapDmaMemory( - IN PVOID HwDeviceExtension, - IN PVOID VirtualAddress, - IN HANDLE ProcessHandle, - IN PDMA BoardMemoryHandle); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID VirtualAddress, + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PDMA BoardMemoryHandle); VPAPI VP_STATUS DDKAPI VideoPortUnmapMemory( - IN PVOID HwDeviceExtension, - IN OUT PVOID VirtualAddress, - IN HANDLE ProcessHandle); + /*IN*/ PVOID HwDeviceExtension, + /*IN OUT*/ PVOID VirtualAddress, + /*IN*/ HANDLE ProcessHandle); VPAPI VP_STATUS DDKAPI VideoPortVerifyAccessRanges( - IN PVOID HwDeviceExtension, - IN ULONG NumAccessRanges, - IN PVIDEO_ACCESS_RANGE AccessRanges); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ ULONG NumAccessRanges, + /*IN*/ PVIDEO_ACCESS_RANGE AccessRanges); VPAPI VP_STATUS DDKAPI VideoPortWaitForSingleObject( - IN PVOID HwDeviceExtension, - IN PVOID Object, - IN PLARGE_INTEGER Timeout OPTIONAL); + /*IN*/ PVOID HwDeviceExtension, + /*IN*/ PVOID Object, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/); VPAPI VOID DDKAPI VideoPortWritePortBufferUchar( - IN PUCHAR Port, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Port, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWritePortBufferUlong( - IN PULONG Port, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Port, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWritePortBufferUshort( - IN PUSHORT Port, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Port, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWritePortUchar( - IN PUCHAR Port, - IN UCHAR Value); + /*IN*/ PUCHAR Port, + /*IN*/ UCHAR Value); VPAPI VOID DDKAPI VideoPortWritePortUlong( - IN PULONG Port, - IN ULONG Value); + /*IN*/ PULONG Port, + /*IN*/ ULONG Value); VPAPI VOID DDKAPI VideoPortWritePortUshort( - IN PUSHORT Port, - IN USHORT Value); + /*IN*/ PUSHORT Port, + /*IN*/ USHORT Value); VPAPI VOID DDKAPI VideoPortWriteRegisterBufferUchar( - IN PUCHAR Register, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Register, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWriteRegisterBufferUlong( - IN PULONG Register, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Register, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWriteRegisterBufferUshort( - IN PUSHORT Register, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Register, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); VPAPI VOID DDKAPI VideoPortWriteRegisterUchar( - IN PUCHAR Register, - IN UCHAR Value); + /*IN*/ PUCHAR Register, + /*IN*/ UCHAR Value); VPAPI VOID DDKAPI VideoPortWriteRegisterUlong( - IN PULONG Register, - IN ULONG Value); + /*IN*/ PULONG Register, + /*IN*/ ULONG Value); VPAPI VOID DDKAPI VideoPortWriteRegisterUshort( - IN PUSHORT Register, - IN USHORT Value); + /*IN*/ PUSHORT Register, + /*IN*/ USHORT Value); VPAPI VOID DDKAPI VideoPortZeroDeviceMemory( - IN PVOID Destination, - IN ULONG Length); + /*IN*/ PVOID Destination, + /*IN*/ ULONG Length); VPAPI VOID DDKAPI VideoPortZeroMemory( - IN PVOID Destination, - IN ULONG Length); + /*IN*/ PVOID Destination, + /*2IN*/ ULONG Length); #ifdef DBG #define VideoDebugPrint(x) VideoPortDebugPrint x diff --git a/winsup/w32api/include/ddk/videoagp.h b/winsup/w32api/include/ddk/videoagp.h index 60f48baa8..299def284 100644 --- a/winsup/w32api/include/ddk/videoagp.h +++ b/winsup/w32api/include/ddk/videoagp.h @@ -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 } diff --git a/winsup/w32api/include/ddk/win2k.h b/winsup/w32api/include/ddk/win2k.h index deba29b9e..84eadd0ba 100644 --- a/winsup/w32api/include/ddk/win2k.h +++ b/winsup/w32api/include/ddk/win2k.h @@ -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 | \ diff --git a/winsup/w32api/include/ddk/winddi.h b/winsup/w32api/include/ddk/winddi.h index 3aa8f346d..fefb15def 100644 --- a/winsup/w32api/include/ddk/winddi.h +++ b/winsup/w32api/include/ddk/winddi.h @@ -350,7 +350,7 @@ typedef struct _DRIVEROBJ *PDRIVEROBJ; typedef BOOL DDKAPI CALLBACK (*FREEOBJPROC)( - IN PDRIVEROBJ pDriverObj); + /*IN*/ PDRIVEROBJ pDriverObj); typedef struct _DRIVEROBJ { PVOID pvObj; @@ -1149,42 +1149,43 @@ typedef struct _XLATEOBJ { } XLATEOBJ; typedef VOID DDKAPI (CALLBACK *WNDOBJCHANGEPROC)( - IN WNDOBJ *pwo, - IN FLONG fl); + /*IN*/ WNDOBJ *pwo, + /*IN*/ FLONG fl); WIN32KAPI HANDLE DDKAPI BRUSHOBJ_hGetColorTransform( - IN BRUSHOBJ *pbo); + /*IN*/ BRUSHOBJ *pbo); WIN32KAPI PVOID DDKAPI BRUSHOBJ_pvAllocRbrush( - IN BRUSHOBJ *pbo, - IN ULONG cj); + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ ULONG cj); WIN32KAPI PVOID DDKAPI BRUSHOBJ_pvGetRbrush( - IN BRUSHOBJ *pbo); + /*IN*/ BRUSHOBJ *pbo); WIN32KAPI ULONG DDKAPI BRUSHOBJ_ulGetBrushColor( - IN BRUSHOBJ *pbo); + /*IN*/ BRUSHOBJ *pbo); WIN32KAPI BOOL DDKAPI CLIPOBJ_bEnum( - IN CLIPOBJ *pco, - IN ULONG cj, - OUT ULONG *pv); + /*IN*/ CLIPOBJ *pco, + /*IN*/ ULONG cj, + + /*OUT*/ ULONG *pv); /* CLIPOBJ_cEnumStart.iType constants */ #define CT_RECTANGLES 0L @@ -1202,23 +1203,23 @@ WIN32KAPI ULONG DDKAPI CLIPOBJ_cEnumStart( - IN CLIPOBJ *pco, - IN BOOL bAll, - IN ULONG iType, - IN ULONG iDirection, - IN ULONG cLimit); + /*IN*/ CLIPOBJ *pco, + /*IN*/ BOOL bAll, + /*IN*/ ULONG iType, + /*IN*/ ULONG iDirection, + /*IN*/ ULONG cLimit); WIN32KAPI PATHOBJ* DDKAPI CLIPOBJ_ppoGetPath( - IN CLIPOBJ *pco); + /*IN*/ CLIPOBJ *pco); WIN32KAPI VOID DDKAPI EngAcquireSemaphore( - IN HSEMAPHORE hsem); + /*IN*/ HSEMAPHORE hsem); #define FL_ZERO_MEMORY 0x00000001 #define FL_NONPAGED_MEMORY 0x00000002 @@ -1227,36 +1228,36 @@ WIN32KAPI PVOID DDKAPI EngAllocMem( - IN ULONG Flags, - IN ULONG MemSize, - IN ULONG Tag); + /*IN*/ ULONG Flags, + /*IN*/ ULONG MemSize, + /*IN*/ ULONG Tag); WIN32KAPI PVOID DDKAPI EngAllocPrivateUserMem( - IN PDD_SURFACE_LOCAL psl, - IN SIZE_T cj, - IN ULONG tag); + /*IN*/ PDD_SURFACE_LOCAL psl, + /*IN*/ SIZE_T cj, + /*IN*/ ULONG tag); WIN32KAPI PVOID DDKAPI EngAllocUserMem( - IN SIZE_T cj, - IN ULONG tag); + /*IN*/ SIZE_T cj, + /*IN*/ ULONG tag); WIN32KAPI BOOL DDKAPI EngAlphaBlend( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN BLENDOBJ *pBlendObj); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ BLENDOBJ *pBlendObj); /* EngAssociateSurface.flHooks constants */ #define HOOK_BITBLT 0x00000001 @@ -1282,45 +1283,45 @@ WIN32KAPI BOOL DDKAPI EngAssociateSurface( - IN HSURF hsurf, - IN HDEV hdev, - IN FLONG flHooks); + /*IN*/ HSURF hsurf, + /*IN*/ HDEV hdev, + /*IN*/ FLONG flHooks); WIN32KAPI BOOL DDKAPI EngBitBlt( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclTrg, - IN POINTL *pptlSrc, - IN POINTL *pptlMask, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrush, - IN ROP4 rop4); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclTrg, + /*IN*/ POINTL *pptlSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrush, + /*IN*/ ROP4 rop4); WIN32KAPI BOOL DDKAPI EngCheckAbort( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); WIN32KAPI VOID DDKAPI EngClearEvent( - IN PEVENT pEvent); + /*IN*/ PEVENT pEvent); WIN32KAPI FD_GLYPHSET* DDKAPI EngComputeGlyphSet( - IN INT nCodePage, - IN INT nFirstChar, - IN INT cChars); + /*IN*/ INT nCodePage, + /*IN*/ INT nFirstChar, + /*IN*/ INT cChars); /* EngControlSprites.fl constants */ #define ECS_TEARDOWN 0x00000001 @@ -1330,29 +1331,30 @@ WIN32KAPI BOOL DDKAPI EngControlSprites( - IN WNDOBJ *pwo, - IN FLONG fl); + /*IN*/ WNDOBJ *pwo, + /*IN*/ FLONG fl); WIN32KAPI BOOL DDKAPI EngCopyBits( - OUT SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN POINTL *pptlSrc); + + /*OUT*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ POINTL *pptlSrc); WIN32KAPI HBITMAP DDKAPI EngCreateBitmap( - IN SIZEL sizl, - IN LONG lWidth, - IN ULONG iFormat, - IN FLONG fl, - IN PVOID pvBits); + /*IN*/ SIZEL sizl, + /*IN*/ LONG lWidth, + /*IN*/ ULONG iFormat, + /*IN*/ FLONG fl, + /*IN*/ PVOID pvBits); WIN32KAPI CLIPOBJ* @@ -1364,9 +1366,9 @@ WIN32KAPI HBITMAP DDKAPI EngCreateDeviceBitmap( - IN DHSURF dhsurf, - IN SIZEL sizl, - IN ULONG iFormatCompat); + /*IN*/ DHSURF dhsurf, + /*IN*/ SIZEL sizl, + /*IN*/ ULONG iFormatCompat); WIN32KAPI HSURF @@ -1390,7 +1392,8 @@ WIN32KAPI BOOL DDKAPI EngCreateEvent( - OUT PEVENT *ppEvent); + + /*OUT*/ PEVENT *ppEvent); /* EngCreatePalette.iMode constants */ #define PAL_INDEXED 0x00000001 @@ -1403,12 +1406,12 @@ WIN32KAPI HPALETTE DDKAPI EngCreatePalette( - IN ULONG iMode, - IN ULONG cColors, - IN ULONG *pulColors, - IN FLONG flRed, - IN FLONG flGreen, - IN FLONG flBlue); + /*IN*/ ULONG iMode, + /*IN*/ ULONG cColors, + /*IN*/ ULONG *pulColors, + /*IN*/ FLONG flRed, + /*IN*/ FLONG flGreen, + /*IN*/ FLONG flBlue); WIN32KAPI PATHOBJ* @@ -1453,146 +1456,152 @@ WIN32KAPI VOID DDKAPI EngDebugPrint( - IN PCHAR StandardPrefix, - IN PCHAR DebugMessage, - IN va_list ap); + /*IN*/ PCHAR StandardPrefix, + /*IN*/ PCHAR DebugMessage, + /*IN*/ va_list ap); WIN32KAPI VOID DDKAPI EngDeleteClip( - IN CLIPOBJ *pco); + /*IN*/ CLIPOBJ *pco); WIN32KAPI BOOL DDKAPI EngDeleteDriverObj( - IN HDRVOBJ hdo, - IN BOOL bCallBack, - IN BOOL bLocked); + /*IN*/ HDRVOBJ hdo, + /*IN*/ BOOL bCallBack, + /*IN*/ BOOL bLocked); WIN32KAPI BOOL DDKAPI EngDeleteEvent( - IN PEVENT pEvent); + /*IN*/ PEVENT pEvent); WIN32KAPI BOOL DDKAPI EngDeleteFile( - IN LPWSTR pwszFileName); + /*IN*/ LPWSTR pwszFileName); WIN32KAPI BOOL DDKAPI EngDeletePalette( - IN HPALETTE hpal); + /*IN*/ HPALETTE hpal); WIN32KAPI VOID DDKAPI EngDeletePath( - IN PATHOBJ *ppo); + /*IN*/ PATHOBJ *ppo); WIN32KAPI VOID DDKAPI EngDeleteSafeSemaphore( - IN OUT ENGSAFESEMAPHORE *pssem); + /*IN OUT*/ ENGSAFESEMAPHORE *pssem); WIN32KAPI VOID DDKAPI EngDeleteSemaphore( - IN OUT HSEMAPHORE hsem); + /*IN OUT*/ HSEMAPHORE hsem); WIN32KAPI BOOL DDKAPI EngDeleteSurface( - IN HSURF hsurf); + /*IN*/ HSURF hsurf); WIN32KAPI VOID DDKAPI EngDeleteWnd( - IN WNDOBJ *pwo); + /*IN*/ WNDOBJ *pwo); WIN32KAPI DWORD DDKAPI EngDeviceIoControl( - IN HANDLE hDevice, - IN DWORD dwIoControlCode, - IN LPVOID lpInBuffer, - IN DWORD nInBufferSize, - IN OUT LPVOID lpOutBuffer, - IN DWORD nOutBufferSize, - OUT LPDWORD lpBytesReturned); + /*IN*/ HANDLE hDevice, + /*IN*/ DWORD dwIoControlCode, + /*IN*/ LPVOID lpInBuffer, + /*IN*/ DWORD nInBufferSize, + /*IN OUT*/ LPVOID lpOutBuffer, + /*IN*/ DWORD nOutBufferSize, + + /*OUT*/ LPDWORD lpBytesReturned); WIN32KAPI ULONG DDKAPI EngDitherColor( - IN HDEV hdev, - IN ULONG iMode, - IN ULONG rgb, - OUT ULONG *pul); + /*IN*/ HDEV hdev, + /*IN*/ ULONG iMode, + /*IN*/ ULONG rgb, + + /*OUT*/ ULONG *pul); WIN32KAPI BOOL DDKAPI EngEnumForms( - IN HANDLE hPrinter, - IN DWORD Level, - OUT LPBYTE pForm, - IN DWORD cbBuf, - OUT LPDWORD pcbNeeded, - OUT LPDWORD pcReturned); + /*IN*/ HANDLE hPrinter, + /*IN*/ DWORD Level, + + /*OUT*/ LPBYTE pForm, + /*IN*/ DWORD cbBuf, + + /*OUT*/ LPDWORD pcbNeeded, + + /*OUT*/ LPDWORD pcReturned); WIN32KAPI BOOL DDKAPI EngEraseSurface( - IN SURFOBJ *pso, - IN RECTL *prcl, - IN ULONG iColor); + /*IN*/ SURFOBJ *pso, + /*IN*/ RECTL *prcl, + /*IN*/ ULONG iColor); WIN32KAPI BOOL DDKAPI EngFillPath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix, + /*IN*/ FLONG flOptions); WIN32KAPI PVOID DDKAPI EngFindImageProcAddress( - IN HANDLE hModule, - IN LPSTR lpProcName); + /*IN*/ HANDLE hModule, + /*IN*/ LPSTR lpProcName); WIN32KAPI PVOID DDKAPI EngFindResource( - IN HANDLE h, - IN int iName, - IN int iType, - OUT PULONG pulSize); + /*IN*/ HANDLE h, + /*IN*/ int iName, + /*IN*/ int iType, + + /*OUT*/ PULONG pulSize); WIN32KAPI PVOID DDKAPI EngFntCacheAlloc( - IN ULONG FastCheckSum, - IN ULONG ulSize); + /*IN*/ ULONG FastCheckSum, + /*IN*/ ULONG ulSize); /* EngFntCacheFault.iFaultMode constants */ #define ENG_FNT_CACHE_READ_FAULT 0x00000001 @@ -1602,47 +1611,50 @@ WIN32KAPI VOID DDKAPI EngFntCacheFault( - IN ULONG ulFastCheckSum, - IN ULONG iFaultMode); + /*IN*/ ULONG ulFastCheckSum, + /*IN*/ ULONG iFaultMode); WIN32KAPI PVOID DDKAPI EngFntCacheLookUp( - IN ULONG FastCheckSum, - OUT ULONG *pulSize); + /*IN*/ ULONG FastCheckSum, + + /*OUT*/ ULONG *pulSize); WIN32KAPI VOID DDKAPI EngFreeMem( - IN PVOID Mem); + /*IN*/ PVOID Mem); WIN32KAPI VOID DDKAPI EngFreeModule( - IN HANDLE h); + /*IN*/ HANDLE h); WIN32KAPI VOID DDKAPI EngFreePrivateUserMem( - IN PDD_SURFACE_LOCAL psl, - IN PVOID pv); + /*IN*/ PDD_SURFACE_LOCAL psl, + /*IN*/ PVOID pv); WIN32KAPI VOID DDKAPI EngFreeUserMem( - IN PVOID pv); + /*IN*/ PVOID pv); WIN32KAPI VOID DDKAPI EngGetCurrentCodePage( - OUT PUSHORT OemCodePage, - OUT PUSHORT AnsiCodePage); + + /*OUT*/ PUSHORT OemCodePage, + + /*OUT*/ PUSHORT AnsiCodePage); WIN32KAPI HANDLE @@ -1660,32 +1672,36 @@ WIN32KAPI LPWSTR DDKAPI EngGetDriverName( - IN HDEV hdev); + /*IN*/ HDEV hdev); WIN32KAPI BOOL DDKAPI EngGetFileChangeTime( - IN HANDLE h, - OUT LARGE_INTEGER *pChangeTime); + /*IN*/ HANDLE h, + + /*OUT*/ LARGE_INTEGER *pChangeTime); WIN32KAPI BOOL DDKAPI EngGetFilePath( - IN HANDLE h, - OUT WCHAR (*pDest)[MAX_PATH+1]); + /*IN*/ HANDLE h, + + /*OUT*/ WCHAR (*pDest)[MAX_PATH+1]); WIN32KAPI BOOL DDKAPI EngGetForm( - IN HANDLE hPrinter, - IN LPWSTR pFormName, - IN DWORD Level, - OUT LPBYTE pForm, - IN DWORD cbBuf, - OUT LPDWORD pcbNeeded); + /*IN*/ HANDLE hPrinter, + /*IN*/ LPWSTR pFormName, + /*IN*/ DWORD Level, + + /*OUT*/ LPBYTE pForm, + /*IN*/ DWORD cbBuf, + + /*OUT*/ LPDWORD pcbNeeded); WIN32KAPI ULONG @@ -1697,39 +1713,46 @@ WIN32KAPI BOOL DDKAPI EngGetPrinter( - IN HANDLE hPrinter, - IN DWORD dwLevel, - OUT LPBYTE pPrinter, - IN DWORD cbBuf, - OUT LPDWORD pcbNeeded); + /*IN*/ HANDLE hPrinter, + /*IN*/ DWORD dwLevel, + + /*OUT*/ LPBYTE pPrinter, + /*IN*/ DWORD cbBuf, + + /*OUT*/ LPDWORD pcbNeeded); WIN32KAPI DWORD DDKAPI EngGetPrinterData( - IN HANDLE hPrinter, - IN LPWSTR pValueName, - OUT LPDWORD pType, - OUT LPBYTE pData, - IN DWORD nSize, - OUT LPDWORD pcbNeeded); + /*IN*/ HANDLE hPrinter, + /*IN*/ LPWSTR pValueName, + + /*OUT*/ LPDWORD pType, + + /*OUT*/ LPBYTE pData, + /*IN*/ DWORD nSize, + + /*OUT*/ LPDWORD pcbNeeded); WIN32KAPI LPWSTR DDKAPI EngGetPrinterDataFileName( - IN HDEV hdev); + /*IN*/ HDEV hdev); WIN32KAPI BOOL DDKAPI EngGetPrinterDriver( - IN HANDLE hPrinter, - IN LPWSTR pEnvironment, - IN DWORD dwLevel, - OUT BYTE *lpbDrvInfo, - IN DWORD cbBuf, - OUT DWORD *pcbNeeded); + /*IN*/ HANDLE hPrinter, + /*IN*/ LPWSTR pEnvironment, + /*IN*/ DWORD dwLevel, + + /*OUT*/ BYTE *lpbDrvInfo, + /*IN*/ DWORD cbBuf, + + /*OUT*/ DWORD *pcbNeeded); WIN32KAPI HANDLE @@ -1741,27 +1764,31 @@ WIN32KAPI BOOL DDKAPI EngGetType1FontList( - IN HDEV hdev, - OUT TYPE1_FONT *pType1Buffer, - IN ULONG cjType1Buffer, - OUT PULONG pulLocalFonts, - OUT PULONG pulRemoteFonts, - OUT LARGE_INTEGER *pLastModified); + /*IN*/ HDEV hdev, + + /*OUT*/ TYPE1_FONT *pType1Buffer, + /*IN*/ ULONG cjType1Buffer, + + /*OUT*/ PULONG pulLocalFonts, + + /*OUT*/ PULONG pulRemoteFonts, + + /*OUT*/ LARGE_INTEGER *pLastModified); WIN32KAPI BOOL DDKAPI EngGradientFill( - IN SURFOBJ *psoDest, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN TRIVERTEX *pVertex, - IN ULONG nVertex, - IN PVOID pMesh, - IN ULONG nMesh, - IN RECTL *prclExtents, - IN POINTL *pptlDitherOrg, - IN ULONG ulMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ TRIVERTEX *pVertex, + /*IN*/ ULONG nVertex, + /*IN*/ PVOID pMesh, + /*IN*/ ULONG nMesh, + /*IN*/ RECTL *prclExtents, + /*IN*/ POINTL *pptlDitherOrg, + /*IN*/ ULONG ulMode); /* EngHangNotification return values */ #define EHN_RESTORED 0x00000000 @@ -1771,26 +1798,27 @@ WIN32KAPI ULONG DDKAPI EngHangNotification( - IN HDEV hDev, - IN PVOID Reserved); + /*IN*/ HDEV hDev, + /*IN*/ PVOID Reserved); WIN32KAPI BOOL DDKAPI EngInitializeSafeSemaphore( - OUT ENGSAFESEMAPHORE *pssem); + + /*OUT*/ ENGSAFESEMAPHORE *pssem); WIN32KAPI BOOL DDKAPI EngIsSemaphoreOwned( - IN HSEMAPHORE hsem); + /*IN*/ HSEMAPHORE hsem); WIN32KAPI BOOL DDKAPI EngIsSemaphoreOwnedByCurrentThread( - IN HSEMAPHORE hsem); + /*IN*/ HSEMAPHORE hsem); WIN32KAPI BOOL @@ -1810,38 +1838,38 @@ WIN32KAPI HANDLE DDKAPI EngLoadImage( - IN LPWSTR pwszDriver); + /*IN*/ LPWSTR pwszDriver); WIN32KAPI HANDLE DDKAPI EngLoadModule( - IN LPWSTR pwsz); + /*IN*/ LPWSTR pwsz); WIN32KAPI HANDLE DDKAPI EngLoadModuleForWrite( - IN LPWSTR pwsz, - IN ULONG cjSizeOfModule); + /*IN*/ LPWSTR pwsz, + /*IN*/ ULONG cjSizeOfModule); WIN32KAPI PDD_SURFACE_LOCAL DDKAPI EngLockDirectDrawSurface( - IN HANDLE hSurface); + /*IN*/ HANDLE hSurface); WIN32KAPI DRIVEROBJ* DDKAPI EngLockDriverObj( - IN HDRVOBJ hdo); + /*IN*/ HDRVOBJ hdo); WIN32KAPI SURFOBJ* DDKAPI EngLockSurface( - IN HSURF hsurf); + /*IN*/ HSURF hsurf); WIN32KAPI BOOL @@ -1853,19 +1881,20 @@ WIN32KAPI PEVENT DDKAPI EngMapEvent( - IN HDEV hDev, - IN HANDLE hUserObject, - IN PVOID Reserved1, - IN PVOID Reserved2, - IN PVOID Reserved3); + /*IN*/ HDEV hDev, + /*IN*/ HANDLE hUserObject, + /*IN*/ PVOID Reserved1, + /*IN*/ PVOID Reserved2, + /*IN*/ PVOID Reserved3); WIN32KAPI PVOID DDKAPI EngMapFile( - IN LPWSTR pwsz, - IN ULONG cjSize, - OUT ULONG_PTR *piFile); + /*IN*/ LPWSTR pwsz, + /*IN*/ ULONG cjSize, + + /*OUT*/ ULONG_PTR *piFile); WIN32KAPI BOOL @@ -1879,22 +1908,25 @@ WIN32KAPI BOOL DDKAPI EngMapFontFileFD( - IN ULONG_PTR iFile, - OUT PULONG *ppjBuf, - OUT ULONG *pcjBuf); + /*IN*/ ULONG_PTR iFile, + + /*OUT*/ PULONG *ppjBuf, + + /*OUT*/ ULONG *pcjBuf); WIN32KAPI PVOID DDKAPI EngMapModule( - IN HANDLE h, - OUT PULONG pSize); + /*IN*/ HANDLE h, + + /*OUT*/ PULONG pSize); WIN32KAPI BOOL DDKAPI EngMarkBandingSurface( - IN HSURF hsurf); + /*IN*/ HSURF hsurf); /* EngModifySurface.flSurface constants */ #define MS_NOTSYSTEMMEMORY 0x00000001 @@ -1904,93 +1936,96 @@ WIN32KAPI BOOL DDKAPI EngModifySurface( - IN HSURF hsurf, - IN HDEV hdev, - IN FLONG flHooks, - IN FLONG flSurface, - IN DHSURF dhsurf, - IN VOID *pvScan0, - IN LONG lDelta, - IN VOID *pvReserved); + /*IN*/ HSURF hsurf, + /*IN*/ HDEV hdev, + /*IN*/ FLONG flHooks, + /*IN*/ FLONG flSurface, + /*IN*/ DHSURF dhsurf, + /*IN*/ VOID *pvScan0, + /*IN*/ LONG lDelta, + /*IN*/ VOID *pvReserved); WIN32KAPI VOID DDKAPI EngMovePointer( - IN SURFOBJ *pso, - IN LONG x, - IN LONG y, - IN RECTL *prcl); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl); WIN32KAPI int DDKAPI EngMulDiv( - IN int a, - IN int b, - IN int c); + /*IN*/ int a, + /*IN*/ int b, + /*IN*/ int c); WIN32KAPI VOID DDKAPI EngMultiByteToUnicodeN( - OUT LPWSTR UnicodeString, - IN ULONG MaxBytesInUnicodeString, - OUT PULONG BytesInUnicodeString, - IN PCHAR MultiByteString, - IN ULONG BytesInMultiByteString); + + /*OUT*/ LPWSTR UnicodeString, + /*IN*/ ULONG MaxBytesInUnicodeString, + + /*OUT*/ PULONG BytesInUnicodeString, + /*IN*/ PCHAR MultiByteString, + /*IN*/ ULONG BytesInMultiByteString); WIN32KAPI INT DDKAPI EngMultiByteToWideChar( - IN UINT CodePage, - OUT LPWSTR WideCharString, - IN INT BytesInWideCharString, - IN LPSTR MultiByteString, - IN INT BytesInMultiByteString); + /*IN*/ UINT CodePage, + + /*OUT*/ LPWSTR WideCharString, + /*IN*/ INT BytesInWideCharString, + /*IN*/ LPSTR MultiByteString, + /*IN*/ INT BytesInMultiByteString); WIN32KAPI BOOL DDKAPI EngPaint( - IN SURFOBJ *pso, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix); WIN32KAPI BOOL DDKAPI EngPlgBlt( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMsk, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlBrushOrg, - IN POINTFIX *pptfx, - IN RECTL *prcl, - IN POINTL *pptl, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMsk, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ POINTFIX *pptfx, + /*IN*/ RECTL *prcl, + /*IN*/ POINTL *pptl, + /*IN*/ ULONG iMode); WIN32KAPI VOID DDKAPI EngProbeForRead( - IN PVOID Address, - IN ULONG Length, - IN ULONG Alignment); + /*IN*/ PVOID Address, + /*IN*/ ULONG Length, + /*IN*/ ULONG Alignment); WIN32KAPI VOID DDKAPI EngProbeForReadAndWrite( - IN PVOID Address, - IN ULONG Length, - IN ULONG Alignment); + /*IN*/ PVOID Address, + /*IN*/ ULONG Length, + /*IN*/ ULONG Alignment); typedef enum _ENG_DEVICE_ATTRIBUTE { QDA_RESERVED = 0, @@ -2001,45 +2036,52 @@ WIN32KAPI BOOL DDKAPI EngQueryDeviceAttribute( - IN HDEV hdev, - IN ENG_DEVICE_ATTRIBUTE devAttr, - IN VOID *pvIn, - IN ULONG ulInSize, - OUT VOID *pvOut, - OUT ULONG ulOutSize); + /*IN*/ HDEV hdev, + /*IN*/ ENG_DEVICE_ATTRIBUTE devAttr, + /*IN*/ VOID *pvIn, + /*IN*/ ULONG ulInSize, + + /*OUT*/ VOID *pvOut, + + /*OUT*/ ULONG ulOutSize); WIN32KAPI LARGE_INTEGER DDKAPI EngQueryFileTimeStamp( - IN LPWSTR pwsz); + /*IN*/ LPWSTR pwsz); WIN32KAPI VOID DDKAPI EngQueryLocalTime( - OUT PENG_TIME_FIELDS ptf); + + /*OUT*/ PENG_TIME_FIELDS ptf); WIN32KAPI ULONG DDKAPI EngQueryPalette( - IN HPALETTE hPal, - OUT ULONG *piMode, - IN ULONG cColors, - OUT ULONG *pulColors); + /*IN*/ HPALETTE hPal, + + /*OUT*/ ULONG *piMode, + /*IN*/ ULONG cColors, + + /*OUT*/ ULONG *pulColors); WIN32KAPI VOID DDKAPI EngQueryPerformanceCounter( - OUT LONGLONG *pPerformanceCount); + + /*OUT*/ LONGLONG *pPerformanceCount); WIN32KAPI VOID DDKAPI EngQueryPerformanceFrequency( - OUT LONGLONG *pFrequency); + + /*OUT*/ LONGLONG *pFrequency); typedef enum _ENG_SYSTEM_ATTRIBUTE { EngProcessorFeature = 1, @@ -2056,87 +2098,89 @@ WIN32KAPI BOOL DDKAPI EngQuerySystemAttribute( - IN ENG_SYSTEM_ATTRIBUTE CapNum, - OUT PDWORD pCapability); + /*IN*/ ENG_SYSTEM_ATTRIBUTE CapNum, + + /*OUT*/ PDWORD pCapability); WIN32KAPI LONG DDKAPI EngReadStateEvent( - IN PEVENT pEvent); + /*IN*/ PEVENT pEvent); WIN32KAPI VOID DDKAPI EngReleaseSemaphore( - IN HSEMAPHORE hsem); + /*IN*/ HSEMAPHORE hsem); WIN32KAPI BOOL DDKAPI EngRestoreFloatingPointState( - IN VOID *pBuffer); + /*IN*/ VOID *pBuffer); WIN32KAPI ULONG DDKAPI EngSaveFloatingPointState( - OUT VOID *pBuffer, - IN ULONG cjBufferSize); + + /*OUT*/ VOID *pBuffer, + /*IN*/ ULONG cjBufferSize); WIN32KAPI HANDLE DDKAPI EngSecureMem( - IN PVOID Address, - IN ULONG Length); + /*IN*/ PVOID Address, + /*IN*/ ULONG Length); WIN32KAPI LONG DDKAPI EngSetEvent( - IN PEVENT pEvent); + /*IN*/ PEVENT pEvent); WIN32KAPI VOID DDKAPI EngSetLastError( - IN ULONG iError); + /*IN*/ ULONG iError); WIN32KAPI ULONG DDKAPI EngSetPointerShape( - IN SURFOBJ *pso, - IN SURFOBJ *psoMask, - IN SURFOBJ *psoColor, - IN XLATEOBJ *pxlo, - IN LONG xHot, - IN LONG yHot, - IN LONG x, - IN LONG y, - IN RECTL *prcl, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ SURFOBJ *psoColor, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ LONG xHot, + /*IN*/ LONG yHot, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl, + /*IN*/ FLONG fl); WIN32KAPI BOOL DDKAPI EngSetPointerTag( - IN HDEV hdev, - IN SURFOBJ *psoMask, - IN SURFOBJ *psoColor, - IN XLATEOBJ *pxlo, - IN FLONG fl); + /*IN*/ HDEV hdev, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ SURFOBJ *psoColor, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ FLONG fl); WIN32KAPI DWORD DDKAPI EngSetPrinterData( - IN HANDLE hPrinter, - IN LPWSTR pType, - IN DWORD dwType, - IN LPBYTE lpbPrinterData, - IN DWORD cjPrinterData); + /*IN*/ HANDLE hPrinter, + /*IN*/ LPWSTR pType, + /*IN*/ DWORD dwType, + /*IN*/ LPBYTE lpbPrinterData, + /*IN*/ DWORD cjPrinterData); typedef int DDKCDECLAPI (*SORTCOMP)(const void *pv1, const void *pv2); @@ -2144,146 +2188,148 @@ WIN32KAPI VOID DDKAPI EngSort( - IN OUT PBYTE pjBuf, - IN ULONG c, - IN ULONG cjElem, - IN SORTCOMP pfnComp); + /*IN OUT*/ PBYTE pjBuf, + /*IN*/ ULONG c, + /*IN*/ ULONG cjElem, + /*IN*/ SORTCOMP pfnComp); WIN32KAPI BOOL DDKAPI EngStretchBlt( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode); WIN32KAPI BOOL DDKAPI EngStretchBltROP( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode, - IN BRUSHOBJ *pbo, - IN DWORD rop4); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ DWORD rop4); WIN32KAPI BOOL DDKAPI EngStrokeAndFillPath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pboStroke, - IN LINEATTRS *plineattrs, - IN BRUSHOBJ *pboFill, - IN POINTL *pptlBrushOrg, - IN MIX mixFill, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pboStroke, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ BRUSHOBJ *pboFill, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mixFill, + /*IN*/ FLONG flOptions); WIN32KAPI BOOL DDKAPI EngStrokePath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN LINEATTRS *plineattrs, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ MIX mix); WIN32KAPI BOOL DDKAPI EngTextOut( - IN SURFOBJ *pso, - IN STROBJ *pstro, - IN FONTOBJ *pfo, - IN CLIPOBJ *pco, - IN RECTL *prclExtra, - IN RECTL *prclOpaque, - IN BRUSHOBJ *pboFore, - IN BRUSHOBJ *pboOpaque, - IN POINTL *pptlOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ STROBJ *pstro, + /*IN*/ FONTOBJ *pfo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ RECTL *prclExtra, + /*IN*/ RECTL *prclOpaque, + /*IN*/ BRUSHOBJ *pboFore, + /*IN*/ BRUSHOBJ *pboOpaque, + /*IN*/ POINTL *pptlOrg, + /*IN*/ MIX mix); WIN32KAPI BOOL DDKAPI EngTransparentBlt( - IN SURFOBJ *psoDst, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDst, - IN RECTL *prclSrc, - IN ULONG iTransColor, - IN ULONG ulReserved); + /*IN*/ SURFOBJ *psoDst, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDst, + /*IN*/ RECTL *prclSrc, + /*IN*/ ULONG iTransColor, + /*IN*/ ULONG ulReserved); WIN32KAPI VOID DDKAPI EngUnicodeToMultiByteN( - OUT PCHAR MultiByteString, - IN ULONG MaxBytesInMultiByteString, - OUT PULONG BytesInMultiByteString, - IN PWSTR UnicodeString, - IN ULONG BytesInUnicodeString); + + /*OUT*/ PCHAR MultiByteString, + /*IN*/ ULONG MaxBytesInMultiByteString, + + /*OUT*/ PULONG BytesInMultiByteString, + /*IN*/ PWSTR UnicodeString, + /*IN*/ ULONG BytesInUnicodeString); WIN32KAPI VOID DDKAPI EngUnloadImage( - IN HANDLE hModule); + /*IN*/ HANDLE hModule); WIN32KAPI BOOL DDKAPI EngUnlockDirectDrawSurface( - IN PDD_SURFACE_LOCAL pSurface); + /*IN*/ PDD_SURFACE_LOCAL pSurface); WIN32KAPI BOOL DDKAPI EngUnlockDriverObj( - IN HDRVOBJ hdo); + /*IN*/ HDRVOBJ hdo); WIN32KAPI VOID DDKAPI EngUnlockSurface( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); WIN32KAPI BOOL DDKAPI EngUnmapEvent( - IN PEVENT pEvent); + /*IN*/ PEVENT pEvent); WIN32KAPI BOOL DDKAPI EngUnmapFile( - IN ULONG_PTR iFile); + /*IN*/ ULONG_PTR iFile); WIN32KAPI VOID @@ -2295,472 +2341,496 @@ WIN32KAPI VOID DDKAPI EngUnmapFontFileFD( - IN ULONG_PTR iFile); + /*IN*/ ULONG_PTR iFile); WIN32KAPI VOID DDKAPI EngUnsecureMem( - IN HANDLE hSecure); + /*IN*/ HANDLE hSecure); WIN32KAPI BOOL DDKAPI EngWaitForSingleObject( - IN PEVENT pEvent, - IN PLARGE_INTEGER pTimeOut); + /*IN*/ PEVENT pEvent, + /*IN*/ PLARGE_INTEGER pTimeOut); WIN32KAPI INT DDKAPI EngWideCharToMultiByte( - IN UINT CodePage, - IN LPWSTR WideCharString, - IN INT BytesInWideCharString, - OUT LPSTR MultiByteString, - IN INT BytesInMultiByteString); + /*IN*/ UINT CodePage, + /*IN*/ LPWSTR WideCharString, + /*IN*/ INT BytesInWideCharString, + + /*OUT*/ LPSTR MultiByteString, + /*IN*/ INT BytesInMultiByteString); WIN32KAPI BOOL DDKAPI EngWritePrinter( - IN HANDLE hPrinter, - IN LPVOID pBuf, - IN DWORD cbBuf, - OUT LPDWORD pcWritten); + /*IN*/ HANDLE hPrinter, + /*IN*/ LPVOID pBuf, + /*IN*/ DWORD cbBuf, + + /*OUT*/ LPDWORD pcWritten); WIN32KAPI VOID DDKAPI FLOATOBJ_Add( - IN OUT PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI VOID DDKAPI FLOATOBJ_AddFloat( - IN OUT PFLOATOBJ pf, - IN FLOATL f); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ FLOATL f); WIN32KAPI VOID DDKAPI FLOATOBJ_AddLong( - IN OUT PFLOATOBJ pf, - IN LONG l); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI VOID DDKAPI FLOATOBJ_Div( - IN OUT PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI VOID DDKAPI FLOATOBJ_DivFloat( - IN OUT PFLOATOBJ pf, - IN FLOATL f); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ FLOATL f); WIN32KAPI VOID DDKAPI FLOATOBJ_DivLong( - IN OUT PFLOATOBJ pf, - IN LONG l); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI BOOL DDKAPI FLOATOBJ_Equal( - IN PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI BOOL DDKAPI FLOATOBJ_EqualLong( - IN PFLOATOBJ pf, - IN LONG l); + /*IN*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI LONG DDKAPI FLOATOBJ_GetFloat( - IN PFLOATOBJ pf); + /*IN*/ PFLOATOBJ pf); WIN32KAPI LONG DDKAPI FLOATOBJ_GetLong( - IN PFLOATOBJ pf); + /*IN*/ PFLOATOBJ pf); WIN32KAPI BOOL DDKAPI FLOATOBJ_GreaterThan( - IN PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI BOOL DDKAPI FLOATOBJ_GreaterThanLong( - IN PFLOATOBJ pf, - IN LONG l); + /*IN*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI BOOL DDKAPI FLOATOBJ_LessThan( - IN PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI BOOL DDKAPI FLOATOBJ_LessThanLong( - IN PFLOATOBJ pf, - IN LONG l); + /*IN*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI VOID DDKAPI FLOATOBJ_Mul( - IN OUT PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI VOID DDKAPI FLOATOBJ_MulFloat( - IN OUT PFLOATOBJ pf, - IN FLOATL f); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ FLOATL f); WIN32KAPI VOID DDKAPI FLOATOBJ_MulLong( - IN OUT PFLOATOBJ pf, - IN LONG l); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI VOID DDKAPI FLOATOBJ_Neg( - IN OUT PFLOATOBJ pf); + /*IN OUT*/ PFLOATOBJ pf); WIN32KAPI VOID DDKAPI FLOATOBJ_SetFloat( - OUT PFLOATOBJ pf, - IN FLOATL f); + + /*OUT*/ PFLOATOBJ pf, + /*IN*/ FLOATL f); WIN32KAPI VOID DDKAPI FLOATOBJ_SetLong( - OUT PFLOATOBJ pf, - IN LONG l); + + /*OUT*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI VOID DDKAPI FLOATOBJ_Sub( - IN OUT PFLOATOBJ pf, - IN PFLOATOBJ pf1); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ PFLOATOBJ pf1); WIN32KAPI VOID DDKAPI FLOATOBJ_SubFloat( - IN OUT PFLOATOBJ pf, - IN FLOATL f); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ FLOATL f); WIN32KAPI VOID DDKAPI FLOATOBJ_SubLong( - IN OUT PFLOATOBJ pf, - IN LONG l); + /*IN OUT*/ PFLOATOBJ pf, + /*IN*/ LONG l); WIN32KAPI ULONG DDKAPI FONTOBJ_cGetAllGlyphHandles( - IN FONTOBJ *pfo, - OUT HGLYPH *phg); + /*IN*/ FONTOBJ *pfo, + + /*OUT*/ HGLYPH *phg); WIN32KAPI ULONG DDKAPI FONTOBJ_cGetGlyphs( - IN FONTOBJ *pfo, - IN ULONG iMode, - IN ULONG cGlyph, - IN HGLYPH *phg, - OUT PVOID *ppvGlyph); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ ULONG cGlyph, + /*IN*/ HGLYPH *phg, + + /*OUT*/ PVOID *ppvGlyph); WIN32KAPI FD_GLYPHSET* DDKAPI FONTOBJ_pfdg( - IN FONTOBJ *pfo); + /*IN*/ FONTOBJ *pfo); WIN32KAPI IFIMETRICS* DDKAPI FONTOBJ_pifi( - IN FONTOBJ *pfo); + /*IN*/ FONTOBJ *pfo); WIN32KAPI PBYTE DDKAPI FONTOBJ_pjOpenTypeTablePointer( - IN FONTOBJ *pfo, - IN ULONG ulTag, - OUT ULONG *pcjTable); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG ulTag, + + /*OUT*/ ULONG *pcjTable); WIN32KAPI PFD_GLYPHATTR DDKAPI FONTOBJ_pQueryGlyphAttrs( - IN FONTOBJ *pfo, - IN ULONG iMode); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode); WIN32KAPI PVOID DDKAPI FONTOBJ_pvTrueTypeFontFile( - IN FONTOBJ *pfo, - OUT ULONG *pcjFile); + /*IN*/ FONTOBJ *pfo, + + /*OUT*/ ULONG *pcjFile); WIN32KAPI LPWSTR DDKAPI FONTOBJ_pwszFontFilePaths( - IN FONTOBJ *pfo, - OUT ULONG *pcwc); + /*IN*/ FONTOBJ *pfo, + + /*OUT*/ ULONG *pcwc); WIN32KAPI XFORMOBJ* DDKAPI FONTOBJ_pxoGetXform( - IN FONTOBJ *pfo); + /*IN*/ FONTOBJ *pfo); WIN32KAPI VOID DDKAPI FONTOBJ_vGetInfo( - IN FONTOBJ *pfo, - IN ULONG cjSize, - OUT FONTINFO *pfi); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG cjSize, + + /*OUT*/ FONTINFO *pfi); WIN32KAPI FLATPTR DDKAPI HeapVidMemAllocAligned( - IN LPVIDMEM lpVidMem, - IN DWORD dwWidth, - IN DWORD dwHeight, - IN LPSURFACEALIGNMENT lpAlignment, - OUT LPLONG lpNewPitch); + /*IN*/ LPVIDMEM lpVidMem, + /*IN*/ DWORD dwWidth, + /*IN*/ DWORD dwHeight, + /*IN*/ LPSURFACEALIGNMENT lpAlignment, + + /*OUT*/ LPLONG lpNewPitch); WIN32KAPI LONG DDKAPI HT_ComputeRGBGammaTable( - IN USHORT GammaTableEntries, - IN USHORT GammaTableType, - IN USHORT RedGamma, - IN USHORT GreenGamma, - IN USHORT BlueGamma, - OUT LPBYTE pGammaTable); + /*IN*/ USHORT GammaTableEntries, + /*IN*/ USHORT GammaTableType, + /*IN*/ USHORT RedGamma, + /*IN*/ USHORT GreenGamma, + /*IN*/ USHORT BlueGamma, + + /*OUT*/ LPBYTE pGammaTable); WIN32KAPI LONG DDKAPI HT_Get8BPPFormatPalette( - OUT LPPALETTEENTRY pPaletteEntry, - IN USHORT RedGamma, - IN USHORT GreenGamma, - IN USHORT BlueGamma); + + /*OUT*/ LPPALETTEENTRY pPaletteEntry, + /*IN*/ USHORT RedGamma, + /*IN*/ USHORT GreenGamma, + /*IN*/ USHORT BlueGamma); WIN32KAPI LONG DDKAPI HT_Get8BPPMaskPalette( - IN OUT LPPALETTEENTRY pPaletteEntry, - IN BOOL Use8BPPMaskPal, - IN BYTE CMYMask, - IN USHORT RedGamma, - IN USHORT GreenGamma, - IN USHORT BlueGamma); + /*IN OUT*/ LPPALETTEENTRY pPaletteEntry, + /*IN*/ BOOL Use8BPPMaskPal, + /*IN*/ BYTE CMYMask, + /*IN*/ USHORT RedGamma, + /*IN*/ USHORT GreenGamma, + /*IN*/ USHORT BlueGamma); WIN32KAPI LONG DDKAPI HTUI_DeviceColorAdjustment( - IN LPSTR pDeviceName, - OUT PDEVHTADJDATA pDevHTAdjData); + /*IN*/ LPSTR pDeviceName, + + /*OUT*/ PDEVHTADJDATA pDevHTAdjData); WIN32KAPI ULONG DDKAPI PALOBJ_cGetColors( - IN PALOBJ *ppalo, - IN ULONG iStart, - IN ULONG cColors, - OUT ULONG *pulColors); + /*IN*/ PALOBJ *ppalo, + /*IN*/ ULONG iStart, + /*IN*/ ULONG cColors, + + /*OUT*/ ULONG *pulColors); WIN32KAPI BOOL DDKAPI PATHOBJ_bCloseFigure( - IN PATHOBJ *ppo); + /*IN*/ PATHOBJ *ppo); WIN32KAPI BOOL DDKAPI PATHOBJ_bEnum( - IN PATHOBJ *ppo, - OUT PATHDATA *ppd); + /*IN*/ PATHOBJ *ppo, + + /*OUT*/ PATHDATA *ppd); WIN32KAPI BOOL DDKAPI PATHOBJ_bEnumClipLines( - IN PATHOBJ *ppo, - IN ULONG cb, - OUT CLIPLINE *pcl); + /*IN*/ PATHOBJ *ppo, + /*IN*/ ULONG cb, + + /*OUT*/ CLIPLINE *pcl); WIN32KAPI BOOL DDKAPI PATHOBJ_bMoveTo( - IN PATHOBJ *ppo, - IN POINTFIX ptfx); + /*IN*/ PATHOBJ *ppo, + /*IN*/ POINTFIX ptfx); WIN32KAPI BOOL DDKAPI PATHOBJ_bPolyBezierTo( - IN PATHOBJ *ppo, - IN POINTFIX *pptfx, - IN ULONG cptfx); + /*IN*/ PATHOBJ *ppo, + /*IN*/ POINTFIX *pptfx, + /*IN*/ ULONG cptfx); WIN32KAPI BOOL DDKAPI PATHOBJ_bPolyLineTo( - IN PATHOBJ *ppo, - IN POINTFIX *pptfx, - IN ULONG cptfx); + /*IN*/ PATHOBJ *ppo, + /*IN*/ POINTFIX *pptfx, + /*IN*/ ULONG cptfx); WIN32KAPI VOID DDKAPI PATHOBJ_vEnumStart( - IN PATHOBJ *ppo); + /*IN*/ PATHOBJ *ppo); WIN32KAPI VOID DDKAPI PATHOBJ_vEnumStartClipLines( - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN SURFOBJ *pso, - IN LINEATTRS *pla); + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ SURFOBJ *pso, + /*IN*/ LINEATTRS *pla); WIN32KAPI VOID DDKAPI PATHOBJ_vGetBounds( - IN PATHOBJ *ppo, - OUT PRECTFX prectfx); + /*IN*/ PATHOBJ *ppo, + + /*OUT*/ PRECTFX prectfx); WIN32KAPI BOOL DDKAPI STROBJ_bEnum( - IN STROBJ *pstro, - OUT ULONG *pc, - OUT PGLYPHPOS *ppgpos); + /*IN*/ STROBJ *pstro, + + /*OUT*/ ULONG *pc, + + /*OUT*/ PGLYPHPOS *ppgpos); WIN32KAPI BOOL DDKAPI STROBJ_bEnumPositionsOnly( - IN STROBJ *pstro, - OUT ULONG *pc, - OUT PGLYPHPOS *ppgpos); + /*IN*/ STROBJ *pstro, + + /*OUT*/ ULONG *pc, + + /*OUT*/ PGLYPHPOS *ppgpos); WIN32KAPI BOOL DDKAPI STROBJ_bGetAdvanceWidths( - IN STROBJ *pso, - IN ULONG iFirst, - IN ULONG c, - OUT POINTQF *pptqD); + /*IN*/ STROBJ *pso, + /*IN*/ ULONG iFirst, + /*IN*/ ULONG c, + + /*OUT*/ POINTQF *pptqD); WIN32KAPI DWORD DDKAPI STROBJ_dwGetCodePage( - IN STROBJ *pstro); + /*IN*/ STROBJ *pstro); WIN32KAPI FIX DDKAPI STROBJ_fxBreakExtra( - IN STROBJ *pstro); + /*IN*/ STROBJ *pstro); WIN32KAPI FIX DDKAPI STROBJ_fxCharacterExtra( - IN STROBJ *pstro); + /*IN*/ STROBJ *pstro); WIN32KAPI VOID DDKAPI STROBJ_vEnumStart( - IN STROBJ *pstro); + /*IN*/ STROBJ *pstro); WIN32KAPI VOID DDKAPI VidMemFree( - IN LPVMEMHEAP pvmh, - IN FLATPTR ptr); + /*IN*/ LPVMEMHEAP pvmh, + /*IN*/ FLATPTR ptr); WIN32KAPI BOOL DDKAPI WNDOBJ_bEnum( - IN WNDOBJ *pwo, - IN ULONG cj, - OUT ULONG *pul); + /*IN*/ WNDOBJ *pwo, + /*IN*/ ULONG cj, + + /*OUT*/ ULONG *pul); WIN32KAPI ULONG DDKAPI WNDOBJ_cEnumStart( - IN WNDOBJ *pwo, - IN ULONG iType, - IN ULONG iDirection, - IN ULONG cLimit); + /*IN*/ WNDOBJ *pwo, + /*IN*/ ULONG iType, + /*IN*/ ULONG iDirection, + /*IN*/ ULONG cLimit); WIN32KAPI VOID DDKAPI WNDOBJ_vSetConsumer( - IN WNDOBJ *pwo, - IN PVOID pvConsumer); + /*IN*/ WNDOBJ *pwo, + /*IN*/ PVOID pvConsumer); /* XFORMOBJ_bApplyXform.iMode constants */ #define XF_LTOL 0L @@ -2772,25 +2842,28 @@ WIN32KAPI BOOL DDKAPI XFORMOBJ_bApplyXform( - IN XFORMOBJ *pxo, - IN ULONG iMode, - IN ULONG cPoints, - IN PVOID pvIn, - OUT PVOID pvOut); + /*IN*/ XFORMOBJ *pxo, + /*IN*/ ULONG iMode, + /*IN*/ ULONG cPoints, + /*IN*/ PVOID pvIn, + + /*OUT*/ PVOID pvOut); WIN32KAPI ULONG DDKAPI XFORMOBJ_iGetFloatObjXform( - IN XFORMOBJ *pxo, - OUT FLOATOBJ_XFORM *pxfo); + /*IN*/ XFORMOBJ *pxo, + + /*OUT*/ FLOATOBJ_XFORM *pxfo); WIN32KAPI ULONG DDKAPI XFORMOBJ_iGetXform( - IN XFORMOBJ *pxo, - OUT XFORML *pxform); + /*IN*/ XFORMOBJ *pxo, + + /*OUT*/ XFORML *pxform); /* XLATEOBJ_cGetPalette.iPal constants */ #define XO_SRCPALETTE 1 @@ -2803,29 +2876,30 @@ WIN32KAPI ULONG DDKAPI XLATEOBJ_cGetPalette( - IN XLATEOBJ *pxlo, - IN ULONG iPal, - IN ULONG cPal, - OUT ULONG *pPal); + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ ULONG iPal, + /*IN*/ ULONG cPal, + + /*OUT*/ ULONG *pPal); WIN32KAPI HANDLE DDKAPI XLATEOBJ_hGetColorTransform( - IN XLATEOBJ *pxlo); + /*IN*/ XLATEOBJ *pxlo); WIN32KAPI ULONG DDKAPI XLATEOBJ_iXlate( - IN XLATEOBJ *pxlo, - IN ULONG iColor); + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ ULONG iColor); WIN32KAPI ULONG* DDKAPI XLATEOBJ_piVector( - IN XLATEOBJ *pxlo); + /*IN*/ XLATEOBJ *pxlo); @@ -2834,62 +2908,62 @@ XLATEOBJ_piVector( BOOL DDKAPI DrvAlphaBlend( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN BLENDOBJ *pBlendObj); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ BLENDOBJ *pBlendObj); BOOL DDKAPI DrvAssertMode( - IN DHPDEV dhpdev, - IN BOOL bEnable); + /*IN*/ DHPDEV dhpdev, + /*IN*/ BOOL bEnable); BOOL DDKAPI DrvBitBlt( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclTrg, - IN POINTL *pptlSrc, - IN POINTL *pptlMask, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrush, - IN ROP4 rop4); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclTrg, + /*IN*/ POINTL *pptlSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrush, + /*IN*/ ROP4 rop4); VOID DDKAPI DrvCompletePDEV( - IN DHPDEV dhpdev, - IN HDEV hdev); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HDEV hdev); BOOL DDKAPI DrvCopyBits( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN POINTL *pptlSrc); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ POINTL *pptlSrc); HBITMAP DDKAPI DrvCreateDeviceBitmap( - IN DHPDEV dhpdev, - IN SIZEL sizl, - IN ULONG iFormat); + /*IN*/ DHPDEV dhpdev, + /*IN*/ SIZEL sizl, + /*IN*/ ULONG iFormat); VOID DDKAPI DrvDeleteDeviceBitmap( - IN DHSURF dhsurf); + /*IN*/ DHSURF dhsurf); HBITMAP DDKAPI @@ -2900,15 +2974,16 @@ DrvDeriveSurface( LONG DDKAPI DrvDescribePixelFormat( - IN DHPDEV dhpdev, - IN LONG iPixelFormat, - IN ULONG cjpfd, - OUT PIXELFORMATDESCRIPTOR *ppfd); + /*IN*/ DHPDEV dhpdev, + /*IN*/ LONG iPixelFormat, + /*IN*/ ULONG cjpfd, + + /*OUT*/ PIXELFORMATDESCRIPTOR *ppfd); VOID DDKAPI DrvDestroyFont( - IN FONTOBJ *pfo); + /*IN*/ FONTOBJ *pfo); VOID DDKAPI @@ -2918,12 +2993,12 @@ DrvDisableDriver( VOID DDKAPI DrvDisablePDEV( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); VOID DDKAPI DrvDisableSurface( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); #define DM_DEFAULT 0x00000001 #define DM_MONOCHROME 0x00000002 @@ -2931,47 +3006,52 @@ DrvDisableSurface( ULONG DDKAPI DrvDitherColor( - IN DHPDEV dhpdev, - IN ULONG iMode, - IN ULONG rgb, - OUT ULONG *pul); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG iMode, + /*IN*/ ULONG rgb, + + /*OUT*/ ULONG *pul); ULONG DDKAPI DrvDrawEscape( - IN SURFOBJ *pso, - IN ULONG iEsc, - IN CLIPOBJ *pco, - IN RECTL *prcl, - IN ULONG cjIn, - IN PVOID pvIn); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iEsc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ RECTL *prcl, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn); BOOL DDKAPI DrvEnableDriver( - IN ULONG iEngineVersion, - IN ULONG cj, - OUT DRVENABLEDATA *pded); + /*IN*/ ULONG iEngineVersion, + /*IN*/ ULONG cj, + + /*OUT*/ DRVENABLEDATA *pded); DHPDEV DDKAPI DrvEnablePDEV( - IN DEVMODEW *pdm, - IN LPWSTR pwszLogAddress, - IN ULONG cPat, - OUT HSURF *phsurfPatterns, - IN ULONG cjCaps, - OUT ULONG *pdevcaps, - IN ULONG cjDevInfo, - OUT DEVINFO *pdi, - IN HDEV hdev, - IN LPWSTR pwszDeviceName, - IN HANDLE hDriver); + /*IN*/ DEVMODEW *pdm, + /*IN*/ LPWSTR pwszLogAddress, + /*IN*/ ULONG cPat, + + /*OUT*/ HSURF *phsurfPatterns, + /*IN*/ ULONG cjCaps, + + /*OUT*/ ULONG *pdevcaps, + /*IN*/ ULONG cjDevInfo, + + /*OUT*/ DEVINFO *pdi, + /*IN*/ HDEV hdev, + /*IN*/ LPWSTR pwszDeviceName, + /*IN*/ HANDLE hDriver); HSURF DDKAPI DrvEnableSurface( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); /* DrvEndDoc.fl constants */ #define ED_ABORTDOC 0x00000001 @@ -2979,46 +3059,48 @@ DrvEnableSurface( BOOL DDKAPI DrvEndDoc( - IN SURFOBJ *pso, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ FLONG fl); ULONG DDKAPI DrvEscape( - IN SURFOBJ *pso, - IN ULONG iEsc, - IN ULONG cjIn, - IN PVOID pvIn, - IN ULONG cjOut, - OUT PVOID pvOut); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iEsc, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn, + /*IN*/ ULONG cjOut, + + /*OUT*/ PVOID pvOut); BOOL DDKAPI DrvFillPath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix, + /*IN*/ FLONG flOptions); ULONG DDKAPI DrvFontManagement( - IN SURFOBJ *pso, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN ULONG cjIn, - IN PVOID pvIn, - IN ULONG cjOut, - OUT PVOID pvOut); + /*IN*/ SURFOBJ *pso, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn, + /*IN*/ ULONG cjOut, + + /*OUT*/ PVOID pvOut); VOID DDKAPI DrvFree( - IN PVOID pv, - IN ULONG_PTR id); + /*IN*/ PVOID pv, + /*IN*/ ULONG_PTR id); /* DrvGetGlyphMode return values */ #define FO_HGLYPHS 0L @@ -3028,62 +3110,64 @@ DrvFree( ULONG DDKAPI DrvGetGlyphMode( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo); ULONG DDKAPI DrvGetModes( - IN HANDLE hDriver, - IN ULONG cjSize, - OUT DEVMODEW *pdm); + /*IN*/ HANDLE hDriver, + /*IN*/ ULONG cjSize, + + /*OUT*/ DEVMODEW *pdm); PVOID DDKAPI DrvGetTrueTypeFile( - IN ULONG_PTR iFile, - IN ULONG *pcj); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG *pcj); BOOL DDKAPI DrvGradientFill( - IN SURFOBJ *psoDest, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN TRIVERTEX *pVertex, - IN ULONG nVertex, - IN PVOID pMesh, - IN ULONG nMesh, - IN RECTL *prclExtents, - IN POINTL *pptlDitherOrg, - IN ULONG ulMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ TRIVERTEX *pVertex, + /*IN*/ ULONG nVertex, + /*IN*/ PVOID pMesh, + /*IN*/ ULONG nMesh, + /*IN*/ RECTL *prclExtents, + /*IN*/ POINTL *pptlDitherOrg, + /*IN*/ ULONG ulMode); BOOL DDKAPI DrvIcmCheckBitmapBits( - IN DHPDEV dhpdev, - IN HANDLE hColorTransform, - IN SURFOBJ *pso, - OUT PBYTE paResults); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HANDLE hColorTransform, + /*IN*/ SURFOBJ *pso, + + /*OUT*/ PBYTE paResults); HANDLE DDKAPI DrvIcmCreateColorTransform( - IN DHPDEV dhpdev, - IN LPLOGCOLORSPACEW pLogColorSpace, - IN PVOID pvSourceProfile, - IN ULONG cjSourceProfile, - IN PVOID pvDestProfile, - IN ULONG cjDestProfile, - IN PVOID pvTargetProfile, - IN ULONG cjTargetProfile, - IN DWORD dwReserved); + /*IN*/ DHPDEV dhpdev, + /*IN*/ LPLOGCOLORSPACEW pLogColorSpace, + /*IN*/ PVOID pvSourceProfile, + /*IN*/ ULONG cjSourceProfile, + /*IN*/ PVOID pvDestProfile, + /*IN*/ ULONG cjDestProfile, + /*IN*/ PVOID pvTargetProfile, + /*IN*/ ULONG cjTargetProfile, + /*IN*/ DWORD dwReserved); BOOL DDKAPI DrvIcmDeleteColorTransform( - IN DHPDEV dhpdev, - IN HANDLE hcmXform); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HANDLE hcmXform); /* DrvIcmSetDeviceGammaRamp.iFormat constants */ #define IGRF_RGB_256BYTES 0x00000000 @@ -3092,9 +3176,9 @@ DrvIcmDeleteColorTransform( BOOL DDKAPI DrvIcmSetDeviceGammaRamp( - IN DHPDEV dhpdev, - IN ULONG iFormat, - IN LPVOID lpRamp); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG iFormat, + /*IN*/ LPVOID lpRamp); BOOL DDKAPI @@ -3123,55 +3207,55 @@ DrvLoadFontFile( VOID DDKAPI DrvMovePointer( - IN SURFOBJ *pso, - IN LONG x, - IN LONG y, - IN RECTL *prcl); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl); BOOL DDKAPI DrvNextBand( - IN SURFOBJ *pso, - IN POINTL *pptl); + /*IN*/ SURFOBJ *pso, + /*IN*/ POINTL *pptl); VOID DDKAPI DrvNotify( - IN SURFOBJ *pso, - IN ULONG iType, - IN PVOID pvData); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iType, + /*IN*/ PVOID pvData); BOOL DDKAPI DrvOffset( - IN SURFOBJ *pso, - IN LONG x, - IN LONG y, - IN FLONG flReserved); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ FLONG flReserved); BOOL DDKAPI DrvPaint( - IN SURFOBJ *pso, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix); BOOL DDKAPI DrvPlgBlt( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMsk, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlBrushOrg, - IN POINTFIX *pptfx, - IN RECTL *prcl, - IN POINTL *pptl, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMsk, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ POINTFIX *pptfx, + /*IN*/ RECTL *prcl, + /*IN*/ POINTL *pptl, + /*IN*/ ULONG iMode); /* DrvQueryAdvanceWidths.iMode constants */ #define QAW_GETWIDTHS 0 @@ -3180,12 +3264,13 @@ DrvPlgBlt( BOOL DDKAPI DrvQueryAdvanceWidths( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN HGLYPH *phg, - OUT PVOID pvWidths, - IN ULONG cGlyphs); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ HGLYPH *phg, + + /*OUT*/ PVOID pvWidths, + /*IN*/ ULONG cGlyphs); /* DrvQueryDeviceSupport.iType constants */ #define QDS_CHECKJPEGFORMAT 0x00000000 @@ -3217,10 +3302,10 @@ DrvQueryDriverInfo( PIFIMETRICS DDKAPI DrvQueryFont( - IN DHPDEV dhpdev, - IN ULONG_PTR iFile, - IN ULONG iFace, - IN ULONG_PTR *pid); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG iFace, + /*IN*/ ULONG_PTR *pid); /* DrvQueryFontCaps.pulCaps constants */ #define QC_OUTLINES 0x00000001 @@ -3232,8 +3317,9 @@ DrvQueryFont( LONG DDKAPI DrvQueryFontCaps( - IN ULONG culCaps, - OUT ULONG *pulCaps); + /*IN*/ ULONG culCaps, + + /*OUT*/ ULONG *pulCaps); /* DrvQueryFontData.iMode constants */ #define QFD_GLYPHANDBITMAP 1L @@ -3250,13 +3336,13 @@ DrvQueryFontCaps( LONG DDKAPI DrvQueryFontData( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN HGLYPH hg, - IN OUT GLYPHDATA *pgd, - IN OUT PVOID pv, - IN ULONG cjSize); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ HGLYPH hg, + /*IN OUT*/ GLYPHDATA *pgd, + /*IN OUT*/ PVOID pv, + /*IN*/ ULONG cjSize); /* DrvQueryFontFile.ulMode constants */ #define QFF_DESCRIPTION 0x00000001 @@ -3265,10 +3351,10 @@ DrvQueryFontData( LONG DDKAPI DrvQueryFontFile( - IN ULONG_PTR iFile, - IN ULONG ulMode, - IN ULONG cjBuf, - IN ULONG *pulBuf); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG ulMode, + /*IN*/ ULONG cjBuf, + /*IN*/ ULONG *pulBuf); /* DrvQueryFontTree.iMode constants */ #define QFT_UNICODE 0L @@ -3279,23 +3365,23 @@ DrvQueryFontFile( PVOID DDKAPI DrvQueryFontTree( - IN DHPDEV dhpdev, - IN ULONG_PTR iFile, - IN ULONG iFace, - IN ULONG iMode, - IN ULONG_PTR *pid); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG iFace, + /*IN*/ ULONG iMode, + /*IN*/ ULONG_PTR *pid); PFD_GLYPHATTR DDKAPI DrvQueryGlyphAttrs( - IN FONTOBJ *pfo, - IN ULONG iMode); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode); ULONG DDKAPI DrvQueryPerBandInfo( - IN SURFOBJ *pso, - IN OUT PERBANDINFO *pbi); + /*IN*/ SURFOBJ *pso, + /*IN OUT*/ PERBANDINFO *pbi); /* DrvQueryTrueTypeOutline.bMetricsOnly constants */ #define TTO_METRICS_ONLY 0x00000001 @@ -3305,25 +3391,29 @@ DrvQueryPerBandInfo( LONG DDKAPI DrvQueryTrueTypeOutline( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN HGLYPH hglyph, - IN BOOL bMetricsOnly, - IN GLYPHDATA *pgldt, - IN ULONG cjBuf, - OUT TTPOLYGONHEADER *ppoly); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ HGLYPH hglyph, + /*IN*/ BOOL bMetricsOnly, + /*IN*/ GLYPHDATA *pgldt, + /*IN*/ ULONG cjBuf, + + /*OUT*/ TTPOLYGONHEADER *ppoly); LONG DDKAPI DrvQueryTrueTypeTable( - IN ULONG_PTR iFile, - IN ULONG ulFont, - IN ULONG ulTag, - IN PTRDIFF dpStart, - IN ULONG cjBuf, - OUT BYTE *pjBuf, - OUT PBYTE *ppjTable, - OUT ULONG *pcjTable); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG ulFont, + /*IN*/ ULONG ulTag, + /*IN*/ PTRDIFF dpStart, + /*IN*/ ULONG cjBuf, + + /*OUT*/ BYTE *pjBuf, + + /*OUT*/ PBYTE *ppjTable, + + /*OUT*/ ULONG *pcjTable); /* DrvRealizeBrush.iHatch constants */ #define RB_DITHERCOLOR 0x80000000L @@ -3333,12 +3423,12 @@ DrvQueryTrueTypeTable( BOOL DDKAPI DrvRealizeBrush( - IN BRUSHOBJ *pbo, - IN SURFOBJ *psoTarget, - IN SURFOBJ *psoPattern, - IN SURFOBJ *psoMask, - IN XLATEOBJ *pxlo, - IN ULONG iHatch); + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ SURFOBJ *psoTarget, + /*IN*/ SURFOBJ *psoPattern, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ ULONG iHatch); /* DrvResetDevice return values */ #define DRD_SUCCESS 0 @@ -3347,8 +3437,8 @@ DrvRealizeBrush( ULONG DDKAPI DrvResetDevice( - IN DHPDEV dhpdev, - IN PVOID Reserved); + /*IN*/ DHPDEV dhpdev, + /*IN*/ PVOID Reserved); BOOL DDKAPI @@ -3364,31 +3454,31 @@ DrvResetPDEV( ULONG_PTR DDKAPI DrvSaveScreenBits( - IN SURFOBJ *pso, - IN ULONG iMode, - IN ULONG_PTR ident, - IN RECTL *prcl); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iMode, + /*IN*/ ULONG_PTR ident, + /*IN*/ RECTL *prcl); BOOL DDKAPI DrvSendPage( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); BOOL DDKAPI DrvSetPalette( - IN DHPDEV dhpdev, - IN PALOBJ *ppalo, - IN FLONG fl, - IN ULONG iStart, - IN ULONG cColors); + /*IN*/ DHPDEV dhpdev, + /*IN*/ PALOBJ *ppalo, + /*IN*/ FLONG fl, + /*IN*/ ULONG iStart, + /*IN*/ ULONG cColors); BOOL DDKAPI DrvSetPixelFormat( - IN SURFOBJ *pso, - IN LONG iPixelFormat, - IN HWND hwnd); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG iPixelFormat, + /*IN*/ HWND hwnd); /* DrvSetPointerShape return values */ #define SPS_ERROR 0x00000000 @@ -3409,104 +3499,104 @@ DrvSetPixelFormat( ULONG DDKAPI DrvSetPointerShape( - IN SURFOBJ *pso, - IN SURFOBJ *psoMask, - IN SURFOBJ *psoColor, - IN XLATEOBJ *pxlo, - IN LONG xHot, - IN LONG yHot, - IN LONG x, - IN LONG y, - IN RECTL *prcl, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ SURFOBJ *psoColor, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ LONG xHot, + /*IN*/ LONG yHot, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl, + /*IN*/ FLONG fl); BOOL DDKAPI DrvStartBanding( - IN SURFOBJ *pso, - IN POINTL *pptl); + /*IN*/ SURFOBJ *pso, + /*IN*/ POINTL *pptl); BOOL DDKAPI DrvStartDoc( - IN SURFOBJ *pso, - IN LPWSTR pwszDocName, - IN DWORD dwJobId); + /*IN*/ SURFOBJ *pso, + /*IN*/ LPWSTR pwszDocName, + /*IN*/ DWORD dwJobId); BOOL DDKAPI DrvStartPage( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); BOOL DDKAPI DrvStretchBlt( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode); BOOL DDKAPI DrvStretchBltROP( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode, - IN BRUSHOBJ *pbo, - IN DWORD rop4); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ DWORD rop4); BOOL DDKAPI DrvStrokeAndFillPath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pboStroke, - IN LINEATTRS *plineattrs, - IN BRUSHOBJ *pboFill, - IN POINTL *pptlBrushOrg, - IN MIX mixFill, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pboStroke, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ BRUSHOBJ *pboFill, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mixFill, + /*IN*/ FLONG flOptions); BOOL DDKAPI DrvStrokePath( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN LINEATTRS *plineattrs, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ MIX mix); BOOL DDKAPI DrvSwapBuffers( - IN SURFOBJ *pso, - IN WNDOBJ *pwo); + /*IN*/ SURFOBJ *pso, + /*IN*/ WNDOBJ *pwo); VOID DDKAPI DrvSynchronize( - IN DHPDEV dhpdev, - IN RECTL *prcl); + /*IN*/ DHPDEV dhpdev, + /*IN*/ RECTL *prcl); /* DrvSynchronizeSurface.fl constants */ #define DSS_TIMER_EVENT 0x00000001 @@ -3515,40 +3605,40 @@ DrvSynchronize( VOID DDKAPI DrvSynchronizeSurface( - IN SURFOBJ *pso, - IN RECTL *prcl, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ RECTL *prcl, + /*IN*/ FLONG fl); BOOL DDKAPI DrvTextOut( - IN SURFOBJ *pso, - IN STROBJ *pstro, - IN FONTOBJ *pfo, - IN CLIPOBJ *pco, - IN RECTL *prclExtra, - IN RECTL *prclOpaque, - IN BRUSHOBJ *pboFore, - IN BRUSHOBJ *pboOpaque, - IN POINTL *pptlOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ STROBJ *pstro, + /*IN*/ FONTOBJ *pfo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ RECTL *prclExtra, + /*IN*/ RECTL *prclOpaque, + /*IN*/ BRUSHOBJ *pboFore, + /*IN*/ BRUSHOBJ *pboOpaque, + /*IN*/ POINTL *pptlOrg, + /*IN*/ MIX mix); BOOL DDKAPI DrvTransparentBlt( - IN SURFOBJ *psoDst, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDst, - IN RECTL *prclSrc, - IN ULONG iTransColor, - IN ULONG ulReserved); + /*IN*/ SURFOBJ *psoDst, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDst, + /*IN*/ RECTL *prclSrc, + /*IN*/ ULONG iTransColor, + /*IN*/ ULONG ulReserved); BOOL DDKAPI DrvUnloadFontFile( - IN ULONG_PTR iFile); + /*IN*/ ULONG_PTR iFile); /* WNDOBJCHANGEPROC.fl constants */ #define WOC_RGN_CLIENT_DELTA 0x00000001 @@ -3569,56 +3659,56 @@ typedef VOID DDKAPI typedef BOOL DDKAPI (*PFN_DrvAlphaBlend)( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN BLENDOBJ *pBlendObj); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ BLENDOBJ *pBlendObj); typedef BOOL DDKAPI (*PFN_DrvAssertMode)( - IN DHPDEV dhpdev, - IN BOOL bEnable); + /*IN*/ DHPDEV dhpdev, + /*IN*/ BOOL bEnable); typedef BOOL DDKAPI (*PFN_DrvBitBlt)( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclTrg, - IN POINTL *pptlSrc, - IN POINTL *pptlMask, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrush, - IN ROP4 rop4); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclTrg, + /*IN*/ POINTL *pptlSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrush, + /*IN*/ ROP4 rop4); typedef VOID DDKAPI (*PFN_DrvCompletePDEV)( - IN DHPDEV dhpdev, - IN HDEV hdev); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HDEV hdev); typedef BOOL DDKAPI (*PFN_DrvCopyBits)( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDest, - IN POINTL *pptlSrc); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDest, + /*IN*/ POINTL *pptlSrc); typedef HBITMAP DDKAPI (*PFN_DrvCreateDeviceBitmap)( - IN DHPDEV dhpdev, - IN SIZEL sizl, - IN ULONG iFormat); + /*IN*/ DHPDEV dhpdev, + /*IN*/ SIZEL sizl, + /*IN*/ ULONG iFormat); typedef VOID DDKAPI (*PFN_DrvDeleteDeviceBitmap)( - IN DHSURF dhsurf); + /*IN*/ DHSURF dhsurf); typedef HBITMAP DDKAPI (*PFN_DrvDeriveSurface)( @@ -3627,14 +3717,15 @@ typedef HBITMAP DDKAPI typedef LONG DDKAPI (*PFN_DrvDescribePixelFormat)( - IN DHPDEV dhpdev, - IN LONG iPixelFormat, - IN ULONG cjpfd, - OUT PIXELFORMATDESCRIPTOR *ppfd); + /*IN*/ DHPDEV dhpdev, + /*IN*/ LONG iPixelFormat, + /*IN*/ ULONG cjpfd, + + /*OUT*/ PIXELFORMATDESCRIPTOR *ppfd); typedef VOID DDKAPI (*PFN_DrvDestroyFont)( - IN FONTOBJ *pfo); + /*IN*/ FONTOBJ *pfo); typedef VOID DDKAPI (*PFN_DrvDisableDriver)( @@ -3642,149 +3733,158 @@ typedef VOID DDKAPI typedef VOID DDKAPI (*PFN_DrvDisablePDEV)( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); typedef VOID DDKAPI (*PFN_DrvDisableSurface)( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); typedef ULONG DDKAPI (*PFN_DrvDitherColor)( - IN DHPDEV dhpdev, - IN ULONG iMode, - IN ULONG rgb, - OUT ULONG *pul); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG iMode, + /*IN*/ ULONG rgb, + + /*OUT*/ ULONG *pul); typedef ULONG DDKAPI (*PFN_DrvDrawEscape)( - IN SURFOBJ *pso, - IN ULONG iEsc, - IN CLIPOBJ *pco, - IN RECTL *prcl, - IN ULONG cjIn, - IN PVOID pvIn); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iEsc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ RECTL *prcl, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn); typedef BOOL DDKAPI (*PFN_DrvEnableDriver)( - IN ULONG iEngineVersion, - IN ULONG cj, - OUT DRVENABLEDATA *pded); + /*IN*/ ULONG iEngineVersion, + /*IN*/ ULONG cj, + + /*OUT*/ DRVENABLEDATA *pded); #if 0 typedef DHPDEV DDKAPI (*PFN_DrvEnablePDEV)( - IN DEVMODEW *pdm, - IN LPWSTR pwszLogAddress, - IN ULONG cPat, - OUT HSURF *phsurfPatterns, - IN ULONG cjCaps, - OUT ULONG *pdevcaps, - IN ULONG cjDevInfo, - OUT DEVINFO *pdi, - IN HDEV hdev, - IN LPWSTR pwszDeviceName, - IN HANDLE hDriver); + /*IN*/ DEVMODEW *pdm, + /*IN*/ LPWSTR pwszLogAddress, + /*IN*/ ULONG cPat, + + /*OUT*/ HSURF *phsurfPatterns, + /*IN*/ ULONG cjCaps, + + /*OUT*/ ULONG *pdevcaps, + /*IN*/ ULONG cjDevInfo, + + /*OUT*/ DEVINFO *pdi, + /*IN*/ HDEV hdev, + /*IN*/ LPWSTR pwszDeviceName, + /*IN*/ HANDLE hDriver); #endif typedef HSURF DDKAPI (*PFN_DrvEnableSurface)( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); typedef BOOL DDKAPI (*PFN_DrvEndDoc)( - IN SURFOBJ *pso, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ FLONG fl); typedef ULONG DDKAPI (*PFN_DrvEscape)( - IN SURFOBJ *pso, - IN ULONG iEsc, - IN ULONG cjIn, - IN PVOID pvIn, - IN ULONG cjOut, - OUT PVOID pvOut); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iEsc, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn, + /*IN*/ ULONG cjOut, + + /*OUT*/ PVOID pvOut); typedef BOOL DDKAPI (*PFN_DrvFillPath)( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix, + /*IN*/ FLONG flOptions); typedef ULONG DDKAPI (*PFN_DrvFontManagement)( - IN SURFOBJ *pso, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN ULONG cjIn, - IN PVOID pvIn, - IN ULONG cjOut, - OUT PVOID pvOut); + /*IN*/ SURFOBJ *pso, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ ULONG cjIn, + /*IN*/ PVOID pvIn, + /*IN*/ ULONG cjOut, + + /*OUT*/ PVOID pvOut); typedef VOID DDKAPI (*PFN_DrvFree)( - IN PVOID pv, - IN ULONG_PTR id); + /*IN*/ PVOID pv, + /*IN*/ ULONG_PTR id); typedef ULONG DDKAPI (*PFN_DrvGetGlyphMode)( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo); typedef ULONG DDKAPI (*PFN_DrvGetModes)( - IN HANDLE hDriver, - IN ULONG cjSize, - OUT DEVMODEW *pdm); + /*IN*/ HANDLE hDriver, + /*IN*/ ULONG cjSize, + + /*OUT*/ DEVMODEW *pdm); typedef PVOID DDKAPI (*PFN_DrvGetTrueTypeFile)( - IN ULONG_PTR iFile, - IN ULONG *pcj); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG *pcj); typedef BOOL DDKAPI (*PFN_DrvGradientFill)( - IN SURFOBJ *psoDest, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN TRIVERTEX *pVertex, - IN ULONG nVertex, - IN PVOID pMesh, - IN ULONG nMesh, - IN RECTL *prclExtents, - IN POINTL *pptlDitherOrg, - IN ULONG ulMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ TRIVERTEX *pVertex, + /*IN*/ ULONG nVertex, + /*IN*/ PVOID pMesh, + /*IN*/ ULONG nMesh, + /*IN*/ RECTL *prclExtents, + /*IN*/ POINTL *pptlDitherOrg, + /*IN*/ ULONG ulMode); typedef BOOL DDKAPI (*PFN_DrvIcmCheckBitmapBits)( - IN DHPDEV dhpdev, - IN HANDLE hColorTransform, - IN SURFOBJ *pso, - OUT PBYTE paResults); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HANDLE hColorTransform, + /*IN*/ SURFOBJ *pso, + + /*OUT*/ PBYTE paResults); typedef HANDLE DDKAPI (*PFN_DrvIcmCreateColorTransform)( - IN DHPDEV dhpdev, - IN LPLOGCOLORSPACEW pLogColorSpace, - IN PVOID pvSourceProfile, - IN ULONG cjSourceProfile, - IN PVOID pvDestProfile, - IN ULONG cjDestProfile, - IN PVOID pvTargetProfile, - IN ULONG cjTargetProfile, - IN DWORD dwReserved); + /*IN*/ DHPDEV dhpdev, + /*IN*/ LPLOGCOLORSPACEW pLogColorSpace, + /*IN*/ PVOID pvSourceProfile, + /*IN*/ ULONG cjSourceProfile, + /*IN*/ PVOID pvDestProfile, + /*IN*/ ULONG cjDestProfile, + /*IN*/ PVOID pvTargetProfile, + /*IN*/ ULONG cjTargetProfile, + /*IN*/ DWORD dwReserved); typedef BOOL DDKAPI (*PFN_DrvIcmDeleteColorTransform)( - IN DHPDEV dhpdev, - IN HANDLE hcmXform); + /*IN*/ DHPDEV dhpdev, + /*IN*/ HANDLE hcmXform); typedef BOOL DDKAPI (*PFN_DrvIcmSetDeviceGammaRamp)( - IN DHPDEV dhpdev, - IN ULONG iFormat, - IN LPVOID lpRamp); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG iFormat, + /*IN*/ LPVOID lpRamp); typedef BOOL DDKAPI (*PFN_DrvLineTo)( @@ -3810,59 +3910,60 @@ typedef ULONG_PTR DDKAPI typedef VOID DDKAPI (*PFN_DrvMovePointer)( - IN SURFOBJ *pso, - IN LONG x, - IN LONG y, - IN RECTL *prcl); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl); typedef BOOL DDKAPI (*PFN_DrvNextBand)( - IN SURFOBJ *pso, - IN POINTL *pptl); + /*IN*/ SURFOBJ *pso, + /*IN*/ POINTL *pptl); typedef VOID DDKAPI (*PFN_DrvNotify)( - IN SURFOBJ *pso, - IN ULONG iType, - IN PVOID pvData); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iType, + /*IN*/ PVOID pvData); typedef BOOL DDKAPI (*PFN_DrvOffset)( - IN SURFOBJ *pso, - IN LONG x, - IN LONG y, - IN FLONG flReserved); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ FLONG flReserved); typedef BOOL DDKAPI (*PFN_DrvPaint)( - IN SURFOBJ *pso, - IN CLIPOBJ *pco, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ CLIPOBJ *pco, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mix); typedef BOOL DDKAPI (*PFN_DrvPlgBlt)( - IN SURFOBJ *psoTrg, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMsk, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlBrushOrg, - IN POINTFIX *pptfx, - IN RECTL *prcl, - IN POINTL *pptl, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoTrg, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMsk, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ POINTFIX *pptfx, + /*IN*/ RECTL *prcl, + /*IN*/ POINTL *pptl, + /*IN*/ ULONG iMode); typedef BOOL DDKAPI (*PFN_DrvQueryAdvanceWidths)( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN HGLYPH *phg, - OUT PVOID pvWidths, - IN ULONG cGlyphs); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ HGLYPH *phg, + + /*OUT*/ PVOID pvWidths, + /*IN*/ ULONG cGlyphs); typedef BOOL DDKAPI (*PFN_DrvQueryDeviceSupport)( @@ -3884,85 +3985,86 @@ typedef BOOL DDKAPI typedef PIFIMETRICS DDKAPI (*PFN_DrvQueryFont)( - IN DHPDEV dhpdev, - IN ULONG_PTR iFile, - IN ULONG iFace, - IN ULONG_PTR *pid); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG iFace, + /*IN*/ ULONG_PTR *pid); typedef LONG DDKAPI (*PFN_DrvQueryFontCaps)( - IN ULONG culCaps, - OUT ULONG *pulCaps); + /*IN*/ ULONG culCaps, + + /*OUT*/ ULONG *pulCaps); typedef LONG DDKAPI (*PFN_DrvQueryFontData)( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN ULONG iMode, - IN HGLYPH hg, - IN OUT GLYPHDATA *pgd, - IN OUT PVOID pv, - IN ULONG cjSize); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode, + /*IN*/ HGLYPH hg, + /*IN OUT*/ GLYPHDATA *pgd, + /*IN OUT*/ PVOID pv, + /*IN*/ ULONG cjSize); typedef LONG DDKAPI (*PFN_DrvQueryFontFile)( - IN ULONG_PTR iFile, - IN ULONG ulMode, - IN ULONG cjBuf, - IN ULONG *pulBuf); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG ulMode, + /*IN*/ ULONG cjBuf, + /*IN*/ ULONG *pulBuf); typedef PVOID DDKAPI (*PFN_DrvQueryFontTree)( - IN DHPDEV dhpdev, - IN ULONG_PTR iFile, - IN ULONG iFace, - IN ULONG iMode, - IN ULONG_PTR *pid); + /*IN*/ DHPDEV dhpdev, + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG iFace, + /*IN*/ ULONG iMode, + /*IN*/ ULONG_PTR *pid); typedef PFD_GLYPHATTR DDKAPI (*PFN_DrvQueryGlyphAttrs)( - IN FONTOBJ *pfo, - IN ULONG iMode); + /*IN*/ FONTOBJ *pfo, + /*IN*/ ULONG iMode); typedef ULONG DDKAPI (*PFN_DrvQueryPerBandInfo)( - IN SURFOBJ *pso, - IN OUT PERBANDINFO *pbi); + /*IN*/ SURFOBJ *pso, + /*IN OUT*/ PERBANDINFO *pbi); typedef LONG DDKAPI (*PFN_DrvQueryTrueTypeOutline)( - IN DHPDEV dhpdev, - IN FONTOBJ *pfo, - IN HGLYPH hglyph, - IN BOOL bMetricsOnly, - IN GLYPHDATA *pgldt, - IN ULONG cjBuf, - OUT TTPOLYGONHEADER *ppoly); + /*IN*/ DHPDEV dhpdev, + /*IN*/ FONTOBJ *pfo, + /*IN*/ HGLYPH hglyph, + /*IN*/ BOOL bMetricsOnly, + /*IN*/ GLYPHDATA *pgldt, + /*IN*/ ULONG cjBuf, + /*OUT*/ TTPOLYGONHEADER *ppoly); typedef LONG DDKAPI (*PFN_DrvQueryTrueTypeTable)( - IN ULONG_PTR iFile, - IN ULONG ulFont, - IN ULONG ulTag, - IN PTRDIFF dpStart, - IN ULONG cjBuf, - OUT BYTE *pjBuf, - OUT PBYTE *ppjTable, - OUT ULONG *pcjTable); + /*IN*/ ULONG_PTR iFile, + /*IN*/ ULONG ulFont, + /*IN*/ ULONG ulTag, + /*IN*/ PTRDIFF dpStart, + /*IN*/ ULONG cjBuf, + /*OUT*/ BYTE *pjBuf, + /*OUT*/ PBYTE *ppjTable, + /*OUT*/ ULONG *pcjTable); typedef BOOL DDKAPI (*PFN_DrvRealizeBrush)( - IN BRUSHOBJ *pbo, - IN SURFOBJ *psoTarget, - IN SURFOBJ *psoPattern, - IN SURFOBJ *psoMask, - IN XLATEOBJ *pxlo, - IN ULONG iHatch); + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ SURFOBJ *psoTarget, + /*IN*/ SURFOBJ *psoPattern, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ ULONG iHatch); typedef ULONG DDKAPI (*PFN_DrvResetDevice)( - IN DHPDEV dhpdev, - IN PVOID Reserved); + /*IN*/ DHPDEV dhpdev, + /*IN*/ PVOID Reserved); typedef BOOL DDKAPI (*PFN_DrvResetPDEV)( @@ -3971,181 +4073,181 @@ typedef BOOL DDKAPI typedef ULONG_PTR DDKAPI (*PFN_DrvSaveScreenBits)( - IN SURFOBJ *pso, - IN ULONG iMode, - IN ULONG_PTR ident, - IN RECTL *prcl); + /*IN*/ SURFOBJ *pso, + /*IN*/ ULONG iMode, + /*IN*/ ULONG_PTR ident, + /*IN*/ RECTL *prcl); typedef BOOL DDKAPI (*PFN_DrvSendPage)( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); typedef BOOL DDKAPI (*PFN_DrvSetPalette)( - IN DHPDEV dhpdev, - IN PALOBJ *ppalo, - IN FLONG fl, - IN ULONG iStart, - IN ULONG cColors); + /*IN*/ DHPDEV dhpdev, + /*IN*/ PALOBJ *ppalo, + /*IN*/ FLONG fl, + /*IN*/ ULONG iStart, + /*IN*/ ULONG cColors); typedef BOOL DDKAPI (*PFN_DrvSetPixelFormat)( - IN SURFOBJ *pso, - IN LONG iPixelFormat, - IN HWND hwnd); + /*IN*/ SURFOBJ *pso, + /*IN*/ LONG iPixelFormat, + /*IN*/ HWND hwnd); typedef ULONG DDKAPI (*PFN_DrvSetPointerShape)( - IN SURFOBJ *pso, - IN SURFOBJ *psoMask, - IN SURFOBJ *psoColor, - IN XLATEOBJ *pxlo, - IN LONG xHot, - IN LONG yHot, - IN LONG x, - IN LONG y, - IN RECTL *prcl, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ SURFOBJ *psoColor, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ LONG xHot, + /*IN*/ LONG yHot, + /*IN*/ LONG x, + /*IN*/ LONG y, + /*IN*/ RECTL *prcl, + /*IN*/ FLONG fl); typedef BOOL DDKAPI (*PFN_DrvStartBanding)( - IN SURFOBJ *pso, - IN POINTL *pptl); + /*IN*/ SURFOBJ *pso, + /*IN*/ POINTL *pptl); typedef BOOL DDKAPI (*PFN_DrvStartDoc)( - IN SURFOBJ *pso, - IN LPWSTR pwszDocName, - IN DWORD dwJobId); + /*IN*/ SURFOBJ *pso, + /*IN*/ LPWSTR pwszDocName, + /*IN*/ DWORD dwJobId); typedef BOOL DDKAPI (*PFN_DrvStartPage)( - IN SURFOBJ *pso); + /*IN*/ SURFOBJ *pso); typedef BOOL DDKAPI (*PFN_DrvStretchBlt)( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode); typedef BOOL DDKAPI (*PFN_DrvStretchBltROP)( - IN SURFOBJ *psoDest, - IN SURFOBJ *psoSrc, - IN SURFOBJ *psoMask, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN COLORADJUSTMENT *pca, - IN POINTL *pptlHTOrg, - IN RECTL *prclDest, - IN RECTL *prclSrc, - IN POINTL *pptlMask, - IN ULONG iMode, - IN BRUSHOBJ *pbo, - IN DWORD rop4); + /*IN*/ SURFOBJ *psoDest, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ SURFOBJ *psoMask, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ COLORADJUSTMENT *pca, + /*IN*/ POINTL *pptlHTOrg, + /*IN*/ RECTL *prclDest, + /*IN*/ RECTL *prclSrc, + /*IN*/ POINTL *pptlMask, + /*IN*/ ULONG iMode, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ DWORD rop4); typedef BOOL DDKAPI (*PFN_DrvStrokeAndFillPath)( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pboStroke, - IN LINEATTRS *plineattrs, - IN BRUSHOBJ *pboFill, - IN POINTL *pptlBrushOrg, - IN MIX mixFill, - IN FLONG flOptions); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pboStroke, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ BRUSHOBJ *pboFill, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ MIX mixFill, + /*IN*/ FLONG flOptions); typedef BOOL DDKAPI (*PFN_DrvStrokePath)( - IN SURFOBJ *pso, - IN PATHOBJ *ppo, - IN CLIPOBJ *pco, - IN XFORMOBJ *pxo, - IN BRUSHOBJ *pbo, - IN POINTL *pptlBrushOrg, - IN LINEATTRS *plineattrs, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ PATHOBJ *ppo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XFORMOBJ *pxo, + /*IN*/ BRUSHOBJ *pbo, + /*IN*/ POINTL *pptlBrushOrg, + /*IN*/ LINEATTRS *plineattrs, + /*IN*/ MIX mix); typedef BOOL DDKAPI (*PFN_DrvSwapBuffers)( - IN SURFOBJ *pso, - IN WNDOBJ *pwo); + /*IN*/ SURFOBJ *pso, + /*IN*/ WNDOBJ *pwo); typedef VOID DDKAPI (*PFN_DrvSynchronize)( - IN DHPDEV dhpdev, - IN RECTL *prcl); + /*IN*/ DHPDEV dhpdev, + /*IN*/ RECTL *prcl); typedef VOID DDKAPI (*PFN_DrvSynchronizeSurface)( - IN SURFOBJ *pso, - IN RECTL *prcl, - IN FLONG fl); + /*IN*/ SURFOBJ *pso, + /*IN*/ RECTL *prcl, + /*IN*/ FLONG fl); typedef BOOL DDKAPI (*PFN_DrvTextOut)( - IN SURFOBJ *pso, - IN STROBJ *pstro, - IN FONTOBJ *pfo, - IN CLIPOBJ *pco, - IN RECTL *prclExtra, - IN RECTL *prclOpaque, - IN BRUSHOBJ *pboFore, - IN BRUSHOBJ *pboOpaque, - IN POINTL *pptlOrg, - IN MIX mix); + /*IN*/ SURFOBJ *pso, + /*IN*/ STROBJ *pstro, + /*IN*/ FONTOBJ *pfo, + /*IN*/ CLIPOBJ *pco, + /*IN*/ RECTL *prclExtra, + /*IN*/ RECTL *prclOpaque, + /*IN*/ BRUSHOBJ *pboFore, + /*IN*/ BRUSHOBJ *pboOpaque, + /*IN*/ POINTL *pptlOrg, + /*IN*/ MIX mix); typedef BOOL DDKAPI (*PFN_DrvTransparentBlt)( - IN SURFOBJ *psoDst, - IN SURFOBJ *psoSrc, - IN CLIPOBJ *pco, - IN XLATEOBJ *pxlo, - IN RECTL *prclDst, - IN RECTL *prclSrc, - IN ULONG iTransColor, - IN ULONG ulReserved); + /*IN*/ SURFOBJ *psoDst, + /*IN*/ SURFOBJ *psoSrc, + /*IN*/ CLIPOBJ *pco, + /*IN*/ XLATEOBJ *pxlo, + /*IN*/ RECTL *prclDst, + /*IN*/ RECTL *prclSrc, + /*IN*/ ULONG iTransColor, + /*IN*/ ULONG ulReserved); typedef BOOL DDKAPI (*PFN_DrvUnloadFontFile)( - IN ULONG_PTR iFile); + /*IN*/ ULONG_PTR iFile); WIN32KAPI VOID DDKAPI DrvDisableDirectDraw( - IN DHPDEV dhpdev); + /*IN*/ DHPDEV dhpdev); WIN32KAPI BOOL DDKAPI DrvEnableDirectDraw( - IN DHPDEV dhpdev, - OUT DD_CALLBACKS *pCallBacks, - OUT DD_SURFACECALLBACKS *pSurfaceCallBacks, - OUT DD_PALETTECALLBACKS *pPaletteCallBacks); + /*IN*/ DHPDEV dhpdev, + /*OUT*/ DD_CALLBACKS *pCallBacks, + /*OUT*/ DD_SURFACECALLBACKS *pSurfaceCallBacks, + /*OUT*/ DD_PALETTECALLBACKS *pPaletteCallBacks); WIN32KAPI BOOL DDKAPI DrvGetDirectDrawInfo( - IN DHPDEV dhpdev, - OUT DD_HALINFO *pHalInfo, - OUT DWORD *pdwNumHeaps, - OUT VIDEOMEMORY *pvmList, - OUT DWORD *pdwNumFourCCCodes, - OUT DWORD *pdwFourCC); + /*IN*/ DHPDEV dhpdev, + /*OUT*/ DD_HALINFO *pHalInfo, + /*OUT*/ DWORD *pdwNumHeaps, + /*OUT*/ VIDEOMEMORY *pvmList, + /*OUT*/ DWORD *pdwNumFourCCCodes, + /*OUT*/ DWORD *pdwFourCC); #ifdef __cplusplus } diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h index 99e3d91ff..6f151f224 100644 --- a/winsup/w32api/include/ddk/winddk.h +++ b/winsup/w32api/include/ddk/winddk.h @@ -52,11 +52,16 @@ extern "C" { #define DECLARE_INTERNAL_OBJECT2(x,y) struct _##x; typedef struct _##x *P##y; #endif -/* Pseudo modifiers for parameters */ +/* 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 #define OPTIONAL #define UNALLIGNED +#endif #define CONST const #define VOLATILE volatile @@ -444,56 +449,56 @@ typedef enum _IO_ALLOCATION_ACTION { typedef IO_ALLOCATION_ACTION (DDKAPI *PDRIVER_CONTROL)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp, - IN PVOID MapRegisterBase, - IN PVOID Context); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp, + /*IN*/ PVOID MapRegisterBase, + /*IN*/ PVOID Context); typedef VOID (DDKAPI *PDRIVER_LIST_CONTROL)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp, - IN struct _SCATTER_GATHER_LIST *ScatterGather, - IN PVOID Context); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp, + /*IN*/ struct _SCATTER_GATHER_LIST *ScatterGather, + /*IN*/ PVOID Context); typedef NTSTATUS (DDKAPI *PDRIVER_ADD_DEVICE)( - IN struct _DRIVER_OBJECT *DriverObject, - IN struct _DEVICE_OBJECT *PhysicalDeviceObject); + /*IN*/ struct _DRIVER_OBJECT *DriverObject, + /*IN*/ struct _DEVICE_OBJECT *PhysicalDeviceObject); typedef NTSTATUS (DDKAPI *PIO_COMPLETION_ROUTINE)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp, - IN PVOID Context); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp, + /*IN*/ PVOID Context); typedef VOID (DDKAPI *PDRIVER_CANCEL)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp); typedef VOID (DDKAPI *PKDEFERRED_ROUTINE)( - IN struct _KDPC *Dpc, - IN PVOID DeferredContext, - IN PVOID SystemArgument1, - IN PVOID SystemArgument2); + /*IN*/ struct _KDPC *Dpc, + /*IN*/ PVOID DeferredContext, + /*IN*/ PVOID SystemArgument1, + /*IN*/ PVOID SystemArgument2); typedef NTSTATUS (DDKAPI *PDRIVER_DISPATCH)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp); typedef VOID (DDKAPI *PIO_DPC_ROUTINE)( - IN struct _KDPC *Dpc, - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp, - IN PVOID Context); + /*IN*/ struct _KDPC *Dpc, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp, + /*IN*/ PVOID Context); typedef NTSTATUS (DDKAPI *PMM_DLL_INITIALIZE)( - IN PUNICODE_STRING RegistryPath); + /*IN*/ PUNICODE_STRING RegistryPath); typedef NTSTATUS (DDKAPI *PMM_DLL_UNLOAD)( @@ -501,42 +506,42 @@ typedef NTSTATUS typedef NTSTATUS (DDKAPI *PDRIVER_ENTRY)( - IN struct _DRIVER_OBJECT *DriverObject, - IN PUNICODE_STRING RegistryPath); + /*IN*/ struct _DRIVER_OBJECT *DriverObject, + /*IN*/ PUNICODE_STRING RegistryPath); typedef NTSTATUS (DDKAPI *PDRIVER_INITIALIZE)( - IN struct _DRIVER_OBJECT *DriverObject, - IN PUNICODE_STRING RegistryPath); + /*IN*/ struct _DRIVER_OBJECT *DriverObject, + /*IN*/ PUNICODE_STRING RegistryPath); typedef BOOLEAN (DDKAPI *PKSERVICE_ROUTINE)( - IN struct _KINTERRUPT *Interrupt, - IN PVOID ServiceContext); + /*IN*/ struct _KINTERRUPT *Interrupt, + /*IN*/ PVOID ServiceContext); typedef VOID (DDKAPI *PIO_TIMER_ROUTINE)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN PVOID Context); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ PVOID Context); typedef VOID (DDKAPI *PDRIVER_REINITIALIZE)( - IN struct _DRIVER_OBJECT *DriverObject, - IN PVOID Context, - IN ULONG Count); + /*IN*/ struct _DRIVER_OBJECT *DriverObject, + /*IN*/ PVOID Context, + /*IN*/ ULONG Count); typedef NTSTATUS (DDKAPI *PDRIVER_STARTIO)( - IN struct _DEVICE_OBJECT *DeviceObject, - IN struct _IRP *Irp); + /*IN*/ struct _DEVICE_OBJECT *DeviceObject, + /*IN*/ struct _IRP *Irp); typedef BOOLEAN (DDKAPI *PKSYNCHRONIZE_ROUTINE)( - IN PVOID SynchronizeContext); + /*IN*/ PVOID SynchronizeContext); typedef VOID (DDKAPI *PDRIVER_UNLOAD)( - IN struct _DRIVER_OBJECT *DriverObject); + /*IN*/ struct _DRIVER_OBJECT *DriverObject); @@ -554,25 +559,25 @@ typedef VOID DDKAPI typedef BOOLEAN DDKAPI (*PTRANSLATE_BUS_ADDRESS)( - IN PVOID Context, - IN PHYSICAL_ADDRESS BusAddress, - IN ULONG Length, - IN OUT PULONG AddressSpace, - OUT PPHYSICAL_ADDRESS TranslatedAddress); + /*IN*/ PVOID Context, + /*IN*/ PHYSICAL_ADDRESS BusAddress, + /*IN*/ ULONG Length, + /*IN OUT*/ PULONG AddressSpace, + /*OUT*/ PPHYSICAL_ADDRESS TranslatedAddress); typedef struct _DMA_ADAPTER* DDKAPI (*PGET_DMA_ADAPTER)( - IN PVOID Context, - IN struct _DEVICE_DESCRIPTION *DeviceDescriptor, - OUT PULONG NumberOfMapRegisters); + /*IN*/ PVOID Context, + /*IN*/ struct _DEVICE_DESCRIPTION *DeviceDescriptor, + /*OUT*/ PULONG NumberOfMapRegisters); typedef ULONG DDKAPI (*PGET_SET_DEVICE_DATA)( - IN PVOID Context, - IN ULONG DataType, - IN PVOID Buffer, - IN ULONG Offset, - IN ULONG Length); + /*IN*/ PVOID Context, + /*IN*/ ULONG DataType, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Offset, + /*IN*/ ULONG Length); typedef union _POWER_STATE { SYSTEM_POWER_STATE SystemState; @@ -745,12 +750,12 @@ typedef enum _IO_NOTIFICATION_EVENT_CATEGORY { typedef NTSTATUS DDKAPI (*PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)( - IN PVOID NotificationStructure, - IN PVOID Context); + /*IN*/ PVOID NotificationStructure, + /*IN*/ PVOID Context); typedef VOID DDKAPI (*PDEVICE_CHANGE_COMPLETE_CALLBACK)( - IN PVOID Context); + /*IN*/ PVOID Context); @@ -773,9 +778,9 @@ typedef struct _OBJECT_NAME_INFORMATION { typedef VOID DDKAPI (*PIO_APC_ROUTINE)( - IN PVOID ApcContext, - IN PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG Reserved); + /*IN*/ PVOID ApcContext, + /*IN*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG Reserved); typedef struct _IO_STATUS_BLOCK { _ANONYMOUS_UNION union { @@ -787,21 +792,21 @@ typedef struct _IO_STATUS_BLOCK { typedef VOID DDKAPI (*PKNORMAL_ROUTINE)( - IN PVOID NormalContext, - IN PVOID SystemArgument1, - IN PVOID SystemArgument2); + /*IN*/ PVOID NormalContext, + /*IN*/ PVOID SystemArgument1, + /*IN*/ PVOID SystemArgument2); typedef VOID DDKAPI (*PKKERNEL_ROUTINE)( - IN struct _KAPC *Apc, - IN OUT PKNORMAL_ROUTINE *NormalRoutine, - IN OUT PVOID *NormalContext, - IN OUT PVOID *SystemArgument1, - IN OUT PVOID *SystemArgument2); + /*IN*/ struct _KAPC *Apc, + /*IN OUT*/ PKNORMAL_ROUTINE *NormalRoutine, + /*IN OUT*/ PVOID *NormalContext, + /*IN OUT*/ PVOID *SystemArgument1, + /*IN OUT*/ PVOID *SystemArgument2); typedef VOID DDKAPI (*PKRUNDOWN_ROUTINE)( - IN struct _KAPC *Apc); + /*IN*/ struct _KAPC *Apc); typedef BOOLEAN DDKAPI (*PKTRANSFER_ROUTINE)( @@ -1797,112 +1802,112 @@ typedef struct _MDL { typedef VOID DDKAPI (*PPUT_DMA_ADAPTER)( - IN PDMA_ADAPTER DmaAdapter); + /*IN*/ PDMA_ADAPTER DmaAdapter); typedef PVOID DDKAPI (*PALLOCATE_COMMON_BUFFER)( - IN PDMA_ADAPTER DmaAdapter, - IN ULONG Length, - OUT PPHYSICAL_ADDRESS LogicalAddress, - IN BOOLEAN CacheEnabled); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ ULONG Length, + /*OUT*/ PPHYSICAL_ADDRESS LogicalAddress, + /*IN*/ BOOLEAN CacheEnabled); typedef VOID DDKAPI (*PFREE_COMMON_BUFFER)( - IN PDMA_ADAPTER DmaAdapter, - IN ULONG Length, - IN PHYSICAL_ADDRESS LogicalAddress, - IN PVOID VirtualAddress, - IN BOOLEAN CacheEnabled); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ ULONG Length, + /*IN*/ PHYSICAL_ADDRESS LogicalAddress, + /*IN*/ PVOID VirtualAddress, + /*IN*/ BOOLEAN CacheEnabled); typedef NTSTATUS DDKAPI (*PALLOCATE_ADAPTER_CHANNEL)( - IN PDMA_ADAPTER DmaAdapter, - IN PDEVICE_OBJECT DeviceObject, - IN ULONG NumberOfMapRegisters, - IN PDRIVER_CONTROL ExecutionRoutine, - IN PVOID Context); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG NumberOfMapRegisters, + /*IN*/ PDRIVER_CONTROL ExecutionRoutine, + /*IN*/ PVOID Context); typedef BOOLEAN DDKAPI (*PFLUSH_ADAPTER_BUFFERS)( - IN PDMA_ADAPTER DmaAdapter, - IN PMDL Mdl, - IN PVOID MapRegisterBase, - IN PVOID CurrentVa, - IN ULONG Length, - IN BOOLEAN WriteToDevice); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PMDL Mdl, + /*IN*/ PVOID MapRegisterBase, + /*IN*/ PVOID CurrentVa, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN WriteToDevice); typedef VOID DDKAPI (*PFREE_ADAPTER_CHANNEL)( - IN PDMA_ADAPTER DmaAdapter); + /*IN*/ PDMA_ADAPTER DmaAdapter); typedef VOID DDKAPI (*PFREE_MAP_REGISTERS)( - IN PDMA_ADAPTER DmaAdapter, + /*IN*/ PDMA_ADAPTER DmaAdapter, PVOID MapRegisterBase, ULONG NumberOfMapRegisters); typedef PHYSICAL_ADDRESS DDKAPI (*PMAP_TRANSFER)( - IN PDMA_ADAPTER DmaAdapter, - IN PMDL Mdl, - IN PVOID MapRegisterBase, - IN PVOID CurrentVa, - IN OUT PULONG Length, - IN BOOLEAN WriteToDevice); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PMDL Mdl, + /*IN*/ PVOID MapRegisterBase, + /*IN*/ PVOID CurrentVa, + /*IN OUT*/ PULONG Length, + /*IN*/ BOOLEAN WriteToDevice); typedef ULONG DDKAPI (*PGET_DMA_ALIGNMENT)( - IN PDMA_ADAPTER DmaAdapter); + /*IN*/ PDMA_ADAPTER DmaAdapter); typedef ULONG DDKAPI (*PREAD_DMA_COUNTER)( - IN PDMA_ADAPTER DmaAdapter); + /*IN*/ PDMA_ADAPTER DmaAdapter); typedef NTSTATUS DDKAPI (*PGET_SCATTER_GATHER_LIST)( - IN PDMA_ADAPTER DmaAdapter, - IN PDEVICE_OBJECT DeviceObject, - IN PMDL Mdl, - IN PVOID CurrentVa, - IN ULONG Length, - IN PDRIVER_LIST_CONTROL ExecutionRoutine, - IN PVOID Context, - IN BOOLEAN WriteToDevice); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PMDL Mdl, + /*IN*/ PVOID CurrentVa, + /*IN*/ ULONG Length, + /*IN*/ PDRIVER_LIST_CONTROL ExecutionRoutine, + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN WriteToDevice); typedef VOID DDKAPI (*PPUT_SCATTER_GATHER_LIST)( - IN PDMA_ADAPTER DmaAdapter, - IN PSCATTER_GATHER_LIST ScatterGather, - IN BOOLEAN WriteToDevice); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PSCATTER_GATHER_LIST ScatterGather, + /*IN*/ BOOLEAN WriteToDevice); typedef NTSTATUS DDKAPI (*PCALCULATE_SCATTER_GATHER_LIST_SIZE)( - IN PDMA_ADAPTER DmaAdapter, - IN PMDL Mdl OPTIONAL, - IN PVOID CurrentVa, - IN ULONG Length, - OUT PULONG ScatterGatherListSize, - OUT PULONG pNumberOfMapRegisters OPTIONAL); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PMDL Mdl /*OPTIONAL*/, + /*IN*/ PVOID CurrentVa, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ScatterGatherListSize, + /*OUT*/ PULONG pNumberOfMapRegisters /*OPTIONAL*/); typedef NTSTATUS DDKAPI (*PBUILD_SCATTER_GATHER_LIST)( - IN PDMA_ADAPTER DmaAdapter, - IN PDEVICE_OBJECT DeviceObject, - IN PMDL Mdl, - IN PVOID CurrentVa, - IN ULONG Length, - IN PDRIVER_LIST_CONTROL ExecutionRoutine, - IN PVOID Context, - IN BOOLEAN WriteToDevice, - IN PVOID ScatterGatherBuffer, - IN ULONG ScatterGatherLength); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PMDL Mdl, + /*IN*/ PVOID CurrentVa, + /*IN*/ ULONG Length, + /*IN*/ PDRIVER_LIST_CONTROL ExecutionRoutine, + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN WriteToDevice, + /*IN*/ PVOID ScatterGatherBuffer, + /*IN*/ ULONG ScatterGatherLength); typedef NTSTATUS DDKAPI (*PBUILD_MDL_FROM_SCATTER_GATHER_LIST)( - IN PDMA_ADAPTER DmaAdapter, - IN PSCATTER_GATHER_LIST ScatterGather, - IN PMDL OriginalMdl, - OUT PMDL *TargetMdl); + /*IN*/ PDMA_ADAPTER DmaAdapter, + /*IN*/ PSCATTER_GATHER_LIST ScatterGather, + /*IN*/ PMDL OriginalMdl, + /*OUT*/ PMDL *TargetMdl); typedef struct _DMA_OPERATIONS { ULONG Size; @@ -2102,223 +2107,223 @@ typedef struct _DRIVER_EXTENSION { typedef BOOLEAN DDKAPI (*PFAST_IO_CHECK_IF_POSSIBLE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - IN BOOLEAN CheckForReadOperation, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ ULONG LockKey, + /*IN*/ BOOLEAN CheckForReadOperation, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_READ)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - OUT PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ ULONG LockKey, + /*OUT*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_WRITE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - IN PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN Wait, + /*IN*/ ULONG LockKey, + /*IN*/ PVOID Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_QUERY_BASIC_INFO)( - IN struct _FILE_OBJECT *FileObject, - IN BOOLEAN Wait, - OUT PFILE_BASIC_INFORMATION Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ BOOLEAN Wait, + /*OUT*/ PFILE_BASIC_INFORMATION Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_QUERY_STANDARD_INFO)( - IN struct _FILE_OBJECT *FileObject, - IN BOOLEAN Wait, - OUT PFILE_STANDARD_INFORMATION Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ BOOLEAN Wait, + /*OUT*/ PFILE_STANDARD_INFORMATION Buffer, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_LOCK)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, PEPROCESS ProcessId, ULONG Key, BOOLEAN FailImmediately, BOOLEAN ExclusiveLock, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_UNLOCK_SINGLE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN PLARGE_INTEGER Length, + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PLARGE_INTEGER Length, PEPROCESS ProcessId, ULONG Key, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_UNLOCK_ALL)( - IN struct _FILE_OBJECT *FileObject, + /*IN*/ struct _FILE_OBJECT *FileObject, PEPROCESS ProcessId, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_UNLOCK_ALL_BY_KEY)( - IN struct _FILE_OBJECT *FileObject, + /*IN*/ struct _FILE_OBJECT *FileObject, PVOID ProcessId, ULONG Key, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_DEVICE_CONTROL)( - IN struct _FILE_OBJECT *FileObject, - IN BOOLEAN Wait, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength, - IN ULONG IoControlCode, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ BOOLEAN Wait, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength, + /*IN*/ ULONG IoControlCode, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef VOID DDKAPI (*PFAST_IO_ACQUIRE_FILE)( - IN struct _FILE_OBJECT *FileObject); + /*IN*/ struct _FILE_OBJECT *FileObject); typedef VOID DDKAPI (*PFAST_IO_RELEASE_FILE)( - IN struct _FILE_OBJECT *FileObject); + /*IN*/ struct _FILE_OBJECT *FileObject); typedef VOID DDKAPI (*PFAST_IO_DETACH_DEVICE)( - IN struct _DEVICE_OBJECT *SourceDevice, - IN struct _DEVICE_OBJECT *TargetDevice); + /*IN*/ struct _DEVICE_OBJECT *SourceDevice, + /*IN*/ struct _DEVICE_OBJECT *TargetDevice); typedef BOOLEAN DDKAPI (*PFAST_IO_QUERY_NETWORK_OPEN_INFO)( - IN struct _FILE_OBJECT *FileObject, - IN BOOLEAN Wait, - OUT struct _FILE_NETWORK_OPEN_INFORMATION *Buffer, - OUT struct _IO_STATUS_BLOCK *IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ BOOLEAN Wait, + /*OUT*/ struct _FILE_NETWORK_OPEN_INFORMATION *Buffer, + /*OUT*/ struct _IO_STATUS_BLOCK *IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef NTSTATUS DDKAPI (*PFAST_IO_ACQUIRE_FOR_MOD_WRITE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER EndingOffset, - OUT struct _ERESOURCE **ResourceToRelease, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER EndingOffset, + /*OUT*/ struct _ERESOURCE **ResourceToRelease, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_MDL_READ)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN ULONG LockKey, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ ULONG LockKey, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_MDL_READ_COMPLETE)( - IN struct _FILE_OBJECT *FileObject, - IN PMDL MdlChain, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PMDL MdlChain, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_PREPARE_MDL_WRITE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN ULONG LockKey, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ ULONG LockKey, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_MDL_WRITE_COMPLETE)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN PMDL MdlChain, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PMDL MdlChain, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_READ_COMPRESSED)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN ULONG LockKey, - OUT PVOID Buffer, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus, - OUT struct _COMPRESSED_DATA_INFO *CompressedDataInfo, - IN ULONG CompressedDataInfoLength, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ ULONG LockKey, + /*OUT*/ PVOID Buffer, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*OUT*/ struct _COMPRESSED_DATA_INFO *CompressedDataInfo, + /*IN*/ ULONG CompressedDataInfoLength, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_WRITE_COMPRESSED)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN ULONG LockKey, - IN PVOID Buffer, - OUT PMDL *MdlChain, - OUT PIO_STATUS_BLOCK IoStatus, - IN struct _COMPRESSED_DATA_INFO *CompressedDataInfo, - IN ULONG CompressedDataInfoLength, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ ULONG Length, + /*IN*/ ULONG LockKey, + /*IN*/ PVOID Buffer, + /*OUT*/ PMDL *MdlChain, + /*OUT*/ PIO_STATUS_BLOCK IoStatus, + /*IN*/ struct _COMPRESSED_DATA_INFO *CompressedDataInfo, + /*IN*/ ULONG CompressedDataInfoLength, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_MDL_READ_COMPLETE_COMPRESSED)( - IN struct _FILE_OBJECT *FileObject, - IN PMDL MdlChain, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PMDL MdlChain, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_MDL_WRITE_COMPLETE_COMPRESSED)( - IN struct _FILE_OBJECT *FileObject, - IN PLARGE_INTEGER FileOffset, - IN PMDL MdlChain, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ PLARGE_INTEGER FileOffset, + /*IN*/ PMDL MdlChain, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef BOOLEAN DDKAPI (*PFAST_IO_QUERY_OPEN)( - IN struct _IRP *Irp, - OUT PFILE_NETWORK_OPEN_INFORMATION NetworkInformation, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _IRP *Irp, + /*OUT*/ PFILE_NETWORK_OPEN_INFORMATION NetworkInformation, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef NTSTATUS DDKAPI (*PFAST_IO_RELEASE_FOR_MOD_WRITE)( - IN struct _FILE_OBJECT *FileObject, - IN struct _ERESOURCE *ResourceToRelease, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ struct _ERESOURCE *ResourceToRelease, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef NTSTATUS DDKAPI (*PFAST_IO_ACQUIRE_FOR_CCFLUSH)( - IN struct _FILE_OBJECT *FileObject, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef NTSTATUS DDKAPI (*PFAST_IO_RELEASE_FOR_CCFLUSH) ( - IN struct _FILE_OBJECT *FileObject, - IN struct _DEVICE_OBJECT *DeviceObject); + /*IN*/ struct _FILE_OBJECT *FileObject, + /*IN*/ struct _DEVICE_OBJECT *DeviceObject); typedef struct _FAST_IO_DISPATCH { ULONG SizeOfFastIoDispatch; @@ -2504,34 +2509,34 @@ typedef struct _IO_CSQ_IRP_CONTEXT { typedef VOID DDKAPI (*PIO_CSQ_INSERT_IRP)( - IN struct _IO_CSQ *Csq, - IN PIRP Irp); + /*IN*/ struct _IO_CSQ *Csq, + /*IN*/ PIRP Irp); typedef VOID DDKAPI (*PIO_CSQ_REMOVE_IRP)( - IN struct _IO_CSQ *Csq, - IN PIRP Irp); + /*IN*/ struct _IO_CSQ *Csq, + /*IN*/ PIRP Irp); typedef PIRP DDKAPI (*PIO_CSQ_PEEK_NEXT_IRP)( - IN struct _IO_CSQ *Csq, - IN PIRP Irp, - IN PVOID PeekContext); + /*IN*/ struct _IO_CSQ *Csq, + /*IN*/ PIRP Irp, + /*IN*/ PVOID PeekContext); typedef VOID DDKAPI (*PIO_CSQ_ACQUIRE_LOCK)( - IN struct _IO_CSQ *Csq, - OUT PKIRQL Irql); + /*IN*/ struct _IO_CSQ *Csq, + /*OUT*/ PKIRQL Irql); typedef VOID DDKAPI (*PIO_CSQ_RELEASE_LOCK)( - IN struct _IO_CSQ *Csq, - IN KIRQL Irql); + /*IN*/ struct _IO_CSQ *Csq, + /*IN*/ KIRQL Irql); typedef VOID DDKAPI (*PIO_CSQ_COMPLETE_CANCELED_IRP)( - IN struct _IO_CSQ *Csq, - IN PIRP Irp); + /*IN*/ struct _IO_CSQ *Csq, + /*IN*/ PIRP Irp); typedef struct _IO_CSQ { ULONG Type; @@ -2983,9 +2988,9 @@ NTOSAPI ULONGLONG DDKAPI VerSetConditionMask( - IN ULONGLONG ConditionMask, - IN ULONG TypeMask, - IN UCHAR Condition); + /*IN*/ ULONGLONG ConditionMask, + /*IN*/ ULONG TypeMask, + /*IN*/ UCHAR Condition); #define VER_SET_CONDITION(ConditionMask, TypeBitMask, ComparisonType) \ ((ConditionMask) = VerSetConditionMask((ConditionMask), \ @@ -3027,12 +3032,12 @@ typedef struct _RTL_BITMAP_RUN { typedef NTSTATUS DDKAPI (*PRTL_QUERY_REGISTRY_ROUTINE)( - IN PWSTR ValueName, - IN ULONG ValueType, - IN PVOID ValueData, - IN ULONG ValueLength, - IN PVOID Context, - IN PVOID EntryContext); + /*IN*/ PWSTR ValueName, + /*IN*/ ULONG ValueType, + /*IN*/ PVOID ValueData, + /*IN*/ ULONG ValueLength, + /*IN*/ PVOID Context, + /*IN*/ PVOID EntryContext); #define RTL_REGISTRY_ABSOLUTE 0 #define RTL_REGISTRY_SERVICES 1 @@ -3073,13 +3078,13 @@ typedef struct _TIME_FIELDS { typedef PVOID DDKAPI (*PALLOCATE_FUNCTION)( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes, - IN ULONG Tag); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG Tag); typedef VOID DDKAPI (*PFREE_FUNCTION)( - IN PVOID Buffer); + /*IN*/ PVOID Buffer); #define GENERAL_LOOKASIDE_S \ SLIST_HEADER ListHead; \ @@ -3125,9 +3130,9 @@ typedef struct _PAGED_LOOKASIDE_LIST { typedef struct _CALLBACK_OBJECT *PCALLBACK_OBJECT; typedef VOID DDKAPI (*PCALLBACK_FUNCTION)( - IN PVOID CallbackContext, - IN PVOID Argument1, - IN PVOID Argument2); + /*IN*/ PVOID CallbackContext, + /*IN*/ PVOID Argument1, + /*IN*/ PVOID Argument2); typedef enum _EVENT_TYPE { NotificationEvent, @@ -3207,8 +3212,8 @@ typedef struct _IO_WORKITEM *PIO_WORKITEM; typedef VOID DDKAPI (*PIO_WORKITEM_ROUTINE)( - IN PDEVICE_OBJECT DeviceObject, - IN PVOID Context); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PVOID Context); typedef struct _SHARE_ACCESS { ULONG OpenCount; @@ -3322,17 +3327,17 @@ typedef enum _CONFIGURATION_TYPE { } CONFIGURATION_TYPE, *PCONFIGURATION_TYPE; typedef NTSTATUS (*PIO_QUERY_DEVICE_ROUTINE)( - IN PVOID Context, - IN PUNICODE_STRING PathName, - IN INTERFACE_TYPE BusType, - IN ULONG BusNumber, - IN PKEY_VALUE_FULL_INFORMATION *BusInformation, - IN CONFIGURATION_TYPE ControllerType, - IN ULONG ControllerNumber, - IN PKEY_VALUE_FULL_INFORMATION *ControllerInformation, - IN CONFIGURATION_TYPE PeripheralType, - IN ULONG PeripheralNumber, - IN PKEY_VALUE_FULL_INFORMATION *PeripheralInformation); + /*IN*/ PVOID Context, + /*IN*/ PUNICODE_STRING PathName, + /*IN*/ INTERFACE_TYPE BusType, + /*IN*/ ULONG BusNumber, + /*IN*/ PKEY_VALUE_FULL_INFORMATION *BusInformation, + /*IN*/ CONFIGURATION_TYPE ControllerType, + /*IN*/ ULONG ControllerNumber, + /*IN*/ PKEY_VALUE_FULL_INFORMATION *ControllerInformation, + /*IN*/ CONFIGURATION_TYPE PeripheralType, + /*IN*/ ULONG PeripheralNumber, + /*IN*/ PKEY_VALUE_FULL_INFORMATION *PeripheralInformation); typedef enum _WORK_QUEUE_TYPE { CriticalWorkQueue, @@ -3343,7 +3348,7 @@ typedef enum _WORK_QUEUE_TYPE { typedef VOID DDKAPI (*PWORKER_THREAD_ROUTINE)( - IN PVOID Parameter); + /*IN*/ PVOID Parameter); typedef struct _WORK_QUEUE_ITEM { LIST_ENTRY List; @@ -3361,8 +3366,8 @@ typedef enum _KBUGCHECK_BUFFER_DUMP_STATE { typedef VOID DDKAPI (*PKBUGCHECK_CALLBACK_ROUTINE)( - IN PVOID Buffer, - IN ULONG Length); + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length); typedef struct _KBUGCHECK_CALLBACK_RECORD { LIST_ENTRY Entry; @@ -3377,7 +3382,7 @@ typedef struct _KBUGCHECK_CALLBACK_RECORD { /* * VOID * KeInitializeCallbackRecord( - * IN PKBUGCHECK_CALLBACK_RECORD CallbackRecord) + * IN PKBUGCHECK_CALLBACK_RECORD CallbackRecord) */ #define KeInitializeCallbackRecord(CallbackRecord) \ CallbackRecord->State = BufferEmpty; @@ -3432,19 +3437,19 @@ typedef struct _CLIENT_ID { typedef VOID DDKAPI (*PKSTART_ROUTINE)( - IN PVOID StartContext); + /*IN*/ PVOID StartContext); typedef VOID DDKAPI (*PCREATE_PROCESS_NOTIFY_ROUTINE)( - IN HANDLE ParentId, - IN HANDLE ProcessId, - IN BOOLEAN Create); + /*IN*/ HANDLE ParentId, + /*IN*/ HANDLE ProcessId, + /*IN*/ BOOLEAN Create); typedef VOID DDKAPI (*PCREATE_THREAD_NOTIFY_ROUTINE)( - IN HANDLE ProcessId, - IN HANDLE ThreadId, - IN BOOLEAN Create); + /*IN*/ HANDLE ProcessId, + /*IN*/ HANDLE ThreadId, + /*IN*/ BOOLEAN Create); typedef struct _IMAGE_INFO { _ANONYMOUS_UNION union { @@ -3466,9 +3471,9 @@ typedef struct _IMAGE_INFO { typedef VOID DDKAPI (*PLOAD_IMAGE_NOTIFY_ROUTINE)( - IN PUNICODE_STRING FullImageName, - IN HANDLE ProcessId, - IN PIMAGE_INFO ImageInfo); + /*IN*/ PUNICODE_STRING FullImageName, + /*IN*/ HANDLE ProcessId, + /*IN*/ PIMAGE_INFO ImageInfo); typedef enum _PROCESSINFOCLASS { ProcessBasicInformation, @@ -3539,11 +3544,11 @@ typedef ULONG EXECUTION_STATE; typedef VOID DDKAPI (*PREQUEST_POWER_COMPLETE)( - IN PDEVICE_OBJECT DeviceObject, - IN UCHAR MinorFunction, - IN POWER_STATE PowerState, - IN PVOID Context, - IN PIO_STATUS_BLOCK IoStatus); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ UCHAR MinorFunction, + /*IN*/ POWER_STATE PowerState, + /*IN*/ PVOID Context, + /*IN*/ PIO_STATUS_BLOCK IoStatus); typedef enum _TRACE_INFORMATION_CLASS { TraceIdClass, @@ -3558,9 +3563,9 @@ typedef enum _TRACE_INFORMATION_CLASS { typedef NTSTATUS DDKAPI (*PEX_CALLBACK_FUNCTION)( - IN PVOID CallbackContext, - IN PVOID Argument1, - IN PVOID Argument2); + /*IN*/ PVOID CallbackContext, + /*IN*/ PVOID Argument1, + /*IN*/ PVOID Argument2); @@ -3604,8 +3609,8 @@ typedef struct _DISK_SIGNATURE { typedef VOID DDKFASTAPI (*PTIME_UPDATE_NOTIFY_ROUTINE)( - IN HANDLE ThreadId, - IN KPROCESSOR_MODE Mode); + /*IN*/ HANDLE ThreadId, + /*IN*/ KPROCESSOR_MODE Mode); #define DBG_STATUS_CONTROL_C 1 #define DBG_STATUS_SYSRQ 2 @@ -3622,7 +3627,7 @@ typedef struct _PHYSICAL_MEMORY_RANGE { typedef ULONG_PTR (*PDRIVER_VERIFIER_THUNK_ROUTINE)( - IN PVOID Context); + /*IN*/ PVOID Context); typedef struct _DRIVER_VERIFIER_THUNK_PAIRS { PDRIVER_VERIFIER_THUNK_ROUTINE PristineRoutine; @@ -3674,8 +3679,8 @@ typedef struct _RANGE_LIST_ITERATOR { typedef BOOLEAN (*PRTL_CONFLICT_RANGE_CALLBACK)( - IN PVOID Context, - IN PRTL_RANGE Range); + /*IN*/ PVOID Context, + /*IN*/ PRTL_RANGE Range); #define HASH_STRING_ALGORITHM_DEFAULT 0 #define HASH_STRING_ALGORITHM_X65599 1 @@ -3698,9 +3703,9 @@ typedef enum _SUITE_TYPE { typedef VOID DDKAPI (*PTIMER_APC_ROUTINE)( - IN PVOID TimerContext, - IN ULONG TimerLowValue, - IN LONG TimerHighValue); + /*IN*/ PVOID TimerContext, + /*IN*/ ULONG TimerLowValue, + /*IN*/ LONG TimerHighValue); @@ -3837,41 +3842,41 @@ NTOSAPI LONG DDKFASTAPI InterlockedIncrement( - IN PLONG VOLATILE Addend); + /*IN*/ PLONG VOLATILE Addend); NTOSAPI LONG DDKFASTAPI InterlockedDecrement( - IN PLONG VOLATILE Addend); + /*IN*/ PLONG VOLATILE Addend); NTOSAPI LONG DDKFASTAPI InterlockedCompareExchange( - IN OUT PLONG VOLATILE Destination, - IN LONG Exchange, - IN LONG Comparand); + /*IN OUT*/ PLONG VOLATILE Destination, + /*IN*/ LONG Exchange, + /*IN*/ LONG Comparand); NTOSAPI LONG DDKFASTAPI InterlockedExchange( - IN OUT PLONG VOLATILE Target, - IN LONG Value); + /*IN OUT*/ PLONG VOLATILE Target, + /*IN*/ LONG Value); NTOSAPI LONG DDKFASTAPI InterlockedExchangeAdd( - IN OUT PLONG VOLATILE Addend, - IN LONG Value); + /*IN OUT*/ PLONG VOLATILE Addend, + /*IN*/ LONG Value); /* * PVOID * InterlockedExchangePointer( - * IN OUT PVOID VOLATILE *Target, - * IN PVOID Value) + * IN OUT PVOID VOLATILE *Target, + * IN PVOID Value) */ #define InterlockedExchangePointer(Target, Value) \ ((PVOID) InterlockedExchange((PLONG) Target, (LONG) Value)) @@ -3879,9 +3884,9 @@ InterlockedExchangeAdd( /* * PVOID * InterlockedCompareExchangePointer( - * IN OUT PVOID *Destination, - * IN PVOID Exchange, - * IN PVOID Comparand) + * IN OUT PVOID *Destination, + * IN PVOID Exchange, + * IN PVOID Comparand) */ #define InterlockedCompareExchangePointer(Destination, Exchange, Comparand) \ ((PVOID) InterlockedCompareExchange((PLONG) Destination, (LONG) Exchange, (LONG) Comparand)) @@ -3890,14 +3895,14 @@ InterlockedExchangeAdd( PSLIST_ENTRY DDKFASTAPI InterlockedPopEntrySList( - IN PSLIST_HEADER ListHead); + /*IN*/ PSLIST_HEADER ListHead); NTOSAPI PSLIST_ENTRY DDKFASTAPI InterlockedPushEntrySList( - IN PSLIST_HEADER ListHead, - IN PSLIST_ENTRY ListEntry); + /*IN*/ PSLIST_HEADER ListHead, + /*IN*/ PSLIST_ENTRY ListEntry); #endif /* _WIN32_WINNT >= 0x0501 */ #endif /* !__INTERLOCKED_DECLARED */ @@ -3907,13 +3912,13 @@ NTOSAPI VOID DDKFASTAPI KefAcquireSpinLockAtDpcLevel( - IN PKSPIN_LOCK SpinLock); + /*IN*/ PKSPIN_LOCK SpinLock); NTOSAPI VOID DDKFASTAPI KefReleaseSpinLockFromDpcLevel( - IN PKSPIN_LOCK SpinLock); + /*IN*/ PKSPIN_LOCK SpinLock); #define KeAcquireSpinLockAtDpcLevel(SpinLock) KefAcquireSpinLockAtDpcLevel(SpinLock) #define KeReleaseSpinLockFromDpcLevel(SpinLock) KefReleaseSpinLockFromDpcLevel(SpinLock) @@ -3936,7 +3941,7 @@ KefReleaseSpinLockFromDpcLevel( /* * ULONG * BYTE_OFFSET( - * IN PVOID Va) + * IN PVOID Va) */ #define BYTE_OFFSET(Va) \ ((ULONG) ((ULONG_PTR) (Va) & (PAGE_SIZE - 1))) @@ -3944,7 +3949,7 @@ KefReleaseSpinLockFromDpcLevel( /* * ULONG * BYTES_TO_PAGES( - * IN ULONG Size) + * IN ULONG Size) */ #define BYTES_TO_PAGES(Size) \ ((ULONG) ((ULONG_PTR) (Size) >> PAGE_SHIFT) + (((ULONG) (Size) & (PAGE_SIZE - 1)) != 0)) @@ -3952,9 +3957,9 @@ KefReleaseSpinLockFromDpcLevel( /* * PCHAR * CONTAINING_RECORD( - * IN PCHAR Address, - * IN TYPE Type, - * IN PCHAR Field); + * IN PCHAR Address, + * IN TYPE Type, + * IN PCHAR Field); */ #ifndef CONTAINING_RECORD #define CONTAINING_RECORD(Address, Type, Field) \ @@ -3963,8 +3968,8 @@ KefReleaseSpinLockFromDpcLevel( /* LONG * FIELD_OFFSET( - * IN TYPE Type, - * IN PCHAR Field); + * IN TYPE Type, + * IN PCHAR Field); */ #ifndef FIELD_OFFSET #define FIELD_OFFSET(Type, Field) \ @@ -3974,7 +3979,7 @@ KefReleaseSpinLockFromDpcLevel( /* * PVOID * PAGE_ALIGN( - * IN PVOID Va) + * IN PVOID Va) */ #define PAGE_ALIGN(Va) \ ((PVOID) ((ULONG_PTR)(Va) & ~(PAGE_SIZE - 1))) @@ -3982,7 +3987,7 @@ KefReleaseSpinLockFromDpcLevel( /* * ULONG_PTR * ROUND_TO_PAGES( - * IN ULONG_PTR Size) + * IN ULONG_PTR Size) */ #define ROUND_TO_PAGES(Size) \ ((ULONG_PTR) (((ULONG_PTR) Size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))) @@ -3991,10 +3996,10 @@ NTOSAPI VOID DDKAPI RtlAssert( - IN PVOID FailedAssertion, - IN PVOID FileName, - IN ULONG LineNumber, - IN PCHAR Message); + /*IN*/ PVOID FailedAssertion, + /*IN*/ PVOID FileName, + /*IN*/ ULONG LineNumber, + /*IN*/ PCHAR Message); #ifdef DBG @@ -4046,7 +4051,7 @@ RtlAssert( /* * VOID * InitializeListHead( - * IN PLIST_ENTRY ListHead) + * IN PLIST_ENTRY ListHead) */ #define InitializeListHead(_ListHead) \ { \ @@ -4057,8 +4062,8 @@ RtlAssert( /* * VOID * InsertHeadList( - * IN PLIST_ENTRY ListHead, - * IN PLIST_ENTRY Entry) + * IN PLIST_ENTRY ListHead, + * IN PLIST_ENTRY Entry) */ #define InsertHeadList(_ListHead, \ _Entry) \ @@ -4074,8 +4079,8 @@ RtlAssert( /* * VOID * InsertTailList( - * IN PLIST_ENTRY ListHead, - * IN PLIST_ENTRY Entry) + * IN PLIST_ENTRY ListHead, + * IN PLIST_ENTRY Entry) */ #define InsertTailList(_ListHead, \ _Entry) \ @@ -4091,14 +4096,14 @@ RtlAssert( /* * BOOLEAN * IsListEmpty( - * IN PLIST_ENTRY ListHead) + * IN PLIST_ENTRY ListHead) */ #define IsListEmpty(_ListHead) \ ((_ListHead)->Flink == (_ListHead)) static __inline PSINGLE_LIST_ENTRY PopEntryList( - IN PSINGLE_LIST_ENTRY ListHead) + /*IN*/ PSINGLE_LIST_ENTRY ListHead) { PSINGLE_LIST_ENTRY Entry; @@ -4113,8 +4118,8 @@ PopEntryList( /* * VOID * PushEntryList( - * IN PSINGLE_LIST_ENTRY ListHead, - * IN PSINGLE_LIST_ENTRY Entry) + * IN PSINGLE_LIST_ENTRY ListHead, + * IN PSINGLE_LIST_ENTRY Entry) */ #define PushEntryList(_ListHead, \ _Entry) \ @@ -4126,7 +4131,7 @@ PopEntryList( /* * VOID * RemoveEntryList( - * IN PLIST_ENTRY Entry) + * IN PLIST_ENTRY Entry) */ #define RemoveEntryList(_Entry) \ { \ @@ -4142,7 +4147,7 @@ PopEntryList( static __inline PLIST_ENTRY RemoveHeadList( - IN PLIST_ENTRY ListHead) + /*IN*/ PLIST_ENTRY ListHead) { PLIST_ENTRY OldFlink; PLIST_ENTRY OldBlink; @@ -4165,7 +4170,7 @@ RemoveHeadList( static __inline PLIST_ENTRY RemoveTailList( - IN PLIST_ENTRY ListHead) + /*IN*/ PLIST_ENTRY ListHead) { PLIST_ENTRY OldFlink; PLIST_ENTRY OldBlink; @@ -4189,7 +4194,7 @@ RemoveTailList( /* * USHORT * QueryDepthSList( - * IN PSLIST_HEADER SListHead) + * IN PSLIST_HEADER SListHead) */ #define QueryDepthSList(_SListHead) \ ((USHORT) ((_SListHead)->Alignment & 0xffff)) @@ -4200,85 +4205,85 @@ NTOSAPI ULONG DDKAPI RtlAnsiStringToUnicodeSize( - IN PANSI_STRING AnsiString); + /*IN*/ PANSI_STRING AnsiString); NTOSAPI NTSTATUS DDKAPI RtlAddRange( - IN OUT PRTL_RANGE_LIST RangeList, - IN ULONGLONG Start, - IN ULONGLONG End, - IN UCHAR Attributes, - IN ULONG Flags, - IN PVOID UserData OPTIONAL, - IN PVOID Owner OPTIONAL); + /*IN OUT*/ PRTL_RANGE_LIST RangeList, + /*IN*/ ULONGLONG Start, + /*IN*/ ULONGLONG End, + /*IN*/ UCHAR Attributes, + /*IN*/ ULONG Flags, + /*IN*/ PVOID UserData /*OPTIONAL*/, + /*IN*/ PVOID Owner /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI RtlAnsiStringToUnicodeString( - IN OUT PUNICODE_STRING DestinationString, - IN PANSI_STRING SourceString, - IN BOOLEAN AllocateDestinationString); + /*IN OUT*/ PUNICODE_STRING DestinationString, + /*IN*/ PANSI_STRING SourceString, + /*IN*/ BOOLEAN AllocateDestinationString); NTOSAPI NTSTATUS DDKAPI RtlAppendUnicodeStringToString( - IN OUT PUNICODE_STRING Destination, - IN PUNICODE_STRING Source); + /*IN OUT*/ PUNICODE_STRING Destination, + /*IN*/ PUNICODE_STRING Source); NTOSAPI NTSTATUS DDKAPI RtlAppendUnicodeToString( - IN OUT PUNICODE_STRING Destination, - IN PCWSTR Source); + /*IN OUT*/ PUNICODE_STRING Destination, + /*IN*/ PCWSTR Source); NTOSAPI BOOLEAN DDKAPI RtlAreBitsClear( - IN PRTL_BITMAP BitMapHeader, - IN ULONG StartingIndex, - IN ULONG Length); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG StartingIndex, + /*IN*/ ULONG Length); NTOSAPI BOOLEAN DDKAPI RtlAreBitsSet( - IN PRTL_BITMAP BitMapHeader, - IN ULONG StartingIndex, - IN ULONG Length); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG StartingIndex, + /*IN*/ ULONG Length); NTOSAPI NTSTATUS DDKAPI RtlCharToInteger( - IN PCSZ String, - IN ULONG Base OPTIONAL, - IN OUT PULONG Value); + /*IN*/ PCSZ String, + /*IN*/ ULONG Base /*OPTIONAL*/, + /*IN OUT*/ PULONG Value); NTOSAPI ULONG DDKAPI RtlCheckBit( - IN PRTL_BITMAP BitMapHeader, - IN ULONG BitPosition); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG BitPosition); NTOSAPI NTSTATUS DDKAPI RtlCheckRegistryKey( - IN ULONG RelativeTo, - IN PWSTR Path); + /*IN*/ ULONG RelativeTo, + /*IN*/ PWSTR Path); NTOSAPI VOID DDKAPI RtlClearAllBits( - IN PRTL_BITMAP BitMapHeader); + /*IN*/ PRTL_BITMAP BitMapHeader); NTOSAPI VOID @@ -4291,51 +4296,51 @@ NTOSAPI VOID DDKAPI RtlClearBits( - IN PRTL_BITMAP BitMapHeader, - IN ULONG StartingIndex, - IN ULONG NumberToClear); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG StartingIndex, + /*IN*/ ULONG NumberToClear); NTOSAPI SIZE_T DDKAPI RtlCompareMemory( - IN CONST VOID *Source1, - IN CONST VOID *Source2, - IN SIZE_T Length); + /*IN*/ CONST VOID *Source1, + /*IN*/ CONST VOID *Source2, + /*IN*/ SIZE_T Length); NTOSAPI LONG DDKAPI RtlCompareString( - IN PSTRING String1, - IN PSTRING String2, + /*IN*/ PSTRING String1, + /*IN*/ PSTRING String2, BOOLEAN CaseInSensitive); NTOSAPI LONG DDKAPI RtlCompareUnicodeString( - IN PUNICODE_STRING String1, - IN PUNICODE_STRING String2, - IN BOOLEAN CaseInSensitive); + /*IN*/ PUNICODE_STRING String1, + /*IN*/ PUNICODE_STRING String2, + /*IN*/ BOOLEAN CaseInSensitive); NTOSAPI LARGE_INTEGER DDKAPI RtlConvertLongToLargeInteger( - IN LONG SignedInteger); + /*IN*/ LONG SignedInteger); NTOSAPI LUID DDKAPI RtlConvertLongToLuid( - IN LONG Long); + /*IN*/ LONG Long); NTOSAPI LARGE_INTEGER DDKAPI RtlConvertUlongToLargeInteger( - IN ULONG UnsignedInteger); + /*IN*/ ULONG UnsignedInteger); NTOSAPI LUID @@ -4346,9 +4351,9 @@ RtlConvertUlongToLuid( /* * VOID * RtlCopyMemory( - * IN VOID UNALIGNED *Destination, - * IN CONST VOID UNALIGNED *Source, - * IN SIZE_T Length) + * IN VOID UNALIGNED *Destination, + * IN CONST VOID UNALIGNED *Source, + * IN SIZE_T Length) */ #ifndef RtlCopyMemory #define RtlCopyMemory(Destination, Source, Length) \ @@ -4363,83 +4368,83 @@ NTOSAPI VOID DDKAPI RtlCopyMemory32( - IN VOID UNALIGNED *Destination, - IN CONST VOID UNALIGNED *Source, - IN ULONG Length); + /*IN*/ VOID UNALIGNED *Destination, + /*IN*/ CONST VOID UNALIGNED *Source, + /*IN*/ ULONG Length); NTOSAPI NTSTATUS DDKAPI RtlCopyRangeList( - OUT PRTL_RANGE_LIST CopyRangeList, - IN PRTL_RANGE_LIST RangeList); + /*OUT*/ PRTL_RANGE_LIST CopyRangeList, + /*IN*/ PRTL_RANGE_LIST RangeList); NTOSAPI VOID DDKAPI RtlCopyString( - IN OUT PSTRING DestinationString, - IN PSTRING SourceString OPTIONAL); + /*IN OUT*/ PSTRING DestinationString, + /*IN*/ PSTRING SourceString /*OPTIONAL*/); NTOSAPI VOID DDKAPI RtlCopyUnicodeString( - IN OUT PUNICODE_STRING DestinationString, - IN PUNICODE_STRING SourceString); + /*IN OUT*/ PUNICODE_STRING DestinationString, + /*IN*/ PUNICODE_STRING SourceString); NTOSAPI NTSTATUS DDKAPI RtlCreateRegistryKey( - IN ULONG RelativeTo, - IN PWSTR Path); + /*IN*/ ULONG RelativeTo, + /*IN*/ PWSTR Path); NTOSAPI NTSTATUS DDKAPI RtlCreateSecurityDescriptor( - IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG Revision); + /*IN OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG Revision); NTOSAPI NTSTATUS DDKAPI RtlDeleteOwnersRanges( - IN OUT PRTL_RANGE_LIST RangeList, - IN PVOID Owner); + /*IN OUT*/ PRTL_RANGE_LIST RangeList, + /*IN*/ PVOID Owner); NTOSAPI NTSTATUS DDKAPI RtlDeleteRange( - IN OUT PRTL_RANGE_LIST RangeList, - IN ULONGLONG Start, - IN ULONGLONG End, - IN PVOID Owner); + /*IN OUT*/ PRTL_RANGE_LIST RangeList, + /*IN*/ ULONGLONG Start, + /*IN*/ ULONGLONG End, + /*IN*/ PVOID Owner); NTOSAPI NTSTATUS DDKAPI RtlDeleteRegistryValue( - IN ULONG RelativeTo, - IN PCWSTR Path, - IN PCWSTR ValueName); + /*IN*/ ULONG RelativeTo, + /*IN*/ PCWSTR Path, + /*IN*/ PCWSTR ValueName); NTOSAPI BOOL DDKAPI RtlDosPathNameToNtPathName_U( - IN PCWSTR DosPathName, - OUT PUNICODE_STRING NtPathName, - OUT PCWSTR *NtFileNamePart, - OUT VOID *DirectoryInfo); + /*IN*/ PCWSTR DosPathName, + /*OUT*/ PUNICODE_STRING NtPathName, + /*OUT*/ PCWSTR *NtFileNamePart, + /*OUT*/ VOID *DirectoryInfo); /* * BOOLEAN * RtlEqualLuid( - * IN LUID Luid1, - * IN LUID Luid2) + * IN LUID Luid1, + * IN LUID Luid2) */ #define RtlEqualLuid(_Luid1, \ _Luid2) \ @@ -4448,9 +4453,9 @@ RtlDosPathNameToNtPathName_U( /* * ULONG * RtlEqualMemory( - * IN VOID UNALIGNED *Destination, - * IN CONST VOID UNALIGNED *Source, - * IN SIZE_T Length) + * IN VOID UNALIGNED *Destination, + * IN CONST VOID UNALIGNED *Source, + * IN SIZE_T Length) */ #define RtlEqualMemory(Destination, Source, Length) (!memcmp(Destination, Source, Length)) @@ -4458,24 +4463,24 @@ NTOSAPI BOOLEAN DDKAPI RtlEqualString( - IN PSTRING String1, - IN PSTRING String2, - IN BOOLEAN CaseInSensitive); + /*IN*/ PSTRING String1, + /*IN*/ PSTRING String2, + /*IN*/ BOOLEAN CaseInSensitive); NTOSAPI BOOLEAN DDKAPI RtlEqualUnicodeString( - IN CONST UNICODE_STRING *String1, - IN CONST UNICODE_STRING *String2, - IN BOOLEAN CaseInSensitive); + /*IN*/ CONST UNICODE_STRING *String1, + /*IN*/ CONST UNICODE_STRING *String2, + /*IN*/ BOOLEAN CaseInSensitive); /* * VOID * RtlFillMemory( - * IN VOID UNALIGNED *Destination, - * IN SIZE_T Length, - * IN UCHAR Fill) + * IN VOID UNALIGNED *Destination, + * IN SIZE_T Length, + * IN UCHAR Fill) */ #ifndef RtlFillMemory #define RtlFillMemory(Destination, Length, Fill) \ @@ -4490,146 +4495,146 @@ NTOSAPI ULONG DDKAPI RtlFindClearBits( - IN PRTL_BITMAP BitMapHeader, - IN ULONG NumberToFind, - IN ULONG HintIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG NumberToFind, + /*IN*/ ULONG HintIndex); NTOSAPI ULONG DDKAPI RtlFindClearBitsAndSet( - IN PRTL_BITMAP BitMapHeader, - IN ULONG NumberToFind, - IN ULONG HintIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG NumberToFind, + /*IN*/ ULONG HintIndex); NTOSAPI ULONG DDKAPI RtlFindClearRuns( - IN PRTL_BITMAP BitMapHeader, - OUT PRTL_BITMAP_RUN RunArray, - IN ULONG SizeOfRunArray, - IN BOOLEAN LocateLongestRuns); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*OUT*/ PRTL_BITMAP_RUN RunArray, + /*IN*/ ULONG SizeOfRunArray, + /*IN*/ BOOLEAN LocateLongestRuns); NTOSAPI ULONG DDKAPI RtlFindFirstRunClear( - IN PRTL_BITMAP BitMapHeader, - OUT PULONG StartingIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*OUT*/ PULONG StartingIndex); NTOSAPI ULONG DDKAPI RtlFindLastBackwardRunClear( - IN PRTL_BITMAP BitMapHeader, - IN ULONG FromIndex, - OUT PULONG StartingRunIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG FromIndex, + /*OUT*/ PULONG StartingRunIndex); NTOSAPI CCHAR DDKAPI RtlFindLeastSignificantBit( - IN ULONGLONG Set); + /*IN*/ ULONGLONG Set); NTOSAPI ULONG DDKAPI RtlFindLongestRunClear( - IN PRTL_BITMAP BitMapHeader, - OUT PULONG StartingIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*OUT*/ PULONG StartingIndex); NTOSAPI CCHAR DDKAPI RtlFindMostSignificantBit( - IN ULONGLONG Set); + /*IN*/ ULONGLONG Set); NTOSAPI ULONG DDKAPI RtlFindNextForwardRunClear( - IN PRTL_BITMAP BitMapHeader, - IN ULONG FromIndex, - OUT PULONG StartingRunIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG FromIndex, + /*OUT*/ PULONG StartingRunIndex); NTOSAPI NTSTATUS DDKAPI RtlFindRange( - IN PRTL_RANGE_LIST RangeList, - IN ULONGLONG Minimum, - IN ULONGLONG Maximum, - IN ULONG Length, - IN ULONG Alignment, - IN ULONG Flags, - IN UCHAR AttributeAvailableMask, - IN PVOID Context OPTIONAL, - IN PRTL_CONFLICT_RANGE_CALLBACK Callback OPTIONAL, - OUT PULONGLONG Start); + /*IN*/ PRTL_RANGE_LIST RangeList, + /*IN*/ ULONGLONG Minimum, + /*IN*/ ULONGLONG Maximum, + /*IN*/ ULONG Length, + /*IN*/ ULONG Alignment, + /*IN*/ ULONG Flags, + /*IN*/ UCHAR AttributeAvailableMask, + /*IN*/ PVOID Context /*OPTIONAL*/, + /*IN*/ PRTL_CONFLICT_RANGE_CALLBACK Callback /*OPTIONAL*/, + /*OUT*/ PULONGLONG Start); NTOSAPI ULONG DDKAPI RtlFindSetBits( - IN PRTL_BITMAP BitMapHeader, - IN ULONG NumberToFind, - IN ULONG HintIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG NumberToFind, + /*IN*/ ULONG HintIndex); NTOSAPI ULONG DDKAPI RtlFindSetBitsAndClear( - IN PRTL_BITMAP BitMapHeader, - IN ULONG NumberToFind, - IN ULONG HintIndex); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG NumberToFind, + /*IN*/ ULONG HintIndex); NTOSAPI VOID DDKAPI RtlFreeAnsiString( - IN PANSI_STRING AnsiString); + /*IN*/ PANSI_STRING AnsiString); NTOSAPI VOID DDKAPI RtlFreeRangeList( - IN PRTL_RANGE_LIST RangeList); + /*IN*/ PRTL_RANGE_LIST RangeList); NTOSAPI VOID DDKAPI RtlFreeUnicodeString( - IN PUNICODE_STRING UnicodeString); + /*IN*/ PUNICODE_STRING UnicodeString); NTOSAPI VOID DDKAPI RtlGetCallersAddress( - OUT PVOID *CallersAddress, - OUT PVOID *CallersCaller); + /*OUT*/ PVOID *CallersAddress, + /*OUT*/ PVOID *CallersCaller); NTOSAPI NTSTATUS DDKAPI RtlGetVersion( - IN OUT PRTL_OSVERSIONINFOW lpVersionInformation); + /*IN OUT*/ PRTL_OSVERSIONINFOW lpVersionInformation); NTOSAPI NTSTATUS DDKAPI RtlGetFirstRange( - IN PRTL_RANGE_LIST RangeList, - OUT PRTL_RANGE_LIST_ITERATOR Iterator, - OUT PRTL_RANGE *Range); + /*IN*/ PRTL_RANGE_LIST RangeList, + /*OUT*/ PRTL_RANGE_LIST_ITERATOR Iterator, + /*OUT*/ PRTL_RANGE *Range); NTOSAPI NTSTATUS DDKAPI RtlGetNextRange( - IN OUT PRTL_RANGE_LIST_ITERATOR Iterator, - OUT PRTL_RANGE *Range, - IN BOOLEAN MoveForwards); + /*IN OUT*/ PRTL_RANGE_LIST_ITERATOR Iterator, + /*OUT*/ PRTL_RANGE *Range, + /*IN*/ BOOLEAN MoveForwards); #define FOR_ALL_RANGES(RangeList, Iterator, Current) \ for (RtlGetFirstRange((RangeList), (Iterator), &(Current)); \ @@ -4645,101 +4650,101 @@ NTOSAPI NTSTATUS DDKAPI RtlGUIDFromString( - IN PUNICODE_STRING GuidString, - OUT GUID *Guid); + /*IN*/ PUNICODE_STRING GuidString, + /*OUT*/ GUID *Guid); NTOSAPI NTSTATUS DDKAPI RtlHashUnicodeString( - IN CONST UNICODE_STRING *String, - IN BOOLEAN CaseInSensitive, - IN ULONG HashAlgorithm, - OUT PULONG HashValue); + /*IN*/ CONST UNICODE_STRING *String, + /*IN*/ BOOLEAN CaseInSensitive, + /*IN*/ ULONG HashAlgorithm, + /*OUT*/ PULONG HashValue); NTOSAPI VOID DDKAPI RtlInitAnsiString( - IN OUT PANSI_STRING DestinationString, - IN PCSZ SourceString); + /*IN OUT*/ PANSI_STRING DestinationString, + /*IN*/ PCSZ SourceString); NTOSAPI VOID DDKAPI RtlInitializeBitMap( - IN PRTL_BITMAP BitMapHeader, - IN PULONG BitMapBuffer, - IN ULONG SizeOfBitMap); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ PULONG BitMapBuffer, + /*IN*/ ULONG SizeOfBitMap); NTOSAPI VOID DDKAPI RtlInitializeRangeList( - IN OUT PRTL_RANGE_LIST RangeList); + /*IN OUT*/ PRTL_RANGE_LIST RangeList); NTOSAPI VOID DDKAPI RtlInitString( - IN OUT PSTRING DestinationString, - IN PCSZ SourceString); + /*IN OUT*/ PSTRING DestinationString, + /*IN*/ PCSZ SourceString); NTOSAPI VOID DDKAPI RtlInitUnicodeString( - IN OUT PUNICODE_STRING DestinationString, - IN PCWSTR SourceString); + /*IN OUT*/ PUNICODE_STRING DestinationString, + /*IN*/ PCWSTR SourceString); NTOSAPI NTSTATUS DDKAPI RtlInt64ToUnicodeString( - IN ULONGLONG Value, - IN ULONG Base OPTIONAL, - IN OUT PUNICODE_STRING String); + /*IN*/ ULONGLONG Value, + /*IN*/ ULONG Base /*OPTIONAL*/, + /*IN OUT*/ PUNICODE_STRING String); NTOSAPI NTSTATUS DDKAPI RtlIntegerToUnicodeString( - IN ULONG Value, - IN ULONG Base OPTIONAL, - IN OUT PUNICODE_STRING String); + /*IN*/ ULONG Value, + /*IN*/ ULONG Base /*OPTIONAL*/, + /*IN OUT*/ PUNICODE_STRING String); NTOSAPI NTSTATUS DDKAPI RtlIntPtrToUnicodeString( PLONG Value, - ULONG Base OPTIONAL, + ULONG Base /*OPTIONAL*/, PUNICODE_STRING String); NTOSAPI NTSTATUS DDKAPI RtlInvertRangeList( - OUT PRTL_RANGE_LIST InvertedRangeList, - IN PRTL_RANGE_LIST RangeList); + /*OUT*/ PRTL_RANGE_LIST InvertedRangeList, + /*IN*/ PRTL_RANGE_LIST RangeList); NTOSAPI NTSTATUS DDKAPI RtlIsRangeAvailable( - IN PRTL_RANGE_LIST RangeList, - IN ULONGLONG Start, - IN ULONGLONG End, - IN ULONG Flags, - IN UCHAR AttributeAvailableMask, - IN PVOID Context OPTIONAL, - IN PRTL_CONFLICT_RANGE_CALLBACK Callback OPTIONAL, - OUT PBOOLEAN Available); + /*IN*/ PRTL_RANGE_LIST RangeList, + /*IN*/ ULONGLONG Start, + /*IN*/ ULONGLONG End, + /*IN*/ ULONG Flags, + /*IN*/ UCHAR AttributeAvailableMask, + /*IN*/ PVOID Context /*OPTIONAL*/, + /*IN*/ PRTL_CONFLICT_RANGE_CALLBACK Callback /*OPTIONAL*/, + /*OUT*/ PBOOLEAN Available); /* * BOOLEAN * RtlIsZeroLuid( - * IN PLUID L1) + * IN PLUID L1) */ #define RtlIsZeroLuid(_L1) \ ((BOOLEAN) ((!(_L1)->LowPart) && (!(_L1)->HighPart))) @@ -4748,30 +4753,30 @@ NTOSAPI ULONG DDKAPI RtlLengthSecurityDescriptor( - IN PSECURITY_DESCRIPTOR SecurityDescriptor); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor); NTOSAPI VOID DDKAPI RtlMapGenericMask( - IN OUT PACCESS_MASK AccessMask, - IN PGENERIC_MAPPING GenericMapping); + /*IN OUT*/ PACCESS_MASK AccessMask, + /*IN*/ PGENERIC_MAPPING GenericMapping); NTOSAPI NTSTATUS DDKAPI RtlMergeRangeLists( - OUT PRTL_RANGE_LIST MergedRangeList, - IN PRTL_RANGE_LIST RangeList1, - IN PRTL_RANGE_LIST RangeList2, - IN ULONG Flags); + /*OUT*/ PRTL_RANGE_LIST MergedRangeList, + /*IN*/ PRTL_RANGE_LIST RangeList1, + /*IN*/ PRTL_RANGE_LIST RangeList2, + /*IN*/ ULONG Flags); /* * VOID * RtlMoveMemory( - * IN VOID UNALIGNED *Destination, - * IN CONST VOID UNALIGNED *Source, - * IN SIZE_T Length) + * IN VOID UNALIGNED *Destination, + * IN CONST VOID UNALIGNED *Source, + * IN SIZE_T Length) */ #define RtlMoveMemory memmove @@ -4779,58 +4784,58 @@ NTOSAPI ULONG DDKAPI RtlNumberOfClearBits( - IN PRTL_BITMAP BitMapHeader); + /*IN*/ PRTL_BITMAP BitMapHeader); NTOSAPI ULONG DDKAPI RtlNumberOfSetBits( - IN PRTL_BITMAP BitMapHeader); + /*IN*/ PRTL_BITMAP BitMapHeader); NTOSAPI VOID DDKFASTAPI RtlPrefetchMemoryNonTemporal( - IN PVOID Source, - IN SIZE_T Length); + /*IN*/ PVOID Source, + /*IN*/ SIZE_T Length); NTOSAPI BOOLEAN DDKAPI RtlPrefixUnicodeString( - IN PUNICODE_STRING String1, - IN PUNICODE_STRING String2, - IN BOOLEAN CaseInSensitive); + /*IN*/ PUNICODE_STRING String1, + /*IN*/ PUNICODE_STRING String2, + /*IN*/ BOOLEAN CaseInSensitive); NTOSAPI NTSTATUS DDKAPI RtlQueryRegistryValues( - IN ULONG RelativeTo, - IN PCWSTR Path, - IN PRTL_QUERY_REGISTRY_TABLE QueryTable, - IN PVOID Context, - IN PVOID Environment OPTIONAL); + /*IN*/ ULONG RelativeTo, + /*IN*/ PCWSTR Path, + /*IN*/ PRTL_QUERY_REGISTRY_TABLE QueryTable, + /*IN*/ PVOID Context, + /*IN*/ PVOID Environment /*OPTIONAL*/); NTOSAPI VOID DDKAPI RtlRetrieveUlong( - IN OUT PULONG DestinationAddress, - IN PULONG SourceAddress); + /*IN OUT*/ PULONG DestinationAddress, + /*IN*/ PULONG SourceAddress); NTOSAPI VOID DDKAPI RtlRetrieveUshort( - IN OUT PUSHORT DestinationAddress, - IN PUSHORT SourceAddress); + /*IN OUT*/ PUSHORT DestinationAddress, + /*IN*/ PUSHORT SourceAddress); NTOSAPI VOID DDKAPI RtlSetAllBits( - IN PRTL_BITMAP BitMapHeader); + /*IN*/ PRTL_BITMAP BitMapHeader); NTOSAPI VOID @@ -4843,201 +4848,201 @@ NTOSAPI VOID DDKAPI RtlSetBits( - IN PRTL_BITMAP BitMapHeader, - IN ULONG StartingIndex, - IN ULONG NumberToSet); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG StartingIndex, + /*IN*/ ULONG NumberToSet); NTOSAPI NTSTATUS DDKAPI RtlSetDaclSecurityDescriptor( - IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, - IN BOOLEAN DaclPresent, - IN PACL Dacl OPTIONAL, - IN BOOLEAN DaclDefaulted OPTIONAL); + /*IN OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ BOOLEAN DaclPresent, + /*IN*/ PACL Dacl /*OPTIONAL*/, + /*IN*/ BOOLEAN DaclDefaulted /*OPTIONAL*/); NTOSAPI VOID DDKAPI RtlStoreUlong( - IN PULONG Address, - IN ULONG Value); + /*IN*/ PULONG Address, + /*IN*/ ULONG Value); NTOSAPI VOID DDKAPI RtlStoreUlonglong( - IN OUT PULONGLONG Address, + /*IN OUT*/ PULONGLONG Address, ULONGLONG Value); NTOSAPI VOID DDKAPI RtlStoreUlongPtr( - IN OUT PULONG_PTR Address, - IN ULONG_PTR Value); + /*IN OUT*/ PULONG_PTR Address, + /*IN*/ ULONG_PTR Value); NTOSAPI VOID DDKAPI RtlStoreUshort( - IN PUSHORT Address, - IN USHORT Value); + /*IN*/ PUSHORT Address, + /*IN*/ USHORT Value); NTOSAPI NTSTATUS DDKAPI RtlStringFromGUID( - IN REFGUID Guid, - OUT PUNICODE_STRING GuidString); + /*IN*/ REFGUID Guid, + /*OUT*/ PUNICODE_STRING GuidString); NTOSAPI BOOLEAN DDKAPI RtlTestBit( - IN PRTL_BITMAP BitMapHeader, - IN ULONG BitNumber); + /*IN*/ PRTL_BITMAP BitMapHeader, + /*IN*/ ULONG BitNumber); NTOSAPI BOOLEAN DDKAPI RtlTimeFieldsToTime( - IN PTIME_FIELDS TimeFields, - IN PLARGE_INTEGER Time); + /*IN*/ PTIME_FIELDS TimeFields, + /*IN*/ PLARGE_INTEGER Time); NTOSAPI VOID DDKAPI RtlTimeToTimeFields( - IN PLARGE_INTEGER Time, - IN PTIME_FIELDS TimeFields); + /*IN*/ PLARGE_INTEGER Time, + /*IN*/ PTIME_FIELDS TimeFields); NTOSAPI ULONG DDKFASTAPI RtlUlongByteSwap( - IN ULONG Source); + /*IN*/ ULONG Source); NTOSAPI ULONGLONG DDKFASTAPI RtlUlonglongByteSwap( - IN ULONGLONG Source); + /*IN*/ ULONGLONG Source); NTOSAPI ULONG DDKAPI RtlUnicodeStringToAnsiSize( - IN PUNICODE_STRING UnicodeString); + /*IN*/ PUNICODE_STRING UnicodeString); NTOSAPI NTSTATUS DDKAPI RtlUnicodeStringToAnsiString( - IN OUT PANSI_STRING DestinationString, - IN PUNICODE_STRING SourceString, - IN BOOLEAN AllocateDestinationString); + /*IN OUT*/ PANSI_STRING DestinationString, + /*IN*/ PUNICODE_STRING SourceString, + /*IN*/ BOOLEAN AllocateDestinationString); NTOSAPI NTSTATUS DDKAPI RtlUnicodeStringToInteger( - IN PUNICODE_STRING String, - IN ULONG Base OPTIONAL, - OUT PULONG Value); + /*IN*/ PUNICODE_STRING String, + /*IN*/ ULONG Base /*OPTIONAL*/, + /*OUT*/ PULONG Value); NTOSAPI WCHAR DDKAPI RtlUpcaseUnicodeChar( - IN WCHAR SourceCharacter); + /*IN*/ WCHAR SourceCharacter); NTOSAPI NTSTATUS DDKAPI RtlUpcaseUnicodeString( - IN OUT PUNICODE_STRING DestinationString OPTIONAL, - IN PCUNICODE_STRING SourceString, - IN BOOLEAN AllocateDestinationString); + /*IN OUT*/ PUNICODE_STRING DestinationString /*OPTIONAL*/, + /*IN*/ PCUNICODE_STRING SourceString, + /*IN*/ BOOLEAN AllocateDestinationString); NTOSAPI CHAR DDKAPI RtlUpperChar( - IN CHAR Character); + /*IN*/ CHAR Character); NTOSAPI VOID DDKAPI RtlUpperString( - IN OUT PSTRING DestinationString, - IN PSTRING SourceString); + /*IN OUT*/ PSTRING DestinationString, + /*IN*/ PSTRING SourceString); NTOSAPI USHORT DDKFASTAPI RtlUshortByteSwap( - IN USHORT Source); + /*IN*/ USHORT Source); NTOSAPI BOOLEAN DDKAPI RtlValidRelativeSecurityDescriptor( - IN PSECURITY_DESCRIPTOR SecurityDescriptorInput, - IN ULONG SecurityDescriptorLength, - IN SECURITY_INFORMATION RequiredInformation); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptorInput, + /*IN*/ ULONG SecurityDescriptorLength, + /*IN*/ SECURITY_INFORMATION RequiredInformation); NTOSAPI BOOLEAN DDKAPI RtlValidSecurityDescriptor( - IN PSECURITY_DESCRIPTOR SecurityDescriptor); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor); NTOSAPI NTSTATUS DDKAPI RtlVerifyVersionInfo( - IN PRTL_OSVERSIONINFOEXW VersionInfo, - IN ULONG TypeMask, - IN ULONGLONG ConditionMask); + /*IN*/ PRTL_OSVERSIONINFOEXW VersionInfo, + /*IN*/ ULONG TypeMask, + /*IN*/ ULONGLONG ConditionMask); NTOSAPI NTSTATUS DDKAPI RtlVolumeDeviceToDosName( - IN PVOID VolumeDeviceObject, - OUT PUNICODE_STRING DosName); + /*IN*/ PVOID VolumeDeviceObject, + /*OUT*/ PUNICODE_STRING DosName); NTOSAPI ULONG DDKAPI RtlWalkFrameChain( - OUT PVOID *Callers, - IN ULONG Count, - IN ULONG Flags); + /*OUT*/ PVOID *Callers, + /*IN*/ ULONG Count, + /*IN*/ ULONG Flags); NTOSAPI NTSTATUS DDKAPI RtlWriteRegistryValue( - IN ULONG RelativeTo, - IN PCWSTR Path, - IN PCWSTR ValueName, - IN ULONG ValueType, - IN PVOID ValueData, - IN ULONG ValueLength); + /*IN*/ ULONG RelativeTo, + /*IN*/ PCWSTR Path, + /*IN*/ PCWSTR ValueName, + /*IN*/ ULONG ValueType, + /*IN*/ PVOID ValueData, + /*IN*/ ULONG ValueLength); NTOSAPI ULONG DDKAPI RtlxUnicodeStringToAnsiSize( - IN PUNICODE_STRING UnicodeString); + /*IN*/ PUNICODE_STRING UnicodeString); /* * VOID * RtlZeroMemory( - * IN VOID UNALIGNED *Destination, - * IN SIZE_T Length) + * IN VOID UNALIGNED *Destination, + * IN SIZE_T Length) */ #ifndef RtlZeroMemory #define RtlZeroMemory(Destination, Length) \ @@ -5055,58 +5060,58 @@ NTOSAPI VOID DDKFASTAPI ExAcquireFastMutex( - IN PFAST_MUTEX FastMutex); + /*IN*/ PFAST_MUTEX FastMutex); NTOSAPI VOID DDKFASTAPI ExAcquireFastMutexUnsafe( - IN PFAST_MUTEX FastMutex); + /*IN*/ PFAST_MUTEX FastMutex); NTOSAPI BOOLEAN DDKAPI ExAcquireResourceExclusiveLite( - IN PERESOURCE Resource, - IN BOOLEAN Wait); + /*IN*/ PERESOURCE Resource, + /*IN*/ BOOLEAN Wait); NTOSAPI BOOLEAN DDKAPI ExAcquireResourceSharedLite( - IN PERESOURCE Resource, - IN BOOLEAN Wait); + /*IN*/ PERESOURCE Resource, + /*IN*/ BOOLEAN Wait); NTOSAPI BOOLEAN DDKAPI ExAcquireSharedStarveExclusive( - IN PERESOURCE Resource, - IN BOOLEAN Wait); + /*IN*/ PERESOURCE Resource, + /*IN*/ BOOLEAN Wait); NTOSAPI BOOLEAN DDKAPI ExAcquireSharedWaitForExclusive( - IN PERESOURCE Resource, - IN BOOLEAN Wait); + /*IN*/ PERESOURCE Resource, + /*IN*/ BOOLEAN Wait); NTOSAPI PSINGLE_LIST_ENTRY DDKFASTAPI ExInterlockedPopEntrySList( - IN PSLIST_HEADER ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PSLIST_HEADER ListHead, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKFASTAPI ExInterlockedPushEntrySList( - IN PSLIST_HEADER ListHead, - IN PSINGLE_LIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PSLIST_HEADER ListHead, + /*IN*/ PSINGLE_LIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); #if (__USE_NTOSKRNL__) && (_WIN32_WINNT >= 0x0501) @@ -5124,7 +5129,7 @@ ExInterlockedPushEntrySList( static __inline PVOID ExAllocateFromNPagedLookasideList( - IN PNPAGED_LOOKASIDE_LIST Lookaside) + /*IN*/ PNPAGED_LOOKASIDE_LIST Lookaside) { PVOID Entry; @@ -5142,8 +5147,8 @@ ExAllocateFromNPagedLookasideList( static __inline VOID ExFreeToNPagedLookasideList( - IN PNPAGED_LOOKASIDE_LIST Lookaside, - IN PVOID Entry) + /*IN*/ PNPAGED_LOOKASIDE_LIST Lookaside, + /*IN*/ PVOID Entry) { Lookaside->TotalFrees++; if (ExQueryDepthSList(&Lookaside->ListHead) >= Lookaside->Depth) { @@ -5160,7 +5165,7 @@ ExFreeToNPagedLookasideList( static __inline PVOID ExAllocateFromPagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside) + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside) { PVOID Entry; @@ -5177,8 +5182,8 @@ ExAllocateFromPagedLookasideList( static __inline VOID ExFreeToPagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside, - IN PVOID Entry) + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside, + /*IN*/ PVOID Entry) { Lookaside->TotalFrees++; if (ExQueryDepthSList(&Lookaside->ListHead) >= Lookaside->Depth) { @@ -5196,14 +5201,14 @@ NTOSAPI PVOID DDKAPI ExAllocateFromPagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside); + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside); NTOSAPI VOID DDKAPI ExFreeToPagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside, - IN PVOID Entry); + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside, + /*IN*/ PVOID Entry); #endif /* (__USE_NTOSKRNL__) && (_WIN32_WINNT >= 0x0501) */ @@ -5211,17 +5216,17 @@ NTOSAPI PVOID DDKAPI ExAllocatePoolWithQuotaTag( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes, - IN ULONG Tag); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG Tag); NTOSAPI PVOID DDKAPI ExAllocatePoolWithTag( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes, - IN ULONG Tag); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG Tag); #ifdef POOL_TAGGING @@ -5234,15 +5239,15 @@ NTOSAPI PVOID DDKAPI ExAllocatePool( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes); NTOSAPI PVOID DDKAPI ExAllocatePoolWithQuota( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes); #endif /* POOL_TAGGING */ @@ -5250,49 +5255,49 @@ NTOSAPI PVOID DDKAPI ExAllocatePoolWithTagPriority( - IN POOL_TYPE PoolType, - IN SIZE_T NumberOfBytes, - IN ULONG Tag, - IN EX_POOL_PRIORITY Priority); + /*IN*/ POOL_TYPE PoolType, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG Tag, + /*IN*/ EX_POOL_PRIORITY Priority); NTOSAPI VOID DDKAPI ExConvertExclusiveToSharedLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI NTSTATUS DDKAPI ExCreateCallback( - OUT PCALLBACK_OBJECT *CallbackObject, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN Create, - IN BOOLEAN AllowMultipleCallbacks); + /*OUT*/ PCALLBACK_OBJECT *CallbackObject, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN Create, + /*IN*/ BOOLEAN AllowMultipleCallbacks); NTOSAPI VOID DDKAPI ExDeleteNPagedLookasideList( - IN PNPAGED_LOOKASIDE_LIST Lookaside); + /*IN*/ PNPAGED_LOOKASIDE_LIST Lookaside); NTOSAPI VOID DDKAPI ExDeletePagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside); + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside); NTOSAPI NTSTATUS DDKAPI ExDeleteResourceLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKAPI ExFreePool( - IN PVOID P); + /*IN*/ PVOID P); #define PROTECTED_POOL 0x80000000 @@ -5304,8 +5309,8 @@ NTOSAPI VOID DDKAPI ExFreePoolWithTag( - IN PVOID P, - IN ULONG Tag); + /*IN*/ PVOID P, + /*IN*/ ULONG Tag); /* * ERESOURCE_THREAD @@ -5318,7 +5323,7 @@ NTOSAPI ULONG DDKAPI ExGetExclusiveWaiterCount( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI KPROCESSOR_MODE @@ -5330,20 +5335,20 @@ NTOSAPI ULONG DDKAPI ExGetSharedWaiterCount( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKAPI KeInitializeEvent( - IN PRKEVENT Event, - IN EVENT_TYPE Type, - IN BOOLEAN State); + /*IN*/ PRKEVENT Event, + /*IN*/ EVENT_TYPE Type, + /*IN*/ BOOLEAN State); /* * VOID DDKAPI * ExInitializeFastMutex( - * IN PFAST_MUTEX FastMutex) + * IN PFAST_MUTEX FastMutex) */ #define ExInitializeFastMutex(_FastMutex) \ { \ @@ -5357,36 +5362,36 @@ NTOSAPI VOID DDKAPI ExInitializeNPagedLookasideList( - IN PNPAGED_LOOKASIDE_LIST Lookaside, - IN PALLOCATE_FUNCTION Allocate OPTIONAL, - IN PFREE_FUNCTION Free OPTIONAL, - IN ULONG Flags, - IN SIZE_T Size, - IN ULONG Tag, - IN USHORT Depth); + /*IN*/ PNPAGED_LOOKASIDE_LIST Lookaside, + /*IN*/ PALLOCATE_FUNCTION Allocate /*OPTIONAL*/, + /*IN*/ PFREE_FUNCTION Free /*OPTIONAL*/, + /*IN*/ ULONG Flags, + /*IN*/ SIZE_T Size, + /*IN*/ ULONG Tag, + /*IN*/ USHORT Depth); NTOSAPI VOID DDKAPI ExInitializePagedLookasideList( - IN PPAGED_LOOKASIDE_LIST Lookaside, - IN PALLOCATE_FUNCTION Allocate OPTIONAL, - IN PFREE_FUNCTION Free OPTIONAL, - IN ULONG Flags, - IN SIZE_T Size, - IN ULONG Tag, - IN USHORT Depth); + /*IN*/ PPAGED_LOOKASIDE_LIST Lookaside, + /*IN*/ PALLOCATE_FUNCTION Allocate /*OPTIONAL*/, + /*IN*/ PFREE_FUNCTION Free /*OPTIONAL*/, + /*IN*/ ULONG Flags, + /*IN*/ SIZE_T Size, + /*IN*/ ULONG Tag, + /*IN*/ USHORT Depth); NTOSAPI NTSTATUS DDKAPI ExInitializeResourceLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); /* * VOID * InitializeSListHead( - * IN PSLIST_HEADER SListHead) + * IN PSLIST_HEADER SListHead) */ #define InitializeSListHead(_SListHead) \ (_SListHead)->Alignment = 0 @@ -5397,31 +5402,31 @@ NTOSAPI LARGE_INTEGER DDKAPI ExInterlockedAddLargeInteger( - IN PLARGE_INTEGER Addend, - IN LARGE_INTEGER Increment, - IN PKSPIN_LOCK Lock); + /*IN*/ PLARGE_INTEGER Addend, + /*IN*/ LARGE_INTEGER Increment, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI VOID DDKFASTAPI ExInterlockedAddLargeStatistic( - IN PLARGE_INTEGER Addend, - IN ULONG Increment); + /*IN*/ PLARGE_INTEGER Addend, + /*IN*/ ULONG Increment); NTOSAPI ULONG DDKAPI ExInterlockedAddUlong( - IN PULONG Addend, - IN ULONG Increment, + /*IN*/ PULONG Addend, + /*IN*/ ULONG Increment, PKSPIN_LOCK Lock); NTOSAPI ULONG DDKFASTAPI ExfInterlockedAddUlong( - IN PULONG Addend, - IN ULONG Increment, + /*IN*/ PULONG Addend, + /*IN*/ ULONG Increment, PKSPIN_LOCK Lock); @@ -5429,134 +5434,134 @@ NTOSAPI LONGLONG DDKFASTAPI ExInterlockedCompareExchange64( - IN OUT PLONGLONG Destination, - IN PLONGLONG Exchange, - IN PLONGLONG Comparand, - IN PKSPIN_LOCK Lock); + /*IN OUT*/ PLONGLONG Destination, + /*IN*/ PLONGLONG Exchange, + /*IN*/ PLONGLONG Comparand, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKFASTAPI ExInterlockedFlushSList( - IN PSLIST_HEADER ListHead); + /*IN*/ PSLIST_HEADER ListHead); NTOSAPI PLIST_ENTRY DDKAPI ExInterlockedInsertHeadList( - IN PLIST_ENTRY ListHead, - IN PLIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PLIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PLIST_ENTRY DDKFASTAPI ExfInterlockedInsertHeadList( - IN PLIST_ENTRY ListHead, - IN PLIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PLIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PLIST_ENTRY DDKAPI ExInterlockedInsertTailList( - IN PLIST_ENTRY ListHead, - IN PLIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PLIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PLIST_ENTRY DDKFASTAPI ExfInterlockedInsertTailList( - IN PLIST_ENTRY ListHead, - IN PLIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PLIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKAPI ExInterlockedPopEntryList( - IN PSINGLE_LIST_ENTRY ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PSINGLE_LIST_ENTRY ListHead, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKFASTAPI ExfInterlockedPopEntryList( - IN PSINGLE_LIST_ENTRY ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PSINGLE_LIST_ENTRY ListHead, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKAPI ExInterlockedPushEntryList( - IN PSINGLE_LIST_ENTRY ListHead, - IN PSINGLE_LIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PSINGLE_LIST_ENTRY ListHead, + /*IN*/ PSINGLE_LIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PSINGLE_LIST_ENTRY DDKFASTAPI ExfInterlockedPushEntryList( - IN PSINGLE_LIST_ENTRY ListHead, - IN PSINGLE_LIST_ENTRY ListEntry, - IN PKSPIN_LOCK Lock); + /*IN*/ PSINGLE_LIST_ENTRY ListHead, + /*IN*/ PSINGLE_LIST_ENTRY ListEntry, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PLIST_ENTRY DDKAPI ExInterlockedRemoveHeadList( - IN PLIST_ENTRY ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI PLIST_ENTRY DDKFASTAPI ExfInterlockedRemoveHeadList( - IN PLIST_ENTRY ListHead, - IN PKSPIN_LOCK Lock); + /*IN*/ PLIST_ENTRY ListHead, + /*IN*/ PKSPIN_LOCK Lock); NTOSAPI BOOLEAN DDKAPI ExIsProcessorFeaturePresent( - IN ULONG ProcessorFeature); + /*IN*/ ULONG ProcessorFeature); NTOSAPI BOOLEAN DDKAPI ExIsResourceAcquiredExclusiveLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI USHORT DDKAPI ExIsResourceAcquiredLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI USHORT DDKAPI ExIsResourceAcquiredSharedLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKAPI ExLocalTimeToSystemTime( - IN PLARGE_INTEGER LocalTime, - OUT PLARGE_INTEGER SystemTime); + /*IN*/ PLARGE_INTEGER LocalTime, + /*OUT*/ PLARGE_INTEGER SystemTime); NTOSAPI VOID DDKAPI ExNotifyCallback( - IN PCALLBACK_OBJECT CallbackObject, - IN PVOID Argument1, - IN PVOID Argument2); + /*IN*/ PCALLBACK_OBJECT CallbackObject, + /*IN*/ PVOID Argument1, + /*IN*/ PVOID Argument2); NTOSAPI VOID @@ -5574,97 +5579,97 @@ NTOSAPI VOID DDKAPI ExRaiseStatus( - IN NTSTATUS Status); + /*IN*/ NTSTATUS Status); NTOSAPI PVOID DDKAPI ExRegisterCallback( - IN PCALLBACK_OBJECT CallbackObject, - IN PCALLBACK_FUNCTION CallbackFunction, - IN PVOID CallbackContext); + /*IN*/ PCALLBACK_OBJECT CallbackObject, + /*IN*/ PCALLBACK_FUNCTION CallbackFunction, + /*IN*/ PVOID CallbackContext); NTOSAPI VOID DDKAPI ExReinitializeResourceLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKFASTAPI ExReleaseFastMutex( - IN PFAST_MUTEX FastMutex); + /*IN*/ PFAST_MUTEX FastMutex); NTOSAPI VOID DDKFASTAPI ExReleaseFastMutexUnsafe( - IN PFAST_MUTEX FastMutex); + /*IN*/ PFAST_MUTEX FastMutex); NTOSAPI VOID DDKAPI ExReleaseResourceForThreadLite( - IN PERESOURCE Resource, - IN ERESOURCE_THREAD ResourceThreadId); + /*IN*/ PERESOURCE Resource, + /*IN*/ ERESOURCE_THREAD ResourceThreadId); NTOSAPI VOID DDKFASTAPI ExReleaseResourceLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKAPI ExSetResourceOwnerPointer( - IN PERESOURCE Resource, - IN PVOID OwnerPointer); + /*IN*/ PERESOURCE Resource, + /*IN*/ PVOID OwnerPointer); NTOSAPI ULONG DDKAPI ExSetTimerResolution( - IN ULONG DesiredTime, - IN BOOLEAN SetResolution); + /*IN*/ ULONG DesiredTime, + /*IN*/ BOOLEAN SetResolution); NTOSAPI VOID DDKAPI ExSystemTimeToLocalTime( - IN PLARGE_INTEGER SystemTime, - OUT PLARGE_INTEGER LocalTime); + /*IN*/ PLARGE_INTEGER SystemTime, + /*OUT*/ PLARGE_INTEGER LocalTime); NTOSAPI BOOLEAN DDKFASTAPI ExTryToAcquireFastMutex( - IN PFAST_MUTEX FastMutex); + /*IN*/ PFAST_MUTEX FastMutex); NTOSAPI BOOLEAN DDKAPI ExTryToAcquireResourceExclusiveLite( - IN PERESOURCE Resource); + /*IN*/ PERESOURCE Resource); NTOSAPI VOID DDKAPI ExUnregisterCallback( - IN PVOID CbRegistration); + /*IN*/ PVOID CbRegistration); NTOSAPI NTSTATUS DDKAPI ExUuidCreate( - OUT UUID *Uuid); + /*OUT*/ UUID *Uuid); NTOSAPI BOOLEAN DDKAPI ExVerifySuite( - IN SUITE_TYPE SuiteType); + /*IN*/ SUITE_TYPE SuiteType); #ifdef DBG @@ -5685,17 +5690,17 @@ NTOSAPI VOID DDKAPI ProbeForRead( - IN CONST VOID *Address, - IN ULONG Length, - IN ULONG Alignment); + /*IN*/ CONST VOID *Address, + /*IN*/ ULONG Length, + /*IN*/ ULONG Alignment); NTOSAPI VOID DDKAPI ProbeForWrite( - IN CONST VOID *Address, - IN ULONG Length, - IN ULONG Alignment); + /*IN*/ CONST VOID *Address, + /*IN*/ ULONG Length, + /*IN*/ ULONG Alignment); @@ -5705,15 +5710,15 @@ NTOSAPI NTSTATUS DDKAPI CmRegisterCallback( - IN PEX_CALLBACK_FUNCTION Function, - IN PVOID Context, - IN OUT PLARGE_INTEGER Cookie); + /*IN*/ PEX_CALLBACK_FUNCTION Function, + /*IN*/ PVOID Context, + /*IN OUT*/ PLARGE_INTEGER Cookie); NTOSAPI NTSTATUS DDKAPI CmUnRegisterCallback( - IN LARGE_INTEGER Cookie); + /*IN*/ LARGE_INTEGER Cookie); @@ -5723,7 +5728,7 @@ NTOSAPI BOOLEAN DDKAPI FsRtlIsTotalDeviceFailure( - IN NTSTATUS Status); + /*IN*/ NTSTATUS Status); @@ -5733,184 +5738,184 @@ NTOSAPI VOID DDKFASTAPI HalExamineMBR( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG SectorSize, - IN ULONG MBRTypeIdentifier, - OUT PVOID Buffer); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG SectorSize, + /*IN*/ ULONG MBRTypeIdentifier, + /*OUT*/ PVOID Buffer); NTOSAPI VOID DDKAPI READ_PORT_BUFFER_UCHAR( - IN PUCHAR Port, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Port, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI READ_PORT_BUFFER_ULONG( - IN PULONG Port, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Port, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI READ_PORT_BUFFER_USHORT( - IN PUSHORT Port, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Port, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); NTOSAPI UCHAR DDKAPI READ_PORT_UCHAR( - IN PUCHAR Port); + /*IN*/ PUCHAR Port); NTOSAPI ULONG DDKAPI READ_PORT_ULONG( - IN PULONG Port); + /*IN*/ PULONG Port); NTOSAPI USHORT DDKAPI READ_PORT_USHORT( - IN PUSHORT Port); + /*IN*/ PUSHORT Port); NTOSAPI VOID DDKAPI READ_REGISTER_BUFFER_UCHAR( - IN PUCHAR Register, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Register, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI READ_REGISTER_BUFFER_ULONG( - IN PULONG Register, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Register, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI READ_REGISTER_BUFFER_USHORT( - IN PUSHORT Register, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Register, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); NTOSAPI UCHAR DDKAPI READ_REGISTER_UCHAR( - IN PUCHAR Register); + /*IN*/ PUCHAR Register); NTOSAPI ULONG DDKAPI READ_REGISTER_ULONG( - IN PULONG Register); + /*IN*/ PULONG Register); NTOSAPI USHORT DDKAPI READ_REGISTER_USHORT( - IN PUSHORT Register); + /*IN*/ PUSHORT Register); NTOSAPI VOID DDKAPI WRITE_PORT_BUFFER_UCHAR( - IN PUCHAR Port, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Port, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_PORT_BUFFER_ULONG( - IN PULONG Port, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Port, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_PORT_BUFFER_USHORT( - IN PUSHORT Port, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Port, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_PORT_UCHAR( - IN PUCHAR Port, - IN UCHAR Value); + /*IN*/ PUCHAR Port, + /*IN*/ UCHAR Value); NTOSAPI VOID DDKAPI WRITE_PORT_ULONG( - IN PULONG Port, - IN ULONG Value); + /*IN*/ PULONG Port, + /*IN*/ ULONG Value); NTOSAPI VOID DDKAPI WRITE_PORT_USHORT( - IN PUSHORT Port, - IN USHORT Value); + /*IN*/ PUSHORT Port, + /*IN*/ USHORT Value); NTOSAPI VOID DDKAPI WRITE_REGISTER_BUFFER_UCHAR( - IN PUCHAR Register, - IN PUCHAR Buffer, - IN ULONG Count); + /*IN*/ PUCHAR Register, + /*IN*/ PUCHAR Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_REGISTER_BUFFER_ULONG( - IN PULONG Register, - IN PULONG Buffer, - IN ULONG Count); + /*IN*/ PULONG Register, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_REGISTER_BUFFER_USHORT( - IN PUSHORT Register, - IN PUSHORT Buffer, - IN ULONG Count); + /*IN*/ PUSHORT Register, + /*IN*/ PUSHORT Buffer, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI WRITE_REGISTER_UCHAR( - IN PUCHAR Register, - IN UCHAR Value); + /*IN*/ PUCHAR Register, + /*IN*/ UCHAR Value); NTOSAPI VOID DDKAPI WRITE_REGISTER_ULONG( - IN PULONG Register, - IN ULONG Value); + /*IN*/ PULONG Register, + /*IN*/ ULONG Value); NTOSAPI VOID DDKAPI WRITE_REGISTER_USHORT( - IN PUSHORT Register, - IN USHORT Value); + /*IN*/ PUSHORT Register, + /*IN*/ USHORT Value); /** I/O manager routines **/ @@ -5918,23 +5923,23 @@ NTOSAPI VOID DDKAPI IoAcquireCancelSpinLock( - OUT PKIRQL Irql); + /*OUT*/ PKIRQL Irql); NTOSAPI NTSTATUS DDKAPI IoAcquireRemoveLockEx( - IN PIO_REMOVE_LOCK RemoveLock, - IN OPTIONAL PVOID Tag OPTIONAL, - IN PCSTR File, - IN ULONG Line, - IN ULONG RemlockSize); + /*IN*/ PIO_REMOVE_LOCK RemoveLock, + /*IN*/ PVOID Tag /*OPTIONAL*/, + /*IN*/ PCSTR File, + /*IN*/ ULONG Line, + /*IN*/ ULONG RemlockSize); /* * NTSTATUS * IoAcquireRemoveLock( - * IN PIO_REMOVE_LOCK RemoveLock, - * IN OPTIONAL PVOID Tag) + * IN PIO_REMOVE_LOCK RemoveLock, + * IN PVOID Tag OPTIONAL) */ #define IoAcquireRemoveLock(_RemoveLock, \ _Tag) \ @@ -5943,8 +5948,8 @@ IoAcquireRemoveLockEx( /* * VOID * IoAdjustPagingPathCount( - * IN PLONG Count, - * IN BOOLEAN Increment) + * IN PLONG Count, + * IN BOOLEAN Increment) */ #define IoAdjustPagingPathCount(_Count, \ _Increment) \ @@ -5963,19 +5968,19 @@ NTOSAPI VOID DDKAPI IoAllocateController( - IN PCONTROLLER_OBJECT ControllerObject, - IN PDEVICE_OBJECT DeviceObject, - IN PDRIVER_CONTROL ExecutionRoutine, - IN PVOID Context); + /*IN*/ PCONTROLLER_OBJECT ControllerObject, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PDRIVER_CONTROL ExecutionRoutine, + /*IN*/ PVOID Context); NTOSAPI NTSTATUS DDKAPI IoAllocateDriverObjectExtension( - IN PDRIVER_OBJECT DriverObject, - IN PVOID ClientIdentificationAddress, - IN ULONG DriverObjectExtensionSize, - OUT PVOID *DriverObjectExtension); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PVOID ClientIdentificationAddress, + /*IN*/ ULONG DriverObjectExtensionSize, + /*OUT*/ PVOID *DriverObjectExtension); typedef struct _IO_ERROR_LOG_PACKET { UCHAR MajorFunctionCode; @@ -5997,36 +6002,36 @@ NTOSAPI PVOID DDKAPI IoAllocateErrorLogEntry( - IN PVOID IoObject, - IN UCHAR EntrySize); + /*IN*/ PVOID IoObject, + /*IN*/ UCHAR EntrySize); NTOSAPI PIRP DDKAPI IoAllocateIrp( - IN CCHAR StackSize, - IN BOOLEAN ChargeQuota); + /*IN*/ CCHAR StackSize, + /*IN*/ BOOLEAN ChargeQuota); NTOSAPI PMDL DDKAPI IoAllocateMdl( - IN PVOID VirtualAddress, - IN ULONG Length, - IN BOOLEAN SecondaryBuffer, - IN BOOLEAN ChargeQuota, - IN OUT PIRP Irp OPTIONAL); + /*IN*/ PVOID VirtualAddress, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN SecondaryBuffer, + /*IN*/ BOOLEAN ChargeQuota, + /*IN OUT*/ PIRP Irp /*OPTIONAL*/); NTOSAPI PIO_WORKITEM DDKAPI IoAllocateWorkItem( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); /* * VOID IoAssignArcName( - * IN PUNICODE_STRING ArcName, - * IN PUNICODE_STRING DeviceName); + * IN PUNICODE_STRING ArcName, + * IN PUNICODE_STRING DeviceName); */ #define IoAssignArcName(_ArcName, _DeviceName) ( \ IoCreateSymbolicLink((_ArcName), (_DeviceName))) @@ -6035,75 +6040,75 @@ NTOSAPI NTSTATUS DDKAPI IoAttachDevice( - IN PDEVICE_OBJECT SourceDevice, - IN PUNICODE_STRING TargetDevice, - OUT PDEVICE_OBJECT *AttachedDevice); + /*IN*/ PDEVICE_OBJECT SourceDevice, + /*IN*/ PUNICODE_STRING TargetDevice, + /*OUT*/ PDEVICE_OBJECT *AttachedDevice); NTOSAPI PDEVICE_OBJECT DDKAPI IoAttachDeviceToDeviceStack( - IN PDEVICE_OBJECT SourceDevice, - IN PDEVICE_OBJECT TargetDevice); + /*IN*/ PDEVICE_OBJECT SourceDevice, + /*IN*/ PDEVICE_OBJECT TargetDevice); NTOSAPI PIRP DDKAPI IoBuildAsynchronousFsdRequest( - IN ULONG MajorFunction, - IN PDEVICE_OBJECT DeviceObject, - IN OUT PVOID Buffer OPTIONAL, - IN ULONG Length OPTIONAL, - IN PLARGE_INTEGER StartingOffset OPTIONAL, - IN PIO_STATUS_BLOCK IoStatusBlock OPTIONAL); + /*IN*/ ULONG MajorFunction, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN OUT*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ ULONG Length /*OPTIONAL*/, + /*IN*/ PLARGE_INTEGER StartingOffset /*OPTIONAL*/, + /*IN*/ PIO_STATUS_BLOCK IoStatusBlock /*OPTIONAL*/); NTOSAPI PIRP DDKAPI IoBuildDeviceIoControlRequest( - IN ULONG IoControlCode, - IN PDEVICE_OBJECT DeviceObject, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength, - IN BOOLEAN InternalDeviceIoControl, - IN PKEVENT Event, - OUT PIO_STATUS_BLOCK IoStatusBlock); + /*IN*/ ULONG IoControlCode, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength, + /*IN*/ BOOLEAN InternalDeviceIoControl, + /*IN*/ PKEVENT Event, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); NTOSAPI VOID DDKAPI IoBuildPartialMdl( - IN PMDL SourceMdl, - IN OUT PMDL TargetMdl, - IN PVOID VirtualAddress, - IN ULONG Length); + /*IN*/ PMDL SourceMdl, + /*IN OUT*/ PMDL TargetMdl, + /*IN*/ PVOID VirtualAddress, + /*IN*/ ULONG Length); NTOSAPI PIRP DDKAPI IoBuildSynchronousFsdRequest( - IN ULONG MajorFunction, - IN PDEVICE_OBJECT DeviceObject, - IN OUT PVOID Buffer OPTIONAL, - IN ULONG Length OPTIONAL, - IN PLARGE_INTEGER StartingOffset OPTIONAL, - IN PKEVENT Event, - OUT PIO_STATUS_BLOCK IoStatusBlock); + /*IN*/ ULONG MajorFunction, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN OUT*/ PVOID Buffer /*OPTIONAL*/, + /*IN*/ ULONG Length /*OPTIONAL*/, + /*IN*/ PLARGE_INTEGER StartingOffset /*OPTIONAL*/, + /*IN*/ PKEVENT Event, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); NTOSAPI NTSTATUS DDKFASTAPI IofCallDriver( - IN PDEVICE_OBJECT DeviceObject, - IN OUT PIRP Irp); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN OUT*/ PIRP Irp); /* * NTSTATUS * IoCallDriver( - * IN PDEVICE_OBJECT DeviceObject, - * IN OUT PIRP Irp) + * IN PDEVICE_OBJECT DeviceObject, + * IN OUT PIRP Irp) */ #define IoCallDriver IofCallDriver @@ -6111,37 +6116,37 @@ NTOSAPI VOID DDKAPI IoCancelFileOpen( - IN PDEVICE_OBJECT DeviceObject, - IN PFILE_OBJECT FileObject); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PFILE_OBJECT FileObject); NTOSAPI BOOLEAN DDKAPI IoCancelIrp( - IN PIRP Irp); + /*IN*/ PIRP Irp); NTOSAPI NTSTATUS DDKAPI IoCheckShareAccess( - IN ACCESS_MASK DesiredAccess, - IN ULONG DesiredShareAccess, - IN OUT PFILE_OBJECT FileObject, - IN OUT PSHARE_ACCESS ShareAccess, - IN BOOLEAN Update); + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG DesiredShareAccess, + /*IN OUT*/ PFILE_OBJECT FileObject, + /*IN OUT*/ PSHARE_ACCESS ShareAccess, + /*IN*/ BOOLEAN Update); NTOSAPI VOID DDKFASTAPI IofCompleteRequest( - IN PIRP Irp, - IN CCHAR PriorityBoost); + /*IN*/ PIRP Irp, + /*IN*/ CCHAR PriorityBoost); /* * VOID * IoCompleteRequest( - * IN PIRP Irp, - * IN CCHAR PriorityBoost) + * IN PIRP Irp, + * IN CCHAR PriorityBoost) */ #define IoCompleteRequest IofCompleteRequest @@ -6149,22 +6154,22 @@ NTOSAPI NTSTATUS DDKAPI IoConnectInterrupt( - OUT PKINTERRUPT *InterruptObject, - IN PKSERVICE_ROUTINE ServiceRoutine, - IN PVOID ServiceContext, - IN PKSPIN_LOCK SpinLock OPTIONAL, - IN ULONG Vector, - IN KIRQL Irql, - IN KIRQL SynchronizeIrql, - IN KINTERRUPT_MODE InterruptMode, - IN BOOLEAN ShareVector, - IN KAFFINITY ProcessorEnableMask, - IN BOOLEAN FloatingSave); + /*OUT*/ PKINTERRUPT *InterruptObject, + /*IN*/ PKSERVICE_ROUTINE ServiceRoutine, + /*IN*/ PVOID ServiceContext, + /*IN*/ PKSPIN_LOCK SpinLock /*OPTIONAL*/, + /*IN*/ ULONG Vector, + /*IN*/ KIRQL Irql, + /*IN*/ KIRQL SynchronizeIrql, + /*IN*/ KINTERRUPT_MODE InterruptMode, + /*IN*/ BOOLEAN ShareVector, + /*IN*/ KAFFINITY ProcessorEnableMask, + /*IN*/ BOOLEAN FloatingSave); /* * PIO_STACK_LOCATION * IoGetCurrentIrpStackLocation( - * IN PIRP Irp) + * IN PIRP Irp) */ #define IoGetCurrentIrpStackLocation(_Irp) \ ((_Irp)->Tail.Overlay.CurrentStackLocation) @@ -6172,7 +6177,7 @@ IoConnectInterrupt( /* * PIO_STACK_LOCATION * IoGetNextIrpStackLocation( - * IN PIRP Irp) + * IN PIRP Irp) */ #define IoGetNextIrpStackLocation(_Irp) \ ((_Irp)->Tail.Overlay.CurrentStackLocation - 1) @@ -6180,7 +6185,7 @@ IoConnectInterrupt( /* * VOID * IoCopyCurrentIrpStackLocationToNext( - * IN PIRP Irp) + * IN PIRP Irp) */ #define IoCopyCurrentIrpStackLocationToNext(_Irp) \ { \ @@ -6197,130 +6202,130 @@ NTOSAPI PCONTROLLER_OBJECT DDKAPI IoCreateController( - IN ULONG Size); + /*IN*/ ULONG Size); NTOSAPI NTSTATUS DDKAPI IoCreateDevice( - IN PDRIVER_OBJECT DriverObject, - IN ULONG DeviceExtensionSize, - IN PUNICODE_STRING DeviceName OPTIONAL, - IN DEVICE_TYPE DeviceType, - IN ULONG DeviceCharacteristics, - IN BOOLEAN Exclusive, - OUT PDEVICE_OBJECT *DeviceObject); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ ULONG DeviceExtensionSize, + /*IN*/ PUNICODE_STRING DeviceName /*OPTIONAL*/, + /*IN*/ DEVICE_TYPE DeviceType, + /*IN*/ ULONG DeviceCharacteristics, + /*IN*/ BOOLEAN Exclusive, + /*OUT*/ PDEVICE_OBJECT *DeviceObject); NTOSAPI NTSTATUS DDKAPI IoCreateDisk( - IN PDEVICE_OBJECT DeviceObject, - IN PCREATE_DISK Disk); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PCREATE_DISK Disk); NTOSAPI NTSTATUS DDKAPI IoCreateFile( - OUT PHANDLE FileHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PLARGE_INTEGER AllocationSize OPTIONAL, - IN ULONG FileAttributes, - IN ULONG ShareAccess, - IN ULONG Disposition, - IN ULONG CreateOptions, - IN PVOID EaBuffer OPTIONAL, - IN ULONG EaLength, - IN CREATE_FILE_TYPE CreateFileType, - IN PVOID ExtraCreateParameters OPTIONAL, - IN ULONG Options); + /*OUT*/ PHANDLE FileHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PLARGE_INTEGER AllocationSize /*OPTIONAL*/, + /*IN*/ ULONG FileAttributes, + /*IN*/ ULONG ShareAccess, + /*IN*/ ULONG Disposition, + /*IN*/ ULONG CreateOptions, + /*IN*/ PVOID EaBuffer /*OPTIONAL*/, + /*IN*/ ULONG EaLength, + /*IN*/ CREATE_FILE_TYPE CreateFileType, + /*IN*/ PVOID ExtraCreateParameters /*OPTIONAL*/, + /*IN*/ ULONG Options); NTOSAPI PKEVENT DDKAPI IoCreateNotificationEvent( - IN PUNICODE_STRING EventName, - OUT PHANDLE EventHandle); + /*IN*/ PUNICODE_STRING EventName, + /*OUT*/ PHANDLE EventHandle); NTOSAPI NTSTATUS DDKAPI IoCreateSymbolicLink( - IN PUNICODE_STRING SymbolicLinkName, - IN PUNICODE_STRING DeviceName); + /*IN*/ PUNICODE_STRING SymbolicLinkName, + /*IN*/ PUNICODE_STRING DeviceName); NTOSAPI PKEVENT DDKAPI IoCreateSynchronizationEvent( - IN PUNICODE_STRING EventName, - OUT PHANDLE EventHandle); + /*IN*/ PUNICODE_STRING EventName, + /*OUT*/ PHANDLE EventHandle); NTOSAPI NTSTATUS DDKAPI IoCreateUnprotectedSymbolicLink( - IN PUNICODE_STRING SymbolicLinkName, - IN PUNICODE_STRING DeviceName); + /*IN*/ PUNICODE_STRING SymbolicLinkName, + /*IN*/ PUNICODE_STRING DeviceName); NTOSAPI VOID DDKAPI IoCsqInitialize( PIO_CSQ Csq, - IN PIO_CSQ_INSERT_IRP CsqInsertIrp, - IN PIO_CSQ_REMOVE_IRP CsqRemoveIrp, - IN PIO_CSQ_PEEK_NEXT_IRP CsqPeekNextIrp, - IN PIO_CSQ_ACQUIRE_LOCK CsqAcquireLock, - IN PIO_CSQ_RELEASE_LOCK CsqReleaseLock, - IN PIO_CSQ_COMPLETE_CANCELED_IRP CsqCompleteCanceledIrp); + /*IN*/ PIO_CSQ_INSERT_IRP CsqInsertIrp, + /*IN*/ PIO_CSQ_REMOVE_IRP CsqRemoveIrp, + /*IN*/ PIO_CSQ_PEEK_NEXT_IRP CsqPeekNextIrp, + /*IN*/ PIO_CSQ_ACQUIRE_LOCK CsqAcquireLock, + /*IN*/ PIO_CSQ_RELEASE_LOCK CsqReleaseLock, + /*IN*/ PIO_CSQ_COMPLETE_CANCELED_IRP CsqCompleteCanceledIrp); NTOSAPI VOID DDKAPI IoCsqInsertIrp( - IN PIO_CSQ Csq, - IN PIRP Irp, - IN PIO_CSQ_IRP_CONTEXT Context); + /*IN*/ PIO_CSQ Csq, + /*IN*/ PIRP Irp, + /*IN*/ PIO_CSQ_IRP_CONTEXT Context); NTOSAPI PIRP DDKAPI IoCsqRemoveIrp( - IN PIO_CSQ Csq, - IN PIO_CSQ_IRP_CONTEXT Context); + /*IN*/ PIO_CSQ Csq, + /*IN*/ PIO_CSQ_IRP_CONTEXT Context); NTOSAPI PIRP DDKAPI IoCsqRemoveNextIrp( - IN PIO_CSQ Csq, - IN PVOID PeekContext); + /*IN*/ PIO_CSQ Csq, + /*IN*/ PVOID PeekContext); NTOSAPI VOID DDKAPI IoDeleteController( - IN PCONTROLLER_OBJECT ControllerObject); + /*IN*/ PCONTROLLER_OBJECT ControllerObject); NTOSAPI VOID DDKAPI IoDeleteDevice( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI NTSTATUS DDKAPI IoDeleteSymbolicLink( - IN PUNICODE_STRING SymbolicLinkName); + /*IN*/ PUNICODE_STRING SymbolicLinkName); /* * VOID * IoDeassignArcName( - * IN PUNICODE_STRING ArcName) + * IN PUNICODE_STRING ArcName) */ #define IoDeassignArcName IoDeleteSymbolicLink @@ -6328,20 +6333,20 @@ NTOSAPI VOID DDKAPI IoDetachDevice( - IN OUT PDEVICE_OBJECT TargetDevice); + /*IN OUT*/ PDEVICE_OBJECT TargetDevice); NTOSAPI VOID DDKAPI IoDisconnectInterrupt( - IN PKINTERRUPT InterruptObject); + /*IN*/ PKINTERRUPT InterruptObject); NTOSAPI BOOLEAN DDKAPI IoForwardIrpSynchronously( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp); #define IoForwardAndCatchIrp IoForwardIrpSynchronously @@ -6349,7 +6354,7 @@ NTOSAPI VOID DDKAPI IoFreeController( - IN PCONTROLLER_OBJECT ControllerObject); + /*IN*/ PCONTROLLER_OBJECT ControllerObject); NTOSAPI VOID @@ -6361,38 +6366,38 @@ NTOSAPI VOID DDKAPI IoFreeIrp( - IN PIRP Irp); + /*IN*/ PIRP Irp); NTOSAPI VOID DDKAPI IoFreeMdl( - IN PMDL Mdl); + /*IN*/ PMDL Mdl); NTOSAPI VOID DDKAPI IoFreeWorkItem( - IN PIO_WORKITEM pIOWorkItem); + /*IN*/ PIO_WORKITEM pIOWorkItem); NTOSAPI PDEVICE_OBJECT DDKAPI IoGetAttachedDevice( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI PDEVICE_OBJECT DDKAPI IoGetAttachedDeviceReference( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI NTSTATUS DDKAPI IoGetBootDiskInformation( - IN OUT PBOOTDISK_INFORMATION BootDiskInformation, - IN ULONG Size); + /*IN OUT*/ PBOOTDISK_INFORMATION BootDiskInformation, + /*IN*/ ULONG Size); NTOSAPI PCONFIGURATION_INFORMATION @@ -6410,58 +6415,58 @@ NTOSAPI NTSTATUS DDKAPI IoGetDeviceInterfaceAlias( - IN PUNICODE_STRING SymbolicLinkName, - IN CONST GUID *AliasInterfaceClassGuid, - OUT PUNICODE_STRING AliasSymbolicLinkName); + /*IN*/ PUNICODE_STRING SymbolicLinkName, + /*IN*/ CONST GUID *AliasInterfaceClassGuid, + /*OUT*/ PUNICODE_STRING AliasSymbolicLinkName); NTOSAPI NTSTATUS DDKAPI IoGetDeviceInterfaces( - IN CONST GUID *InterfaceClassGuid, - IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL, - IN ULONG Flags, - OUT PWSTR *SymbolicLinkList); + /*IN*/ CONST GUID *InterfaceClassGuid, + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject /*OPTIONAL*/, + /*IN*/ ULONG Flags, + /*OUT*/ PWSTR *SymbolicLinkList); NTOSAPI NTSTATUS DDKAPI IoGetDeviceObjectPointer( - IN PUNICODE_STRING ObjectName, - IN ACCESS_MASK DesiredAccess, - OUT PFILE_OBJECT *FileObject, - OUT PDEVICE_OBJECT *DeviceObject); + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PFILE_OBJECT *FileObject, + /*OUT*/ PDEVICE_OBJECT *DeviceObject); NTOSAPI NTSTATUS DDKAPI IoGetDeviceProperty( - IN PDEVICE_OBJECT DeviceObject, - IN DEVICE_REGISTRY_PROPERTY DeviceProperty, - IN ULONG BufferLength, - OUT PVOID PropertyBuffer, - OUT PULONG ResultLength); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ DEVICE_REGISTRY_PROPERTY DeviceProperty, + /*IN*/ ULONG BufferLength, + /*OUT*/ PVOID PropertyBuffer, + /*OUT*/ PULONG ResultLength); NTOSAPI PDEVICE_OBJECT DDKAPI IoGetDeviceToVerify( - IN PETHREAD Thread); + /*IN*/ PETHREAD Thread); NTOSAPI PDMA_ADAPTER DDKAPI IoGetDmaAdapter( - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN PDEVICE_DESCRIPTION DeviceDescription, - IN OUT PULONG NumberOfMapRegisters); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject, + /*IN*/ PDEVICE_DESCRIPTION DeviceDescription, + /*IN OUT*/ PULONG NumberOfMapRegisters); NTOSAPI PVOID DDKAPI IoGetDriverObjectExtension( - IN PDRIVER_OBJECT DriverObject, - IN PVOID ClientIdentificationAddress); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PVOID ClientIdentificationAddress); NTOSAPI PGENERIC_MAPPING @@ -6472,7 +6477,7 @@ IoGetFileObjectGenericMapping( /* * ULONG * IoGetFunctionCodeFromCtlCode( - * IN ULONG ControlCode) + * IN ULONG ControlCode) */ #define IoGetFunctionCodeFromCtlCode(_ControlCode) \ (((_ControlCode) >> 2) & 0x00000FFF) @@ -6487,7 +6492,7 @@ NTOSAPI PDEVICE_OBJECT DDKAPI IoGetRelatedDeviceObject( - IN PFILE_OBJECT FileObject); + /*IN*/ PFILE_OBJECT FileObject); NTOSAPI ULONG @@ -6499,22 +6504,22 @@ NTOSAPI VOID DDKAPI IoGetStackLimits( - OUT PULONG_PTR LowLimit, - OUT PULONG_PTR HighLimit); + /*OUT*/ PULONG_PTR LowLimit, + /*OUT*/ PULONG_PTR HighLimit); NTOSAPI VOID DDKAPI KeInitializeDpc( - IN PRKDPC Dpc, - IN PKDEFERRED_ROUTINE DeferredRoutine, - IN PVOID DeferredContext); + /*IN*/ PRKDPC Dpc, + /*IN*/ PKDEFERRED_ROUTINE DeferredRoutine, + /*IN*/ PVOID DeferredContext); /* * VOID * IoInitializeDpcRequest( - * IN PDEVICE_OBJECT DeviceObject, - * IN PIO_DPC_ROUTINE DpcRoutine) + * IN PDEVICE_OBJECT DeviceObject, + * IN PIO_DPC_ROUTINE DpcRoutine) */ #define IoInitializeDpcRequest(_DeviceObject, \ _DpcRoutine) \ @@ -6526,26 +6531,26 @@ NTOSAPI VOID DDKAPI IoInitializeIrp( - IN OUT PIRP Irp, - IN USHORT PacketSize, - IN CCHAR StackSize); + /*IN OUT*/ PIRP Irp, + /*IN*/ USHORT PacketSize, + /*IN*/ CCHAR StackSize); NTOSAPI VOID DDKAPI IoInitializeRemoveLockEx( - IN PIO_REMOVE_LOCK Lock, - IN ULONG AllocateTag, - IN ULONG MaxLockedMinutes, - IN ULONG HighWatermark, - IN ULONG RemlockSize); + /*IN*/ PIO_REMOVE_LOCK Lock, + /*IN*/ ULONG AllocateTag, + /*IN*/ ULONG MaxLockedMinutes, + /*IN*/ ULONG HighWatermark, + /*IN*/ ULONG RemlockSize); /* VOID * IoInitializeRemoveLock( - * IN PIO_REMOVE_LOCK Lock, - * IN ULONG AllocateTag, - * IN ULONG MaxLockedMinutes, - * IN ULONG HighWatermark) + * IN PIO_REMOVE_LOCK Lock, + * IN ULONG AllocateTag, + * IN ULONG MaxLockedMinutes, + * IN ULONG HighWatermark) */ #define IoInitializeRemoveLock( \ Lock, AllocateTag, MaxLockedMinutes, HighWatermark) \ @@ -6556,33 +6561,33 @@ NTOSAPI NTSTATUS DDKAPI IoInitializeTimer( - IN PDEVICE_OBJECT DeviceObject, - IN PIO_TIMER_ROUTINE TimerRoutine, - IN PVOID Context); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIO_TIMER_ROUTINE TimerRoutine, + /*IN*/ PVOID Context); NTOSAPI VOID DDKAPI IoInvalidateDeviceRelations( - IN PDEVICE_OBJECT DeviceObject, - IN DEVICE_RELATION_TYPE Type); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ DEVICE_RELATION_TYPE Type); NTOSAPI VOID DDKAPI IoInvalidateDeviceState( - IN PDEVICE_OBJECT PhysicalDeviceObject); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject); NTOSAPI BOOLEAN DDKAPI IoIs32bitProcess( - IN PIRP Irp OPTIONAL); + /*IN*/ PIRP Irp /*OPTIONAL*/); /* * BOOLEAN * IoIsErrorUserInduced( - * IN NTSTATUS Status); + * IN NTSTATUS Status); */ #define IoIsErrorUserInduced(Status) \ ((BOOLEAN)(((Status) == STATUS_DEVICE_NOT_READY) || \ @@ -6597,20 +6602,20 @@ NTOSAPI BOOLEAN DDKAPI IoIsWdmVersionAvailable( - IN UCHAR MajorVersion, - IN UCHAR MinorVersion); + /*IN*/ UCHAR MajorVersion, + /*IN*/ UCHAR MinorVersion); NTOSAPI PIRP DDKAPI IoMakeAssociatedIrp( - IN PIRP Irp, - IN CCHAR StackSize); + /*IN*/ PIRP Irp, + /*IN*/ CCHAR StackSize); /* * VOID * IoMarkIrpPending( - * IN OUT PIRP Irp) + * IN OUT PIRP Irp) */ #define IoMarkIrpPending(_Irp) \ (IoGetCurrentIrpStackLocation(_Irp)->Control |= SL_PENDING_RETURNED) @@ -6619,142 +6624,142 @@ NTOSAPI NTSTATUS DDKAPI IoOpenDeviceInterfaceRegistryKey( - IN PUNICODE_STRING SymbolicLinkName, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE DeviceInterfaceKey); + /*IN*/ PUNICODE_STRING SymbolicLinkName, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE DeviceInterfaceKey); NTOSAPI NTSTATUS DDKAPI IoOpenDeviceRegistryKey( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG DevInstKeyType, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE DevInstRegKey); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG DevInstKeyType, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE DevInstRegKey); NTOSAPI NTSTATUS DDKAPI IoQueryDeviceDescription( - IN PINTERFACE_TYPE BusType OPTIONAL, - IN PULONG BusNumber OPTIONAL, - IN PCONFIGURATION_TYPE ControllerType OPTIONAL, - IN PULONG ControllerNumber OPTIONAL, - IN PCONFIGURATION_TYPE PeripheralType OPTIONAL, - IN PULONG PeripheralNumber OPTIONAL, - IN PIO_QUERY_DEVICE_ROUTINE CalloutRoutine, - IN PVOID Context); + /*IN*/ PINTERFACE_TYPE BusType /*OPTIONAL*/, + /*IN*/ PULONG BusNumber /*OPTIONAL*/, + /*IN*/ PCONFIGURATION_TYPE ControllerType /*OPTIONAL*/, + /*IN*/ PULONG ControllerNumber /*OPTIONAL*/, + /*IN*/ PCONFIGURATION_TYPE PeripheralType /*OPTIONAL*/, + /*IN*/ PULONG PeripheralNumber /*OPTIONAL*/, + /*IN*/ PIO_QUERY_DEVICE_ROUTINE CalloutRoutine, + /*IN*/ PVOID Context); NTOSAPI VOID DDKAPI IoQueueWorkItem( - IN PIO_WORKITEM pIOWorkItem, - IN PIO_WORKITEM_ROUTINE Routine, - IN WORK_QUEUE_TYPE QueueType, - IN PVOID Context); + /*IN*/ PIO_WORKITEM pIOWorkItem, + /*IN*/ PIO_WORKITEM_ROUTINE Routine, + /*IN*/ WORK_QUEUE_TYPE QueueType, + /*IN*/ PVOID Context); NTOSAPI VOID DDKAPI IoRaiseHardError( - IN PIRP Irp, - IN PVPB Vpb OPTIONAL, - IN PDEVICE_OBJECT RealDeviceObject); + /*IN*/ PIRP Irp, + /*IN*/ PVPB Vpb /*OPTIONAL*/, + /*IN*/ PDEVICE_OBJECT RealDeviceObject); NTOSAPI BOOLEAN DDKAPI IoRaiseInformationalHardError( - IN NTSTATUS ErrorStatus, - IN PUNICODE_STRING String OPTIONAL, - IN PKTHREAD Thread OPTIONAL); + /*IN*/ NTSTATUS ErrorStatus, + /*IN*/ PUNICODE_STRING String /*OPTIONAL*/, + /*IN*/ PKTHREAD Thread /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI IoReadDiskSignature( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG BytesPerSector, - OUT PDISK_SIGNATURE Signature); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG BytesPerSector, + /*OUT*/ PDISK_SIGNATURE Signature); NTOSAPI NTSTATUS DDKAPI IoReadPartitionTableEx( - IN PDEVICE_OBJECT DeviceObject, - IN struct _DRIVE_LAYOUT_INFORMATION_EX **PartitionBuffer); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ struct _DRIVE_LAYOUT_INFORMATION_EX **PartitionBuffer); NTOSAPI VOID DDKAPI IoRegisterBootDriverReinitialization( - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_REINITIALIZE DriverReinitializationRoutine, - IN PVOID Context); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_REINITIALIZE DriverReinitializationRoutine, + /*IN*/ PVOID Context); NTOSAPI VOID DDKAPI IoRegisterBootDriverReinitialization( - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_REINITIALIZE DriverReinitializationRoutine, - IN PVOID Context); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_REINITIALIZE DriverReinitializationRoutine, + /*IN*/ PVOID Context); NTOSAPI NTSTATUS DDKAPI IoRegisterDeviceInterface( - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN CONST GUID *InterfaceClassGuid, - IN PUNICODE_STRING ReferenceString OPTIONAL, - OUT PUNICODE_STRING SymbolicLinkName); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject, + /*IN*/ CONST GUID *InterfaceClassGuid, + /*IN*/ PUNICODE_STRING ReferenceString /*OPTIONAL*/, + /*OUT*/ PUNICODE_STRING SymbolicLinkName); NTOSAPI VOID DDKAPI IoRegisterDriverReinitialization( - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_REINITIALIZE DriverReinitializationRoutine, - IN PVOID Context); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_REINITIALIZE DriverReinitializationRoutine, + /*IN*/ PVOID Context); NTOSAPI NTSTATUS DDKAPI IoRegisterPlugPlayNotification( - IN IO_NOTIFICATION_EVENT_CATEGORY EventCategory, - IN ULONG EventCategoryFlags, - IN PVOID EventCategoryData OPTIONAL, - IN PDRIVER_OBJECT DriverObject, - IN PDRIVER_NOTIFICATION_CALLBACK_ROUTINE CallbackRoutine, - IN PVOID Context, - OUT PVOID *NotificationEntry); + /*IN*/ IO_NOTIFICATION_EVENT_CATEGORY EventCategory, + /*IN*/ ULONG EventCategoryFlags, + /*IN*/ PVOID EventCategoryData /*OPTIONAL*/, + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PDRIVER_NOTIFICATION_CALLBACK_ROUTINE CallbackRoutine, + /*IN*/ PVOID Context, + /*OUT*/ PVOID *NotificationEntry); NTOSAPI NTSTATUS DDKAPI IoRegisterShutdownNotification( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI VOID DDKAPI IoReleaseCancelSpinLock( - IN KIRQL Irql); + /*IN*/ KIRQL Irql); NTOSAPI VOID DDKAPI IoReleaseRemoveLockAndWaitEx( - IN PIO_REMOVE_LOCK RemoveLock, - IN PVOID Tag, - IN ULONG RemlockSize); + /*IN*/ PIO_REMOVE_LOCK RemoveLock, + /*IN*/ PVOID Tag, + /*IN*/ ULONG RemlockSize); /* * VOID * IoReleaseRemoveLockAndWait( - * IN PIO_REMOVE_LOCK RemoveLock, - * IN PVOID Tag) + * IN PIO_REMOVE_LOCK RemoveLock, + * IN PVOID Tag) */ #define IoReleaseRemoveLockAndWait(_RemoveLock, \ _Tag) \ @@ -6764,15 +6769,15 @@ NTOSAPI VOID DDKAPI IoReleaseRemoveLockEx( - IN PIO_REMOVE_LOCK RemoveLock, - IN PVOID Tag, - IN ULONG RemlockSize); + /*IN*/ PIO_REMOVE_LOCK RemoveLock, + /*IN*/ PVOID Tag, + /*IN*/ ULONG RemlockSize); /* * VOID * IoReleaseRemoveLock( - * IN PIO_REMOVE_LOCK RemoveLock, - * IN PVOID Tag) + * IN PIO_REMOVE_LOCK RemoveLock, + * IN PVOID Tag) */ #define IoReleaseRemoveLock(_RemoveLock, \ _Tag) \ @@ -6782,76 +6787,76 @@ NTOSAPI VOID DDKAPI IoRemoveShareAccess( - IN PFILE_OBJECT FileObject, - IN OUT PSHARE_ACCESS ShareAccess); + /*IN*/ PFILE_OBJECT FileObject, + /*IN OUT*/ PSHARE_ACCESS ShareAccess); NTOSAPI NTSTATUS DDKAPI IoReportDetectedDevice( - IN PDRIVER_OBJECT DriverObject, - IN INTERFACE_TYPE LegacyBusType, - IN ULONG BusNumber, - IN ULONG SlotNumber, - IN PCM_RESOURCE_LIST ResourceList, - IN PIO_RESOURCE_REQUIREMENTS_LIST ResourceRequirements OPTIONAL, - IN BOOLEAN ResourceAssigned, - IN OUT PDEVICE_OBJECT *DeviceObject); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ INTERFACE_TYPE LegacyBusType, + /*IN*/ ULONG BusNumber, + /*IN*/ ULONG SlotNumber, + /*IN*/ PCM_RESOURCE_LIST ResourceList, + /*IN*/ PIO_RESOURCE_REQUIREMENTS_LIST ResourceRequirements /*OPTIONAL*/, + /*IN*/ BOOLEAN ResourceAssigned, + /*IN OUT*/ PDEVICE_OBJECT *DeviceObject); NTOSAPI NTSTATUS DDKAPI IoReportResourceForDetection( - IN PDRIVER_OBJECT DriverObject, - IN PCM_RESOURCE_LIST DriverList OPTIONAL, - IN ULONG DriverListSize OPTIONAL, - IN PDEVICE_OBJECT DeviceObject OPTIONAL, - IN PCM_RESOURCE_LIST DeviceList OPTIONAL, - IN ULONG DeviceListSize OPTIONAL, - OUT PBOOLEAN ConflictDetected); + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PCM_RESOURCE_LIST DriverList /*OPTIONAL*/, + /*IN*/ ULONG DriverListSize /*OPTIONAL*/, + /*IN*/ PDEVICE_OBJECT DeviceObject /*OPTIONAL*/, + /*IN*/ PCM_RESOURCE_LIST DeviceList /*OPTIONAL*/, + /*IN*/ ULONG DeviceListSize /*OPTIONAL*/, + /*OUT*/ PBOOLEAN ConflictDetected); NTOSAPI NTSTATUS DDKAPI IoReportResourceUsage( - IN PUNICODE_STRING DriverClassName OPTIONAL, - IN PDRIVER_OBJECT DriverObject, - IN PCM_RESOURCE_LIST DriverList OPTIONAL, - IN ULONG DriverListSize OPTIONAL, - IN PDEVICE_OBJECT DeviceObject, - IN PCM_RESOURCE_LIST DeviceList OPTIONAL, - IN ULONG DeviceListSize OPTIONAL, - IN BOOLEAN OverrideConflict, - OUT PBOOLEAN ConflictDetected); + /*IN*/ PUNICODE_STRING DriverClassName /*OPTIONAL*/, + /*IN*/ PDRIVER_OBJECT DriverObject, + /*IN*/ PCM_RESOURCE_LIST DriverList /*OPTIONAL*/, + /*IN*/ ULONG DriverListSize /*OPTIONAL*/, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PCM_RESOURCE_LIST DeviceList /*OPTIONAL*/, + /*IN*/ ULONG DeviceListSize /*OPTIONAL*/, + /*IN*/ BOOLEAN OverrideConflict, + /*OUT*/ PBOOLEAN ConflictDetected); NTOSAPI NTSTATUS DDKAPI IoReportTargetDeviceChange( - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN PVOID NotificationStructure); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject, + /*IN*/ PVOID NotificationStructure); NTOSAPI NTSTATUS DDKAPI IoReportTargetDeviceChangeAsynchronous( - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN PVOID NotificationStructure, - IN PDEVICE_CHANGE_COMPLETE_CALLBACK Callback OPTIONAL, - IN PVOID Context OPTIONAL); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject, + /*IN*/ PVOID NotificationStructure, + /*IN*/ PDEVICE_CHANGE_COMPLETE_CALLBACK Callback /*OPTIONAL*/, + /*IN*/ PVOID Context /*OPTIONAL*/); NTOSAPI VOID DDKAPI IoRequestDeviceEject( - IN PDEVICE_OBJECT PhysicalDeviceObject); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject); /* * VOID * IoRequestDpc( - * IN PDEVICE_OBJECT DeviceObject, - * IN PIRP Irp, - * IN PVOID Context); + * IN PDEVICE_OBJECT DeviceObject, + * IN PIRP Irp, + * IN PVOID Context); */ #define IoRequestDpc(DeviceObject, Irp, Context)( \ KeInsertQueueDpc(&(DeviceObject)->Dpc, (Irp), (Context))) @@ -6860,14 +6865,14 @@ NTOSAPI VOID DDKAPI IoReuseIrp( - IN OUT PIRP Irp, - IN NTSTATUS Status); + /*IN OUT*/ PIRP Irp, + /*IN*/ NTSTATUS Status); /* * PDRIVER_CANCEL * IoSetCancelRoutine( - * IN PIRP Irp, - * IN PDRIVER_CANCEL CancelRoutine) + * IN PIRP Irp, + * IN PDRIVER_CANCEL CancelRoutine) */ #define IoSetCancelRoutine(_Irp, \ _CancelRoutine) \ @@ -6877,12 +6882,12 @@ IoReuseIrp( /* * VOID * IoSetCompletionRoutine( - * IN PIRP Irp, - * IN PIO_COMPLETION_ROUTINE CompletionRoutine, - * IN PVOID Context, - * IN BOOLEAN InvokeOnSuccess, - * IN BOOLEAN InvokeOnError, - * IN BOOLEAN InvokeOnCancel) + * IN PIRP Irp, + * IN PIO_COMPLETION_ROUTINE CompletionRoutine, + * IN PVOID Context, + * IN BOOLEAN InvokeOnSuccess, + * IN BOOLEAN InvokeOnError, + * IN BOOLEAN InvokeOnCancel) */ #define IoSetCompletionRoutine(_Irp, \ _CompletionRoutine, \ @@ -6907,32 +6912,32 @@ NTOSAPI VOID DDKAPI IoSetCompletionRoutineEx( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - IN PIO_COMPLETION_ROUTINE CompletionRoutine, - IN PVOID Context, - IN BOOLEAN InvokeOnSuccess, - IN BOOLEAN InvokeOnError, - IN BOOLEAN InvokeOnCancel); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp, + /*IN*/ PIO_COMPLETION_ROUTINE CompletionRoutine, + /*IN*/ PVOID Context, + /*IN*/ BOOLEAN InvokeOnSuccess, + /*IN*/ BOOLEAN InvokeOnError, + /*IN*/ BOOLEAN InvokeOnCancel); NTOSAPI NTSTATUS DDKAPI IoSetDeviceInterfaceState( - IN PUNICODE_STRING SymbolicLinkName, - IN BOOLEAN Enable); + /*IN*/ PUNICODE_STRING SymbolicLinkName, + /*IN*/ BOOLEAN Enable); NTOSAPI VOID DDKAPI IoSetHardErrorOrVerifyDevice( - IN PIRP Irp, - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PIRP Irp, + /*IN*/ PDEVICE_OBJECT DeviceObject); /* * VOID * IoSetNextIrpStackLocation( - * IN OUT PIRP Irp) + * IN OUT PIRP Irp) */ #define IoSetNextIrpStackLocation(_Irp) \ { \ @@ -6944,43 +6949,43 @@ NTOSAPI NTSTATUS DDKAPI IoSetPartitionInformationEx( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG PartitionNumber, - IN struct _SET_PARTITION_INFORMATION_EX *PartitionInfo); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG PartitionNumber, + /*IN*/ struct _SET_PARTITION_INFORMATION_EX *PartitionInfo); NTOSAPI VOID DDKAPI IoSetShareAccess( - IN ACCESS_MASK DesiredAccess, - IN ULONG DesiredShareAccess, - IN OUT PFILE_OBJECT FileObject, - OUT PSHARE_ACCESS ShareAccess); + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG DesiredShareAccess, + /*IN OUT*/ PFILE_OBJECT FileObject, + /*OUT*/ PSHARE_ACCESS ShareAccess); NTOSAPI VOID DDKAPI IoSetStartIoAttributes( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN DeferredStartIo, - IN BOOLEAN NonCancelable); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN DeferredStartIo, + /*IN*/ BOOLEAN NonCancelable); NTOSAPI NTSTATUS DDKAPI IoSetSystemPartition( - IN PUNICODE_STRING VolumeNameString); + /*IN*/ PUNICODE_STRING VolumeNameString); NTOSAPI BOOLEAN DDKAPI IoSetThreadHardErrorMode( - IN BOOLEAN EnableHardErrors); + /*IN*/ BOOLEAN EnableHardErrors); /* * USHORT * IoSizeOfIrp( - * IN CCHAR StackSize) + * IN CCHAR StackSize) */ #define IoSizeOfIrp(_StackSize) \ ((USHORT) (sizeof(IRP) + ((_StackSize) * (sizeof(IO_STACK_LOCATION))))) @@ -6988,7 +6993,7 @@ IoSetThreadHardErrorMode( /* * VOID * IoSkipCurrentIrpStackLocation( - * IN PIRP Irp) + * IN PIRP Irp) */ #define IoSkipCurrentIrpStackLocation(_Irp) \ { \ @@ -7000,219 +7005,219 @@ NTOSAPI VOID DDKAPI IoStartNextPacket( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN Cancelable); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN Cancelable); NTOSAPI VOID DDKAPI IoStartNextPacketByKey( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN Cancelable, - IN ULONG Key); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN Cancelable, + /*IN*/ ULONG Key); NTOSAPI VOID DDKAPI IoStartPacket( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - IN PULONG Key OPTIONAL, - IN PDRIVER_CANCEL CancelFunction OPTIONAL); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp, + /*IN*/ PULONG Key /*OPTIONAL*/, + /*IN*/ PDRIVER_CANCEL CancelFunction /*OPTIONAL*/); NTOSAPI VOID DDKAPI IoStartTimer( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI VOID DDKAPI IoStopTimer( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI NTSTATUS DDKAPI IoUnregisterPlugPlayNotification( - IN PVOID NotificationEntry); + /*IN*/ PVOID NotificationEntry); NTOSAPI VOID DDKAPI IoUnregisterShutdownNotification( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI VOID DDKAPI IoUpdateShareAccess( - IN PFILE_OBJECT FileObject, - IN OUT PSHARE_ACCESS ShareAccess); + /*IN*/ PFILE_OBJECT FileObject, + /*IN OUT*/ PSHARE_ACCESS ShareAccess); NTOSAPI NTSTATUS DDKAPI IoVerifyPartitionTable( - IN PDEVICE_OBJECT DeviceObject, - IN BOOLEAN FixErrors); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ BOOLEAN FixErrors); NTOSAPI NTSTATUS DDKAPI IoVolumeDeviceToDosName( - IN PVOID VolumeDeviceObject, - OUT PUNICODE_STRING DosName); + /*IN*/ PVOID VolumeDeviceObject, + /*OUT*/ PUNICODE_STRING DosName); NTOSAPI NTSTATUS DDKAPI IoWMIAllocateInstanceIds( - IN GUID *Guid, - IN ULONG InstanceCount, - OUT ULONG *FirstInstanceId); + /*IN*/ GUID *Guid, + /*IN*/ ULONG InstanceCount, + /*OUT*/ ULONG *FirstInstanceId); NTOSAPI ULONG DDKAPI IoWMIDeviceObjectToProviderId( - IN PDEVICE_OBJECT DeviceObject); + /*IN*/ PDEVICE_OBJECT DeviceObject); NTOSAPI NTSTATUS DDKAPI IoWMIDeviceObjectToInstanceName( - IN PVOID DataBlockObject, - IN PDEVICE_OBJECT DeviceObject, - OUT PUNICODE_STRING InstanceName); + /*IN*/ PVOID DataBlockObject, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*OUT*/ PUNICODE_STRING InstanceName); NTOSAPI NTSTATUS DDKAPI IoWMIExecuteMethod( - IN PVOID DataBlockObject, - IN PUNICODE_STRING InstanceName, - IN ULONG MethodId, - IN ULONG InBufferSize, - IN OUT PULONG OutBufferSize, - IN OUT PUCHAR InOutBuffer); + /*IN*/ PVOID DataBlockObject, + /*IN*/ PUNICODE_STRING InstanceName, + /*IN*/ ULONG MethodId, + /*IN*/ ULONG InBufferSize, + /*IN OUT*/ PULONG OutBufferSize, + /*IN OUT*/ PUCHAR InOutBuffer); NTOSAPI NTSTATUS DDKAPI IoWMIHandleToInstanceName( - IN PVOID DataBlockObject, - IN HANDLE FileHandle, - OUT PUNICODE_STRING InstanceName); + /*IN*/ PVOID DataBlockObject, + /*IN*/ HANDLE FileHandle, + /*OUT*/ PUNICODE_STRING InstanceName); NTOSAPI NTSTATUS DDKAPI IoWMIOpenBlock( - IN GUID *DataBlockGuid, - IN ULONG DesiredAccess, - OUT PVOID *DataBlockObject); + /*IN*/ GUID *DataBlockGuid, + /*IN*/ ULONG DesiredAccess, + /*OUT*/ PVOID *DataBlockObject); NTOSAPI NTSTATUS DDKAPI IoWMIQueryAllData( - IN PVOID DataBlockObject, - IN OUT ULONG *InOutBufferSize, - OUT PVOID OutBuffer); + /*IN*/ PVOID DataBlockObject, + /*IN OUT*/ ULONG *InOutBufferSize, + /*OUT*/ PVOID OutBuffer); NTOSAPI NTSTATUS DDKAPI IoWMIQueryAllDataMultiple( - IN PVOID *DataBlockObjectList, - IN ULONG ObjectCount, - IN OUT ULONG *InOutBufferSize, - OUT PVOID OutBuffer); + /*IN*/ PVOID *DataBlockObjectList, + /*IN*/ ULONG ObjectCount, + /*IN OUT*/ ULONG *InOutBufferSize, + /*OUT*/ PVOID OutBuffer); NTOSAPI NTSTATUS DDKAPI IoWMIQuerySingleInstance( - IN PVOID DataBlockObject, - IN PUNICODE_STRING InstanceName, - IN OUT ULONG *InOutBufferSize, - OUT PVOID OutBuffer); + /*IN*/ PVOID DataBlockObject, + /*IN*/ PUNICODE_STRING InstanceName, + /*IN OUT*/ ULONG *InOutBufferSize, + /*OUT*/ PVOID OutBuffer); NTOSAPI NTSTATUS DDKAPI IoWMIQuerySingleInstanceMultiple( - IN PVOID *DataBlockObjectList, - IN PUNICODE_STRING InstanceNames, - IN ULONG ObjectCount, - IN OUT ULONG *InOutBufferSize, - OUT PVOID OutBuffer); + /*IN*/ PVOID *DataBlockObjectList, + /*IN*/ PUNICODE_STRING InstanceNames, + /*IN*/ ULONG ObjectCount, + /*IN OUT*/ ULONG *InOutBufferSize, + /*OUT*/ PVOID OutBuffer); NTOSAPI NTSTATUS DDKAPI IoWMIRegistrationControl( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG Action); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG Action); NTOSAPI NTSTATUS DDKAPI IoWMISetNotificationCallback( - IN PVOID Object, - IN WMI_NOTIFICATION_CALLBACK Callback, - IN PVOID Context); + /*IN*/ PVOID Object, + /*IN*/ WMI_NOTIFICATION_CALLBACK Callback, + /*IN*/ PVOID Context); NTOSAPI NTSTATUS DDKAPI IoWMISetSingleInstance( - IN PVOID DataBlockObject, - IN PUNICODE_STRING InstanceName, - IN ULONG Version, - IN ULONG ValueBufferSize, - IN PVOID ValueBuffer); + /*IN*/ PVOID DataBlockObject, + /*IN*/ PUNICODE_STRING InstanceName, + /*IN*/ ULONG Version, + /*IN*/ ULONG ValueBufferSize, + /*IN*/ PVOID ValueBuffer); NTOSAPI NTSTATUS DDKAPI IoWMISetSingleItem( - IN PVOID DataBlockObject, - IN PUNICODE_STRING InstanceName, - IN ULONG DataItemId, - IN ULONG Version, - IN ULONG ValueBufferSize, - IN PVOID ValueBuffer); + /*IN*/ PVOID DataBlockObject, + /*IN*/ PUNICODE_STRING InstanceName, + /*IN*/ ULONG DataItemId, + /*IN*/ ULONG Version, + /*IN*/ ULONG ValueBufferSize, + /*IN*/ PVOID ValueBuffer); NTOSAPI NTSTATUS DDKAPI IoWMISuggestInstanceName( - IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL, - IN PUNICODE_STRING SymbolicLinkName OPTIONAL, - IN BOOLEAN CombineNames, - OUT PUNICODE_STRING SuggestedInstanceName); + /*IN*/ PDEVICE_OBJECT PhysicalDeviceObject /*OPTIONAL*/, + /*IN*/ PUNICODE_STRING SymbolicLinkName /*OPTIONAL*/, + /*IN*/ BOOLEAN CombineNames, + /*OUT*/ PUNICODE_STRING SuggestedInstanceName); NTOSAPI NTSTATUS DDKAPI IoWMIWriteEvent( - IN PVOID WnodeEventItem); + /*IN*/ PVOID WnodeEventItem); NTOSAPI VOID DDKAPI IoWriteErrorLogEntry( - IN PVOID ElEntry); + /*IN*/ PVOID ElEntry); NTOSAPI NTSTATUS DDKAPI IoWritePartitionTableEx( - IN PDEVICE_OBJECT DeviceObject, - IN struct _DRIVE_LAYOUT_INFORMATION_EX *PartitionBuffer); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ struct _DRIVE_LAYOUT_INFORMATION_EX *PartitionBuffer); @@ -7222,28 +7227,28 @@ NTOSAPI VOID DDKFASTAPI KeAcquireInStackQueuedSpinLock( - IN PKSPIN_LOCK SpinLock, - IN PKLOCK_QUEUE_HANDLE LockHandle); + /*IN*/ PKSPIN_LOCK SpinLock, + /*IN*/ PKLOCK_QUEUE_HANDLE LockHandle); NTOSAPI VOID DDKFASTAPI KeAcquireInStackQueuedSpinLockAtDpcLevel( - IN PKSPIN_LOCK SpinLock, - IN PKLOCK_QUEUE_HANDLE LockHandle); + /*IN*/ PKSPIN_LOCK SpinLock, + /*IN*/ PKLOCK_QUEUE_HANDLE LockHandle); NTOSAPI KIRQL DDKAPI KeAcquireInterruptSpinLock( - IN PKINTERRUPT Interrupt); + /*IN*/ PKINTERRUPT Interrupt); NTOSAPI VOID DDKAPI KeAcquireSpinLock( - IN PKSPIN_LOCK SpinLock, - OUT PKIRQL OldIrql); + /*IN*/ PKSPIN_LOCK SpinLock, + /*OUT*/ PKIRQL OldIrql); /* System Service Dispatch Table */ typedef PVOID (NTAPI * SSDT)(VOID); @@ -7263,11 +7268,11 @@ NTOSAPI BOOLEAN DDKAPI KeAddSystemServiceTable( - IN PSSDT SSDT, - IN PULONG ServiceCounterTable, - IN ULONG NumberOfServices, - IN PSSPT SSPT, - IN ULONG TableIndex); + /*IN*/ PSSDT SSDT, + /*IN*/ PULONG ServiceCounterTable, + /*IN*/ ULONG NumberOfServices, + /*IN*/ PSSPT SSPT, + /*IN*/ ULONG TableIndex); NTOSAPI BOOLEAN @@ -7279,49 +7284,49 @@ NTOSAPI VOID DDKAPI KeAttachProcess( - IN PEPROCESS Process); + /*IN*/ PEPROCESS Process); NTOSAPI VOID DDKAPI KeBugCheck( - IN ULONG BugCheckCode); + /*IN*/ ULONG BugCheckCode); NTOSAPI VOID DDKAPI KeBugCheckEx( - IN ULONG BugCheckCode, - IN ULONG_PTR BugCheckParameter1, - IN ULONG_PTR BugCheckParameter2, - IN ULONG_PTR BugCheckParameter3, - IN ULONG_PTR BugCheckParameter4); + /*IN*/ ULONG BugCheckCode, + /*IN*/ ULONG_PTR BugCheckParameter1, + /*IN*/ ULONG_PTR BugCheckParameter2, + /*IN*/ ULONG_PTR BugCheckParameter3, + /*IN*/ ULONG_PTR BugCheckParameter4); NTOSAPI BOOLEAN DDKAPI KeCancelTimer( - IN PKTIMER Timer); + /*IN*/ PKTIMER Timer); NTOSAPI VOID DDKAPI KeClearEvent( - IN PRKEVENT Event); + /*IN*/ PRKEVENT Event); NTOSAPI NTSTATUS DDKAPI KeDelayExecutionThread( - IN KPROCESSOR_MODE WaitMode, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Interval); + /*IN*/ KPROCESSOR_MODE WaitMode, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Interval); NTOSAPI BOOLEAN DDKAPI KeDeregisterBugCheckCallback( - IN PKBUGCHECK_CALLBACK_RECORD CallbackRecord); + /*IN*/ PKBUGCHECK_CALLBACK_RECORD CallbackRecord); NTOSAPI VOID @@ -7338,9 +7343,9 @@ KeEnterCriticalRegion( /* * VOID * KeFlushIoBuffers( - * IN PMDL Mdl, - * IN BOOLEAN ReadOperation, - * IN BOOLEAN DmaOperation) + * IN PMDL Mdl, + * IN BOOLEAN ReadOperation, + * IN BOOLEAN DmaOperation) */ #define KeFlushIoBuffers(_Mdl, _ReadOperation, _DmaOperation) @@ -7366,77 +7371,77 @@ NTOSAPI VOID DDKAPI KeInitializeApc( - IN PKAPC Apc, - IN PKTHREAD Thread, - IN UCHAR StateIndex, - IN PKKERNEL_ROUTINE KernelRoutine, - IN PKRUNDOWN_ROUTINE RundownRoutine, - IN PKNORMAL_ROUTINE NormalRoutine, - IN UCHAR Mode, - IN PVOID Context); + /*IN*/ PKAPC Apc, + /*IN*/ PKTHREAD Thread, + /*IN*/ UCHAR StateIndex, + /*IN*/ PKKERNEL_ROUTINE KernelRoutine, + /*IN*/ PKRUNDOWN_ROUTINE RundownRoutine, + /*IN*/ PKNORMAL_ROUTINE NormalRoutine, + /*IN*/ UCHAR Mode, + /*IN*/ PVOID Context); NTOSAPI VOID DDKAPI KeInitializeDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue); + /*IN*/ PKDEVICE_QUEUE DeviceQueue); NTOSAPI VOID DDKAPI KeInitializeMutex( - IN PRKMUTEX Mutex, - IN ULONG Level); + /*IN*/ PRKMUTEX Mutex, + /*IN*/ ULONG Level); NTOSAPI VOID DDKAPI KeInitializeSemaphore( - IN PRKSEMAPHORE Semaphore, - IN LONG Count, - IN LONG Limit); + /*IN*/ PRKSEMAPHORE Semaphore, + /*IN*/ LONG Count, + /*IN*/ LONG Limit); NTOSAPI VOID DDKAPI KeInitializeSpinLock( - IN PKSPIN_LOCK SpinLock); + /*IN*/ PKSPIN_LOCK SpinLock); NTOSAPI VOID DDKAPI KeInitializeTimer( - IN PKTIMER Timer); + /*IN*/ PKTIMER Timer); NTOSAPI VOID DDKAPI KeInitializeTimerEx( - IN PKTIMER Timer, - IN TIMER_TYPE Type); + /*IN*/ PKTIMER Timer, + /*IN*/ TIMER_TYPE Type); NTOSAPI BOOLEAN DDKAPI KeInsertByKeyDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue, - IN PKDEVICE_QUEUE_ENTRY DeviceQueueEntry, - IN ULONG SortKey); + /*IN*/ PKDEVICE_QUEUE DeviceQueue, + /*IN*/ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry, + /*IN*/ ULONG SortKey); NTOSAPI BOOLEAN DDKAPI KeInsertDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue, - IN PKDEVICE_QUEUE_ENTRY DeviceQueueEntry); + /*IN*/ PKDEVICE_QUEUE DeviceQueue, + /*IN*/ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry); NTOSAPI BOOLEAN DDKAPI KeInsertQueueDpc( - IN PRKDPC Dpc, - IN PVOID SystemArgument1, - IN PVOID SystemArgument2); + /*IN*/ PRKDPC Dpc, + /*IN*/ PVOID SystemArgument1, + /*IN*/ PVOID SystemArgument2); NTOSAPI VOID @@ -7448,9 +7453,9 @@ NTOSAPI NTSTATUS DDKAPI KePulseEvent( - IN PRKEVENT Event, - IN KPRIORITY Increment, - IN BOOLEAN Wait); + /*IN*/ PRKEVENT Event, + /*IN*/ KPRIORITY Increment, + /*IN*/ BOOLEAN Wait); NTOSAPI ULONGLONG @@ -7462,25 +7467,25 @@ NTOSAPI LARGE_INTEGER DDKAPI KeQueryPerformanceCounter( - OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL); + /*OUT*/ PLARGE_INTEGER PerformanceFrequency /*OPTIONAL*/); NTOSAPI KPRIORITY DDKAPI KeQueryPriorityThread( - IN PRKTHREAD Thread); + /*IN*/ PRKTHREAD Thread); NTOSAPI VOID DDKAPI KeQuerySystemTime( - OUT PLARGE_INTEGER CurrentTime); + /*OUT*/ PLARGE_INTEGER CurrentTime); NTOSAPI VOID DDKAPI KeQueryTickCount( - OUT PLARGE_INTEGER TickCount); + /*OUT*/ PLARGE_INTEGER TickCount); NTOSAPI ULONG @@ -7492,227 +7497,227 @@ NTOSAPI LONG DDKAPI KeReadStateEvent( - IN PRKEVENT Event); + /*IN*/ PRKEVENT Event); NTOSAPI LONG DDKAPI KeReadStateMutex( - IN PRKMUTEX Mutex); + /*IN*/ PRKMUTEX Mutex); NTOSAPI LONG DDKAPI KeReadStateSemaphore( - IN PRKSEMAPHORE Semaphore); + /*IN*/ PRKSEMAPHORE Semaphore); NTOSAPI BOOLEAN DDKAPI KeReadStateTimer( - IN PKTIMER Timer); + /*IN*/ PKTIMER Timer); NTOSAPI BOOLEAN DDKAPI KeRegisterBugCheckCallback( - IN PKBUGCHECK_CALLBACK_RECORD CallbackRecord, - IN PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine, - IN PVOID Buffer, - IN ULONG Length, - IN PUCHAR Component); + /*IN*/ PKBUGCHECK_CALLBACK_RECORD CallbackRecord, + /*IN*/ PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ PUCHAR Component); NTOSAPI VOID DDKFASTAPI KeReleaseInStackQueuedSpinLock( - IN PKLOCK_QUEUE_HANDLE LockHandle); + /*IN*/ PKLOCK_QUEUE_HANDLE LockHandle); NTOSAPI VOID DDKFASTAPI KeReleaseInStackQueuedSpinLockFromDpcLevel( - IN PKLOCK_QUEUE_HANDLE LockHandle); + /*IN*/ PKLOCK_QUEUE_HANDLE LockHandle); NTOSAPI VOID DDKAPI KeReleaseInterruptSpinLock( - IN PKINTERRUPT Interrupt, - IN KIRQL OldIrql); + /*IN*/ PKINTERRUPT Interrupt, + /*IN*/ KIRQL OldIrql); NTOSAPI LONG DDKAPI KeReleaseMutex( - IN PRKMUTEX Mutex, - IN BOOLEAN Wait); + /*IN*/ PRKMUTEX Mutex, + /*IN*/ BOOLEAN Wait); NTOSAPI LONG DDKAPI KeReleaseSemaphore( - IN PRKSEMAPHORE Semaphore, - IN KPRIORITY Increment, - IN LONG Adjustment, - IN BOOLEAN Wait); + /*IN*/ PRKSEMAPHORE Semaphore, + /*IN*/ KPRIORITY Increment, + /*IN*/ LONG Adjustment, + /*IN*/ BOOLEAN Wait); NTOSAPI VOID DDKAPI KeReleaseSpinLock( - IN PKSPIN_LOCK SpinLock, - IN KIRQL NewIrql); + /*IN*/ PKSPIN_LOCK SpinLock, + /*IN*/ KIRQL NewIrql); NTOSAPI PKDEVICE_QUEUE_ENTRY DDKAPI KeRemoveByKeyDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue, - IN ULONG SortKey); + /*IN*/ PKDEVICE_QUEUE DeviceQueue, + /*IN*/ ULONG SortKey); NTOSAPI PKDEVICE_QUEUE_ENTRY DDKAPI KeRemoveDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue); + /*IN*/ PKDEVICE_QUEUE DeviceQueue); NTOSAPI BOOLEAN DDKAPI KeRemoveEntryDeviceQueue( - IN PKDEVICE_QUEUE DeviceQueue, - IN PKDEVICE_QUEUE_ENTRY DeviceQueueEntry); + /*IN*/ PKDEVICE_QUEUE DeviceQueue, + /*IN*/ PKDEVICE_QUEUE_ENTRY DeviceQueueEntry); NTOSAPI BOOLEAN DDKAPI KeRemoveQueueDpc( - IN PRKDPC Dpc); + /*IN*/ PRKDPC Dpc); NTOSAPI LONG DDKAPI KeResetEvent( - IN PRKEVENT Event); + /*IN*/ PRKEVENT Event); NTOSAPI NTSTATUS DDKAPI KeRestoreFloatingPointState( - IN PKFLOATING_SAVE FloatSave); + /*IN*/ PKFLOATING_SAVE FloatSave); NTOSAPI NTSTATUS DDKAPI KeSaveFloatingPointState( - OUT PKFLOATING_SAVE FloatSave); + /*OUT*/ PKFLOATING_SAVE FloatSave); NTOSAPI LONG DDKAPI KeSetBasePriorityThread( - IN PRKTHREAD Thread, - IN LONG Increment); + /*IN*/ PRKTHREAD Thread, + /*IN*/ LONG Increment); NTOSAPI LONG DDKAPI KeSetEvent( - IN PRKEVENT Event, - IN KPRIORITY Increment, - IN BOOLEAN Wait); + /*IN*/ PRKEVENT Event, + /*IN*/ KPRIORITY Increment, + /*IN*/ BOOLEAN Wait); NTOSAPI VOID DDKAPI KeSetImportanceDpc( - IN PRKDPC Dpc, - IN KDPC_IMPORTANCE Importance); + /*IN*/ PRKDPC Dpc, + /*IN*/ KDPC_IMPORTANCE Importance); NTOSAPI KPRIORITY DDKAPI KeSetPriorityThread( - IN PKTHREAD Thread, - IN KPRIORITY Priority); + /*IN*/ PKTHREAD Thread, + /*IN*/ KPRIORITY Priority); NTOSAPI VOID DDKAPI KeSetTargetProcessorDpc( - IN PRKDPC Dpc, - IN CCHAR Number); + /*IN*/ PRKDPC Dpc, + /*IN*/ CCHAR Number); NTOSAPI BOOLEAN DDKAPI KeSetTimer( - IN PKTIMER Timer, - IN LARGE_INTEGER DueTime, - IN PKDPC Dpc OPTIONAL); + /*IN*/ PKTIMER Timer, + /*IN*/ LARGE_INTEGER DueTime, + /*IN*/ PKDPC Dpc /*OPTIONAL*/); NTOSAPI BOOLEAN DDKAPI KeSetTimerEx( - IN PKTIMER Timer, - IN LARGE_INTEGER DueTime, - IN LONG Period OPTIONAL, - IN PKDPC Dpc OPTIONAL); + /*IN*/ PKTIMER Timer, + /*IN*/ LARGE_INTEGER DueTime, + /*IN*/ LONG Period /*OPTIONAL*/, + /*IN*/ PKDPC Dpc /*OPTIONAL*/); NTOSAPI VOID DDKFASTAPI KeSetTimeUpdateNotifyRoutine( - IN PTIME_UPDATE_NOTIFY_ROUTINE NotifyRoutine); + /*IN*/ PTIME_UPDATE_NOTIFY_ROUTINE NotifyRoutine); NTOSAPI VOID DDKAPI KeStallExecutionProcessor( - IN ULONG MicroSeconds); + /*IN*/ ULONG MicroSeconds); NTOSAPI BOOLEAN DDKAPI KeSynchronizeExecution( - IN PKINTERRUPT Interrupt, - IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine, - IN PVOID SynchronizeContext); + /*IN*/ PKINTERRUPT Interrupt, + /*IN*/ PKSYNCHRONIZE_ROUTINE SynchronizeRoutine, + /*IN*/ PVOID SynchronizeContext); NTOSAPI NTSTATUS DDKAPI KeWaitForMultipleObjects( - IN ULONG Count, - IN PVOID Object[], - IN WAIT_TYPE WaitType, - IN KWAIT_REASON WaitReason, - IN KPROCESSOR_MODE WaitMode, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Timeout OPTIONAL, - IN PKWAIT_BLOCK WaitBlockArray OPTIONAL); + /*IN*/ ULONG Count, + /*IN*/ PVOID Object[], + /*IN*/ WAIT_TYPE WaitType, + /*IN*/ KWAIT_REASON WaitReason, + /*IN*/ KPROCESSOR_MODE WaitMode, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL */, + /*IN*/ PKWAIT_BLOCK WaitBlockArray /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI KeWaitForMutexObject( - IN PRKMUTEX Mutex, - IN KWAIT_REASON WaitReason, - IN KPROCESSOR_MODE WaitMode, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Timeout OPTIONAL); + /*IN*/ PRKMUTEX Mutex, + /*IN*/ KWAIT_REASON WaitReason, + /*IN*/ KPROCESSOR_MODE WaitMode, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI KeWaitForSingleObject( - IN PVOID Object, - IN KWAIT_REASON WaitReason, - IN KPROCESSOR_MODE WaitMode, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Timeout OPTIONAL); + /*IN*/ PVOID Object, + /*IN*/ KWAIT_REASON WaitReason, + /*IN*/ KPROCESSOR_MODE WaitMode, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/); #if defined(_X86_) @@ -7720,13 +7725,13 @@ NTOSAPI VOID FASTCALL KfLowerIrql( - IN KIRQL NewIrql); + /*IN*/ KIRQL NewIrql); NTOSAPI KIRQL FASTCALL KfRaiseIrql( - IN KIRQL NewIrql); + /*IN*/ KIRQL NewIrql); #define KeLowerIrql(a) KfLowerIrql(a) #define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a) @@ -7737,13 +7742,13 @@ NTOSAPI VOID DDKAPI KeLowerIrql( - IN KIRQL NewIrql); + /*IN*/ KIRQL NewIrql); NTOSAPI KIRQL DDKAPI KeRaiseIrql( - IN KIRQL NewIrql); + /*IN*/ KIRQL NewIrql); #endif @@ -7759,66 +7764,66 @@ NTOSAPI NTSTATUS DDKAPI MmAdvanceMdl( - IN PMDL Mdl, - IN ULONG NumberOfBytes); + /*IN*/ PMDL Mdl, + /*IN*/ ULONG NumberOfBytes); NTOSAPI PVOID DDKAPI MmAllocateContiguousMemory( - IN ULONG NumberOfBytes, - IN PHYSICAL_ADDRESS HighestAcceptableAddress); + /*IN*/ ULONG NumberOfBytes, + /*IN*/ PHYSICAL_ADDRESS HighestAcceptableAddress); NTOSAPI PVOID DDKAPI MmAllocateContiguousMemorySpecifyCache( - IN SIZE_T NumberOfBytes, - IN PHYSICAL_ADDRESS LowestAcceptableAddress, - IN PHYSICAL_ADDRESS HighestAcceptableAddress, - IN PHYSICAL_ADDRESS BoundaryAddressMultiple OPTIONAL, - IN MEMORY_CACHING_TYPE CacheType); + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ PHYSICAL_ADDRESS LowestAcceptableAddress, + /*IN*/ PHYSICAL_ADDRESS HighestAcceptableAddress, + /*IN*/ PHYSICAL_ADDRESS BoundaryAddressMultiple /*OPTIONAL*/, + /*IN*/ MEMORY_CACHING_TYPE CacheType); NTOSAPI PVOID DDKAPI MmAllocateMappingAddress( - IN SIZE_T NumberOfBytes, - IN ULONG PoolTag); + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ ULONG PoolTag); NTOSAPI PVOID DDKAPI MmAllocateNonCachedMemory( - IN ULONG NumberOfBytes); + /*IN*/ ULONG NumberOfBytes); NTOSAPI PMDL DDKAPI MmAllocatePagesForMdl( - IN PHYSICAL_ADDRESS LowAddress, - IN PHYSICAL_ADDRESS HighAddress, - IN PHYSICAL_ADDRESS SkipBytes, - IN SIZE_T TotalBytes); + /*IN*/ PHYSICAL_ADDRESS LowAddress, + /*IN*/ PHYSICAL_ADDRESS HighAddress, + /*IN*/ PHYSICAL_ADDRESS SkipBytes, + /*IN*/ SIZE_T TotalBytes); NTOSAPI VOID DDKAPI MmBuildMdlForNonPagedPool( - IN OUT PMDL MemoryDescriptorList); + /*IN OUT*/ PMDL MemoryDescriptorList); NTOSAPI NTSTATUS DDKAPI MmCreateSection( - OUT PSECTION_OBJECT *SectionObject, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, - IN PLARGE_INTEGER MaximumSize, - IN ULONG SectionPageProtection, - IN ULONG AllocationAttributes, - IN HANDLE FileHandle OPTIONAL, - IN PFILE_OBJECT File OPTIONAL); + /*OUT*/ PSECTION_OBJECT *SectionObject, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ PLARGE_INTEGER MaximumSize, + /*IN*/ ULONG SectionPageProtection, + /*IN*/ ULONG AllocationAttributes, + /*IN*/ HANDLE FileHandle /*OPTIONAL*/, + /*IN*/ PFILE_OBJECT File /*OPTIONAL*/); typedef enum _MMFLUSH_TYPE { MmFlushForDelete, @@ -7829,47 +7834,47 @@ NTOSAPI BOOLEAN DDKAPI MmFlushImageSection( - IN PSECTION_OBJECT_POINTERS SectionObjectPointer, - IN MMFLUSH_TYPE FlushType); + /*IN*/ PSECTION_OBJECT_POINTERS SectionObjectPointer, + /*IN*/ MMFLUSH_TYPE FlushType); NTOSAPI VOID DDKAPI MmFreeContiguousMemory( - IN PVOID BaseAddress); + /*IN*/ PVOID BaseAddress); NTOSAPI VOID DDKAPI MmFreeContiguousMemorySpecifyCache( - IN PVOID BaseAddress, - IN SIZE_T NumberOfBytes, - IN MEMORY_CACHING_TYPE CacheType); + /*IN*/ PVOID BaseAddress, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ MEMORY_CACHING_TYPE CacheType); NTOSAPI VOID DDKAPI MmFreeMappingAddress( - IN PVOID BaseAddress, - IN ULONG PoolTag); + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG PoolTag); NTOSAPI VOID DDKAPI MmFreeNonCachedMemory( - IN PVOID BaseAddress, - IN SIZE_T NumberOfBytes); + /*IN*/ PVOID BaseAddress, + /*IN*/ SIZE_T NumberOfBytes); NTOSAPI VOID DDKAPI MmFreePagesFromMdl( - IN PMDL MemoryDescriptorList); + /*IN*/ PMDL MemoryDescriptorList); /* * ULONG * MmGetMdlByteCount( - * IN PMDL Mdl) + * IN PMDL Mdl) */ #define MmGetMdlByteCount(_Mdl) \ ((_Mdl)->ByteCount) @@ -7877,7 +7882,7 @@ MmFreePagesFromMdl( /* * ULONG * MmGetMdlByteOffset( - * IN PMDL Mdl) + * IN PMDL Mdl) */ #define MmGetMdlByteOffset(_Mdl) \ ((_Mdl)->ByteOffset) @@ -7885,7 +7890,7 @@ MmFreePagesFromMdl( /* * PPFN_NUMBER * MmGetMdlPfnArray( - * IN PMDL Mdl) + * IN PMDL Mdl) */ #define MmGetMdlPfnArray(_Mdl) \ ((PPFN_NUMBER) ((_Mdl) + 1)) @@ -7893,7 +7898,7 @@ MmFreePagesFromMdl( /* * PVOID * MmGetMdlVirtualAddress( - * IN PMDL Mdl) + * IN PMDL Mdl) */ #define MmGetMdlVirtualAddress(_Mdl) \ ((PVOID) ((PCHAR) ((_Mdl)->StartVa) + (_Mdl)->ByteOffset)) @@ -7902,7 +7907,7 @@ NTOSAPI PHYSICAL_ADDRESS DDKAPI MmGetPhysicalAddress( - IN PVOID BaseAddress); + /*IN*/ PVOID BaseAddress); NTOSAPI PPHYSICAL_MEMORY_RANGE @@ -7914,79 +7919,79 @@ NTOSAPI PVOID DDKAPI MmGetVirtualForPhysical( - IN PHYSICAL_ADDRESS PhysicalAddress); + /*IN*/ PHYSICAL_ADDRESS PhysicalAddress); NTOSAPI PVOID DDKAPI MmMapLockedPagesSpecifyCache( - IN PMDL MemoryDescriptorList, - IN KPROCESSOR_MODE AccessMode, - IN MEMORY_CACHING_TYPE CacheType, - IN PVOID BaseAddress, - IN ULONG BugCheckOnFailure, - IN MM_PAGE_PRIORITY Priority); + /*IN*/ PMDL MemoryDescriptorList, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN*/ MEMORY_CACHING_TYPE CacheType, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG BugCheckOnFailure, + /*IN*/ MM_PAGE_PRIORITY Priority); NTOSAPI PVOID DDKAPI MmMapLockedPagesWithReservedMapping( - IN PVOID MappingAddress, - IN ULONG PoolTag, - IN PMDL MemoryDescriptorList, - IN MEMORY_CACHING_TYPE CacheType); + /*IN*/ PVOID MappingAddress, + /*IN*/ ULONG PoolTag, + /*IN*/ PMDL MemoryDescriptorList, + /*IN*/ MEMORY_CACHING_TYPE CacheType); NTOSAPI NTSTATUS DDKAPI MmMapUserAddressesToPage( - IN PVOID BaseAddress, - IN SIZE_T NumberOfBytes, - IN PVOID PageAddress); + /*IN*/ PVOID BaseAddress, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ PVOID PageAddress); NTOSAPI PVOID DDKAPI MmMapVideoDisplay( - IN PHYSICAL_ADDRESS PhysicalAddress, - IN SIZE_T NumberOfBytes, - IN MEMORY_CACHING_TYPE CacheType); + /*IN*/ PHYSICAL_ADDRESS PhysicalAddress, + /*IN*/ SIZE_T NumberOfBytes, + /*IN*/ MEMORY_CACHING_TYPE CacheType); NTOSAPI NTSTATUS DDKAPI MmMapViewInSessionSpace( - IN PVOID Section, - OUT PVOID *MappedBase, - IN OUT PSIZE_T ViewSize); + /*IN*/ PVOID Section, + /*OUT*/ PVOID *MappedBase, + /*IN OUT*/ PSIZE_T ViewSize); NTOSAPI NTSTATUS DDKAPI MmMapViewInSystemSpace( - IN PVOID Section, - OUT PVOID *MappedBase, - IN PSIZE_T ViewSize); + /*IN*/ PVOID Section, + /*OUT*/ PVOID *MappedBase, + /*IN*/ PSIZE_T ViewSize); NTOSAPI NTSTATUS DDKAPI MmMarkPhysicalMemoryAsBad( - IN PPHYSICAL_ADDRESS StartAddress, - IN OUT PLARGE_INTEGER NumberOfBytes); + /*IN*/ PPHYSICAL_ADDRESS StartAddress, + /*IN OUT*/ PLARGE_INTEGER NumberOfBytes); NTOSAPI NTSTATUS DDKAPI MmMarkPhysicalMemoryAsGood( - IN PPHYSICAL_ADDRESS StartAddress, - IN OUT PLARGE_INTEGER NumberOfBytes); + /*IN*/ PPHYSICAL_ADDRESS StartAddress, + /*IN OUT*/ PLARGE_INTEGER NumberOfBytes); /* * PVOID * MmGetSystemAddressForMdlSafe( - * IN PMDL Mdl, - * IN MM_PAGE_PRIORITY Priority) + * IN PMDL Mdl, + * IN MM_PAGE_PRIORITY Priority) */ #define MmGetSystemAddressForMdlSafe(_Mdl, _Priority) \ ((_Mdl)->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA \ @@ -7999,13 +8004,13 @@ NTOSAPI PVOID DDKAPI MmGetSystemRoutineAddress( - IN PUNICODE_STRING SystemRoutineName); + /*IN*/ PUNICODE_STRING SystemRoutineName); /* * ULONG * ADDRESS_AND_SIZE_TO_SPAN_PAGES( - * IN PVOID Va, - * IN ULONG Size) + * IN PVOID Va, + * IN ULONG Size) */ #define ADDRESS_AND_SIZE_TO_SPAN_PAGES(_Va, \ _Size) \ @@ -8015,9 +8020,9 @@ MmGetSystemRoutineAddress( /* * VOID * MmInitializeMdl( - * IN PMDL MemoryDescriptorList, - * IN PVOID BaseVa, - * IN SIZE_T Length) + * IN PMDL MemoryDescriptorList, + * IN PVOID BaseVa, + * IN SIZE_T Length) */ #define MmInitializeMdl(_MemoryDescriptorList, \ _BaseVa, \ @@ -8036,13 +8041,13 @@ NTOSAPI BOOLEAN DDKAPI MmIsAddressValid( - IN PVOID VirtualAddress); + /*IN*/ PVOID VirtualAddress); NTOSAPI LOGICAL DDKAPI MmIsDriverVerifying( - IN PDRIVER_OBJECT DriverObject); + /*IN*/ PDRIVER_OBJECT DriverObject); NTOSAPI BOOLEAN @@ -8054,24 +8059,24 @@ NTOSAPI NTSTATUS DDKAPI MmIsVerifierEnabled( - OUT PULONG VerifierFlags); + /*OUT*/ PULONG VerifierFlags); NTOSAPI PVOID DDKAPI MmLockPagableDataSection( - IN PVOID AddressWithinSection); + /*IN*/ PVOID AddressWithinSection); NTOSAPI PVOID DDKAPI MmLockPagableImageSection( - IN PVOID AddressWithinSection); + /*IN*/ PVOID AddressWithinSection); /* * PVOID * MmLockPagableCodeSection( - * IN PVOID AddressWithinSection) + * IN PVOID AddressWithinSection) */ #define MmLockPagableCodeSection MmLockPagableDataSection @@ -8079,74 +8084,74 @@ NTOSAPI VOID DDKAPI MmLockPagableSectionByHandle( - IN PVOID ImageSectionHandle); + /*IN*/ PVOID ImageSectionHandle); NTOSAPI PVOID DDKAPI MmMapIoSpace( - IN PHYSICAL_ADDRESS PhysicalAddress, - IN ULONG NumberOfBytes, - IN MEMORY_CACHING_TYPE CacheEnable); + /*IN*/ PHYSICAL_ADDRESS PhysicalAddress, + /*IN*/ ULONG NumberOfBytes, + /*IN*/ MEMORY_CACHING_TYPE CacheEnable); NTOSAPI PVOID DDKAPI MmMapLockedPages( - IN PMDL MemoryDescriptorList, - IN KPROCESSOR_MODE AccessMode); + /*IN*/ PMDL MemoryDescriptorList, + /*IN*/ KPROCESSOR_MODE AccessMode); NTOSAPI VOID DDKAPI MmPageEntireDriver( - IN PVOID AddressWithinSection); + /*IN*/ PVOID AddressWithinSection); NTOSAPI VOID DDKAPI MmProbeAndLockProcessPages( - IN OUT PMDL MemoryDescriptorList, - IN PEPROCESS Process, - IN KPROCESSOR_MODE AccessMode, - IN LOCK_OPERATION Operation); + /*IN OUT*/ PMDL MemoryDescriptorList, + /*IN*/ PEPROCESS Process, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN*/ LOCK_OPERATION Operation); NTOSAPI NTSTATUS DDKAPI MmProtectMdlSystemAddress( - IN PMDL MemoryDescriptorList, - IN ULONG NewProtect); + /*IN*/ PMDL MemoryDescriptorList, + /*IN*/ ULONG NewProtect); NTOSAPI VOID DDKAPI MmUnmapLockedPages( - IN PVOID BaseAddress, - IN PMDL MemoryDescriptorList); + /*IN*/ PVOID BaseAddress, + /*IN*/ PMDL MemoryDescriptorList); NTOSAPI NTSTATUS DDKAPI MmUnmapViewInSessionSpace( - IN PVOID MappedBase); + /*IN*/ PVOID MappedBase); NTOSAPI NTSTATUS DDKAPI MmUnmapViewInSystemSpace( - IN PVOID MappedBase); + /*IN*/ PVOID MappedBase); NTOSAPI VOID DDKAPI MmUnsecureVirtualMemory( - IN HANDLE SecureHandle); + /*IN*/ HANDLE SecureHandle); /* * VOID * MmPrepareMdlForReuse( - * IN PMDL Mdl) + * IN PMDL Mdl) */ #define MmPrepareMdlForReuse(_Mdl) \ { \ @@ -8162,9 +8167,9 @@ NTOSAPI VOID DDKAPI MmProbeAndLockPages( - IN OUT PMDL MemoryDescriptorList, - IN KPROCESSOR_MODE AccessMode, - IN LOCK_OPERATION Operation); + /*IN OUT*/ PMDL MemoryDescriptorList, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN*/ LOCK_OPERATION Operation); NTOSAPI MM_SYSTEM_SIZE @@ -8176,63 +8181,63 @@ NTOSAPI NTSTATUS DDKAPI MmRemovePhysicalMemory( - IN PPHYSICAL_ADDRESS StartAddress, - IN OUT PLARGE_INTEGER NumberOfBytes); + /*IN*/ PPHYSICAL_ADDRESS StartAddress, + /*IN OUT*/ PLARGE_INTEGER NumberOfBytes); NTOSAPI VOID DDKAPI MmResetDriverPaging( - IN PVOID AddressWithinSection); + /*IN*/ PVOID AddressWithinSection); NTOSAPI HANDLE DDKAPI MmSecureVirtualMemory( - IN PVOID Address, - IN SIZE_T Size, - IN ULONG ProbeMode); + /*IN*/ PVOID Address, + /*IN*/ SIZE_T Size, + /*IN*/ ULONG ProbeMode); NTOSAPI ULONG DDKAPI MmSizeOfMdl( - IN PVOID Base, - IN SIZE_T Length); + /*IN*/ PVOID Base, + /*IN*/ SIZE_T Length); NTOSAPI VOID DDKAPI MmUnlockPagableImageSection( - IN PVOID ImageSectionHandle); + /*IN*/ PVOID ImageSectionHandle); NTOSAPI VOID DDKAPI MmUnlockPages( - IN PMDL MemoryDescriptorList); + /*IN*/ PMDL MemoryDescriptorList); NTOSAPI VOID DDKAPI MmUnmapIoSpace( - IN PVOID BaseAddress, - IN SIZE_T NumberOfBytes); + /*IN*/ PVOID BaseAddress, + /*IN*/ SIZE_T NumberOfBytes); NTOSAPI VOID DDKAPI MmUnmapReservedMapping( - IN PVOID BaseAddress, - IN ULONG PoolTag, - IN PMDL MemoryDescriptorList); + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG PoolTag, + /*IN*/ PMDL MemoryDescriptorList); NTOSAPI VOID DDKAPI MmUnmapVideoDisplay( - IN PVOID BaseAddress, - IN SIZE_T NumberOfBytes); + /*IN*/ PVOID BaseAddress, + /*IN*/ SIZE_T NumberOfBytes); @@ -8242,10 +8247,10 @@ NTOSAPI NTSTATUS DDKAPI ObAssignSecurity( - IN PACCESS_STATE AccessState, - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PVOID Object, - IN POBJECT_TYPE Type); + /*IN*/ PACCESS_STATE AccessState, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PVOID Object, + /*IN*/ POBJECT_TYPE Type); NTOSAPI VOID @@ -8258,12 +8263,12 @@ NTOSAPI VOID DDKFASTAPI ObfDereferenceObject( - IN PVOID Object); + /*IN*/ PVOID Object); /* * VOID * ObDereferenceObject( - * IN PVOID Object) + * IN PVOID Object) */ #define ObDereferenceObject ObfDereferenceObject @@ -8271,38 +8276,38 @@ NTOSAPI NTSTATUS DDKAPI ObGetObjectSecurity( - IN PVOID Object, - OUT PSECURITY_DESCRIPTOR *SecurityDescriptor, - OUT PBOOLEAN MemoryAllocated); + /*IN*/ PVOID Object, + /*OUT*/ PSECURITY_DESCRIPTOR *SecurityDescriptor, + /*OUT*/ PBOOLEAN MemoryAllocated); NTOSAPI NTSTATUS DDKAPI ObInsertObject( - IN PVOID Object, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess, - IN ULONG AdditionalReferences, - OUT PVOID* ReferencedObject OPTIONAL, - OUT PHANDLE Handle); + /*IN*/ PVOID Object, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG AdditionalReferences, + /*OUT*/ PVOID* ReferencedObject /*OPTIONAL*/, + /*OUT*/ PHANDLE Handle); NTOSAPI VOID DDKFASTAPI ObfReferenceObject( - IN PVOID Object); + /*IN*/ PVOID Object); NTOSAPI NTSTATUS DDKAPI ObLogSecurityDescriptor( - IN PSECURITY_DESCRIPTOR InputSecurityDescriptor, - OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor, - IN ULONG RefBias); + /*IN*/ PSECURITY_DESCRIPTOR InputSecurityDescriptor, + /*OUT*/ PSECURITY_DESCRIPTOR *OutputSecurityDescriptor, + /*IN*/ ULONG RefBias); /* * VOID * ObReferenceObject( - * IN PVOID Object) + * IN PVOID Object) */ #define ObReferenceObject ObfReferenceObject @@ -8310,85 +8315,85 @@ NTOSAPI VOID DDKAPI ObMakeTemporaryObject( - IN PVOID Object); + /*IN*/ PVOID Object); NTOSAPI NTSTATUS DDKAPI ObOpenObjectByName( - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN POBJECT_TYPE ObjectType, - IN OUT PVOID ParseContext OPTIONAL, - IN KPROCESSOR_MODE AccessMode, - IN ACCESS_MASK DesiredAccess, - IN PACCESS_STATE PassedAccessState, - OUT PHANDLE Handle); + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ POBJECT_TYPE ObjectType, + /*IN OUT*/ PVOID ParseContext /*OPTIONAL*/, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PACCESS_STATE PassedAccessState, + /*OUT*/ PHANDLE Handle); NTOSAPI NTSTATUS DDKAPI ObOpenObjectByPointer( - IN PVOID Object, - IN ULONG HandleAttributes, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess OPTIONAL, - IN POBJECT_TYPE ObjectType OPTIONAL, - IN KPROCESSOR_MODE AccessMode, - OUT PHANDLE Handle); + /*IN*/ PVOID Object, + /*IN*/ ULONG HandleAttributes, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess /*OPTIONAL*/, + /*IN*/ POBJECT_TYPE ObjectType /*OPTIONAL*/, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PHANDLE Handle); NTOSAPI NTSTATUS DDKAPI ObQueryObjectAuditingByHandle( - IN HANDLE Handle, - OUT PBOOLEAN GenerateOnClose); + /*IN*/ HANDLE Handle, + /*OUT*/ PBOOLEAN GenerateOnClose); NTOSAPI NTSTATUS DDKAPI ObReferenceObjectByHandle( - IN HANDLE Handle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_TYPE ObjectType OPTIONAL, - IN KPROCESSOR_MODE AccessMode, - OUT PVOID *Object, - OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL); + /*IN*/ HANDLE Handle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_TYPE ObjectType /*OPTIONAL*/, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PVOID *Object, + /*OUT*/ POBJECT_HANDLE_INFORMATION HandleInformation /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ObReferenceObjectByName( - IN PUNICODE_STRING ObjectPath, - IN ULONG Attributes, - IN PACCESS_STATE PassedAccessState OPTIONAL, - IN ACCESS_MASK DesiredAccess OPTIONAL, - IN POBJECT_TYPE ObjectType, - IN KPROCESSOR_MODE AccessMode, - IN OUT PVOID ParseContext OPTIONAL, - OUT PVOID *Object); + /*IN*/ PUNICODE_STRING ObjectPath, + /*IN*/ ULONG Attributes, + /*IN*/ PACCESS_STATE PassedAccessState /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess /*OPTIONAL*/, + /*IN*/ POBJECT_TYPE ObjectType, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*IN OUT*/ PVOID ParseContext /*OPTIONAL*/, + /*OUT*/ PVOID *Object); NTOSAPI NTSTATUS DDKAPI ObReferenceObjectByPointer( - IN PVOID Object, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_TYPE ObjectType, - IN KPROCESSOR_MODE AccessMode); + /*IN*/ PVOID Object, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_TYPE ObjectType, + /*IN*/ KPROCESSOR_MODE AccessMode); NTOSAPI VOID DDKAPI ObReferenceSecurityDescriptor( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG Count); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG Count); NTOSAPI VOID DDKAPI ObReleaseObjectSecurity( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN BOOLEAN MemoryAllocated); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ BOOLEAN MemoryAllocated); @@ -8398,21 +8403,21 @@ NTOSAPI NTSTATUS DDKAPI PsCreateSystemProcess( - IN PHANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*IN*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI PsCreateSystemThread( - OUT PHANDLE ThreadHandle, - IN ULONG DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, - IN HANDLE ProcessHandle OPTIONAL, - OUT PCLIENT_ID ClientId OPTIONAL, - IN PKSTART_ROUTINE StartRoutine, - IN PVOID StartContext); + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ULONG DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, + /*OUT*/ PCLIENT_ID ClientId /*OPTIONAL*/, + /*IN*/ PKSTART_ROUTINE StartRoutine, + /*IN*/ PVOID StartContext); /* * PEPROCESS @@ -8443,47 +8448,47 @@ NTOSAPI BOOLEAN DDKAPI PsGetVersion( - PULONG MajorVersion OPTIONAL, - PULONG MinorVersion OPTIONAL, - PULONG BuildNumber OPTIONAL, - PUNICODE_STRING CSDVersion OPTIONAL); + PULONG MajorVersion /*OPTIONAL*/, + PULONG MinorVersion /*OPTIONAL*/, + PULONG BuildNumber /*OPTIONAL*/, + PUNICODE_STRING CSDVersion /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI PsRemoveCreateThreadNotifyRoutine( - IN PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine); + /*IN*/ PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine); NTOSAPI NTSTATUS DDKAPI PsRemoveLoadImageNotifyRoutine( - IN PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine); + /*IN*/ PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine); NTOSAPI NTSTATUS DDKAPI PsSetCreateProcessNotifyRoutine( - IN PCREATE_PROCESS_NOTIFY_ROUTINE NotifyRoutine, - IN BOOLEAN Remove); + /*IN*/ PCREATE_PROCESS_NOTIFY_ROUTINE NotifyRoutine, + /*IN*/ BOOLEAN Remove); NTOSAPI NTSTATUS DDKAPI PsSetCreateThreadNotifyRoutine( - IN PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine); + /*IN*/ PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine); NTOSAPI NTSTATUS DDKAPI PsSetLoadImageNotifyRoutine( - IN PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine); + /*IN*/ PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine); NTOSAPI NTSTATUS DDKAPI PsTerminateSystemThread( - IN NTSTATUS ExitStatus); + /*IN*/ NTSTATUS ExitStatus); @@ -8493,48 +8498,48 @@ NTOSAPI BOOLEAN DDKAPI SeAccessCheck( - IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, - IN BOOLEAN SubjectContextLocked, - IN ACCESS_MASK DesiredAccess, - IN ACCESS_MASK PreviouslyGrantedAccess, - OUT PPRIVILEGE_SET *Privileges OPTIONAL, - IN PGENERIC_MAPPING GenericMapping, - IN KPROCESSOR_MODE AccessMode, - OUT PACCESS_MASK GrantedAccess, - OUT PNTSTATUS AccessStatus); + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, + /*IN*/ BOOLEAN SubjectContextLocked, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ACCESS_MASK PreviouslyGrantedAccess, + /*OUT*/ PPRIVILEGE_SET *Privileges /*OPTIONAL*/, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ KPROCESSOR_MODE AccessMode, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PNTSTATUS AccessStatus); NTOSAPI NTSTATUS DDKAPI SeAssignSecurity( - IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, - IN PSECURITY_DESCRIPTOR ExplicitDescriptor OPTIONAL, - OUT PSECURITY_DESCRIPTOR *NewDescriptor, - IN BOOLEAN IsDirectoryObject, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext, - IN PGENERIC_MAPPING GenericMapping, - IN POOL_TYPE PoolType); + /*IN*/ PSECURITY_DESCRIPTOR ParentDescriptor /*OPTIONAL*/, + /*IN*/ PSECURITY_DESCRIPTOR ExplicitDescriptor /*OPTIONAL*/, + /*OUT*/ PSECURITY_DESCRIPTOR *NewDescriptor, + /*IN*/ BOOLEAN IsDirectoryObject, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ POOL_TYPE PoolType); NTOSAPI NTSTATUS DDKAPI SeAssignSecurityEx( - IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, - IN PSECURITY_DESCRIPTOR ExplicitDescriptor OPTIONAL, - OUT PSECURITY_DESCRIPTOR *NewDescriptor, - IN GUID *ObjectType OPTIONAL, - IN BOOLEAN IsDirectoryObject, - IN ULONG AutoInheritFlags, - IN PSECURITY_SUBJECT_CONTEXT SubjectContext, - IN PGENERIC_MAPPING GenericMapping, - IN POOL_TYPE PoolType); + /*IN*/ PSECURITY_DESCRIPTOR ParentDescriptor /*OPTIONAL*/, + /*IN*/ PSECURITY_DESCRIPTOR ExplicitDescriptor /*OPTIONAL*/, + /*OUT*/ PSECURITY_DESCRIPTOR *NewDescriptor, + /*IN*/ GUID *ObjectType /*OPTIONAL*/, + /*IN*/ BOOLEAN IsDirectoryObject, + /*IN*/ ULONG AutoInheritFlags, + /*IN*/ PSECURITY_SUBJECT_CONTEXT SubjectContext, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ POOL_TYPE PoolType); NTOSAPI NTSTATUS DDKAPI SeDeassignSecurity( - IN OUT PSECURITY_DESCRIPTOR *SecurityDescriptor); + /*IN OUT*/ PSECURITY_DESCRIPTOR *SecurityDescriptor); NTOSAPI BOOLEAN @@ -8547,8 +8552,8 @@ NTOSAPI BOOLEAN DDKAPI SeValidSecurityDescriptor( - IN ULONG Length, - IN PSECURITY_DESCRIPTOR SecurityDescriptor); + /*IN*/ ULONG Length, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor); @@ -8558,20 +8563,20 @@ NTOSAPI NTSTATUS DDKAPI NtOpenProcess( - OUT PHANDLE ProcessHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN PCLIENT_ID ClientId OPTIONAL); + /*OUT*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI NtQueryInformationProcess( - IN HANDLE ProcessHandle, - IN PROCESSINFOCLASS ProcessInformationClass, - OUT PVOID ProcessInformation, - IN ULONG ProcessInformationLength, - OUT PULONG ReturnLength OPTIONAL); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*OUT*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); @@ -8581,369 +8586,369 @@ NTOSAPI NTSTATUS DDKAPI ZwCancelTimer( - IN HANDLE TimerHandle, - OUT PBOOLEAN CurrentState OPTIONAL); + /*IN*/ HANDLE TimerHandle, + /*OUT*/ PBOOLEAN CurrentState /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI NtClose( - IN HANDLE Handle); + /*IN*/ HANDLE Handle); NTOSAPI NTSTATUS DDKAPI ZwClose( - IN HANDLE Handle); + /*IN*/ HANDLE Handle); NTOSAPI NTSTATUS DDKAPI ZwCreateDirectoryObject( - OUT PHANDLE DirectoryHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI NtCreateEvent( - OUT PHANDLE EventHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN ManualReset, - IN BOOLEAN InitialState); + /*OUT*/ PHANDLE EventHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN ManualReset, + /*IN*/ BOOLEAN InitialState); NTOSAPI NTSTATUS DDKAPI ZwCreateEvent( - OUT PHANDLE EventHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN BOOLEAN ManualReset, - IN BOOLEAN InitialState); + /*OUT*/ PHANDLE EventHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN ManualReset, + /*IN*/ BOOLEAN InitialState); NTOSAPI NTSTATUS DDKAPI ZwCreateFile( - OUT PHANDLE FileHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PLARGE_INTEGER AllocationSize OPTIONAL, - IN ULONG FileAttributes, - IN ULONG ShareAccess, - IN ULONG CreateDisposition, - IN ULONG CreateOptions, - IN PVOID EaBuffer OPTIONAL, - IN ULONG EaLength); + /*OUT*/ PHANDLE FileHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PLARGE_INTEGER AllocationSize /*OPTIONAL*/, + /*IN*/ ULONG FileAttributes, + /*IN*/ ULONG ShareAccess, + /*IN*/ ULONG CreateDisposition, + /*IN*/ ULONG CreateOptions, + /*IN*/ PVOID EaBuffer /*OPTIONAL*/, + /*IN*/ ULONG EaLength); NTOSAPI NTSTATUS DDKAPI ZwCreateKey( - OUT PHANDLE KeyHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - IN ULONG TitleIndex, - IN PUNICODE_STRING Class OPTIONAL, - IN ULONG CreateOptions, - OUT PULONG Disposition OPTIONAL); + /*OUT*/ PHANDLE KeyHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG TitleIndex, + /*IN*/ PUNICODE_STRING Class /*OPTIONAL*/, + /*IN*/ ULONG CreateOptions, + /*OUT*/ PULONG Disposition /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ZwCreateTimer( - OUT PHANDLE TimerHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, - IN TIMER_TYPE TimerType); + /*OUT*/ PHANDLE TimerHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ TIMER_TYPE TimerType); NTOSAPI NTSTATUS DDKAPI ZwDeleteKey( - IN HANDLE KeyHandle); + /*IN*/ HANDLE KeyHandle); NTOSAPI NTSTATUS DDKAPI ZwDeleteValueKey( - IN HANDLE KeyHandle, - IN PUNICODE_STRING ValueName); + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName); NTOSAPI NTSTATUS DDKAPI NtDeviceIoControlFile( - IN HANDLE DeviceHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL, - IN PVOID UserApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG IoControlCode, - IN PVOID InputBuffer, - IN ULONG InputBufferSize, - OUT PVOID OutputBuffer, - IN ULONG OutputBufferSize); + /*IN*/ HANDLE DeviceHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE UserApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID UserApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG IoControlCode, + /*IN*/ PVOID InputBuffer, + /*IN*/ ULONG InputBufferSize, + /*OUT*/ PVOID OutputBuffer, + /*IN*/ ULONG OutputBufferSize); NTOSAPI NTSTATUS DDKAPI ZwDeviceIoControlFile( - IN HANDLE DeviceHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL, - IN PVOID UserApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG IoControlCode, - IN PVOID InputBuffer, - IN ULONG InputBufferSize, - OUT PVOID OutputBuffer, - IN ULONG OutputBufferSize); + /*IN*/ HANDLE DeviceHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE UserApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID UserApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG IoControlCode, + /*IN*/ PVOID InputBuffer, + /*IN*/ ULONG InputBufferSize, + /*OUT*/ PVOID OutputBuffer, + /*IN*/ ULONG OutputBufferSize); NTOSAPI NTSTATUS DDKAPI ZwEnumerateKey( - IN HANDLE KeyHandle, - IN ULONG Index, - IN KEY_INFORMATION_CLASS KeyInformationClass, - OUT PVOID KeyInformation, - IN ULONG Length, - OUT PULONG ResultLength); + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Index, + /*IN*/ KEY_INFORMATION_CLASS KeyInformationClass, + /*OUT*/ PVOID KeyInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); NTOSAPI NTSTATUS DDKAPI ZwEnumerateValueKey( - IN HANDLE KeyHandle, - IN ULONG Index, - IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, - OUT PVOID KeyValueInformation, - IN ULONG Length, - OUT PULONG ResultLength); + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Index, + /*IN*/ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, + /*OUT*/ PVOID KeyValueInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); NTOSAPI NTSTATUS DDKAPI ZwFlushKey( - IN HANDLE KeyHandle); + /*IN*/ HANDLE KeyHandle); NTOSAPI NTSTATUS DDKAPI ZwMakeTemporaryObject( - IN HANDLE Handle); + /*IN*/ HANDLE Handle); NTOSAPI NTSTATUS DDKAPI NtMapViewOfSection( - IN HANDLE SectionHandle, - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN ULONG CommitSize, - IN OUT PLARGE_INTEGER SectionOffset OPTIONAL, - IN OUT PSIZE_T ViewSize, - IN SECTION_INHERIT InheritDisposition, - IN ULONG AllocationType, - IN ULONG Protect); + /*IN*/ HANDLE SectionHandle, + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN*/ ULONG CommitSize, + /*IN OUT*/ PLARGE_INTEGER SectionOffset /*OPTIONAL*/, + /*IN OUT*/ PSIZE_T ViewSize, + /*IN*/ SECTION_INHERIT InheritDisposition, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect); NTOSAPI NTSTATUS DDKAPI ZwMapViewOfSection( - IN HANDLE SectionHandle, - IN HANDLE ProcessHandle, - IN OUT PVOID *BaseAddress, - IN ULONG ZeroBits, - IN ULONG CommitSize, - IN OUT PLARGE_INTEGER SectionOffset OPTIONAL, - IN OUT PSIZE_T ViewSize, - IN SECTION_INHERIT InheritDisposition, - IN ULONG AllocationType, - IN ULONG Protect); + /*IN*/ HANDLE SectionHandle, + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN*/ ULONG CommitSize, + /*IN OUT*/ PLARGE_INTEGER SectionOffset /*OPTIONAL*/, + /*IN OUT*/ PSIZE_T ViewSize, + /*IN*/ SECTION_INHERIT InheritDisposition, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect); NTOSAPI NTSTATUS DDKAPI NtOpenFile( - OUT PHANDLE FileHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG ShareAccess, - IN ULONG OpenOptions); + /*OUT*/ PHANDLE FileHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG ShareAccess, + /*IN*/ ULONG OpenOptions); NTOSAPI NTSTATUS DDKAPI ZwOpenFile( - OUT PHANDLE FileHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG ShareAccess, - IN ULONG OpenOptions); + /*OUT*/ PHANDLE FileHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG ShareAccess, + /*IN*/ ULONG OpenOptions); NTOSAPI NTSTATUS DDKAPI ZwOpenKey( - OUT PHANDLE KeyHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE KeyHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI ZwOpenSection( - OUT PHANDLE SectionHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI ZwOpenSymbolicLinkObject( - OUT PHANDLE LinkHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE LinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI ZwOpenTimer( - OUT PHANDLE TimerHandle, - IN ACCESS_MASK DesiredAccess, - IN POBJECT_ATTRIBUTES ObjectAttributes); + /*OUT*/ PHANDLE TimerHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); NTOSAPI NTSTATUS DDKAPI ZwQueryInformationFile( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass); + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass); NTOSAPI NTSTATUS DDKAPI ZwQueryKey( - IN HANDLE KeyHandle, - IN KEY_INFORMATION_CLASS KeyInformationClass, - OUT PVOID KeyInformation, - IN ULONG Length, - OUT PULONG ResultLength); + /*IN*/ HANDLE KeyHandle, + /*IN*/ KEY_INFORMATION_CLASS KeyInformationClass, + /*OUT*/ PVOID KeyInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); NTOSAPI NTSTATUS DDKAPI ZwQuerySymbolicLinkObject( - IN HANDLE LinkHandle, - IN OUT PUNICODE_STRING LinkTarget, - OUT PULONG ReturnedLength OPTIONAL); + /*IN*/ HANDLE LinkHandle, + /*IN OUT*/ PUNICODE_STRING LinkTarget, + /*OUT*/ PULONG ReturnedLength /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ZwQueryValueKey( - IN HANDLE KeyHandle, - IN PUNICODE_STRING ValueName, - IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, - OUT PVOID KeyValueInformation, - IN ULONG Length, - OUT PULONG ResultLength); + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName, + /*IN*/ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, + /*OUT*/ PVOID KeyValueInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); NTOSAPI NTSTATUS DDKAPI NtReadFile( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ZwReadFile( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI NtSetEvent( - IN HANDLE EventHandle, - IN PULONG NumberOfThreadsReleased); + /*IN*/ HANDLE EventHandle, + /*IN*/ PULONG NumberOfThreadsReleased); NTOSAPI NTSTATUS DDKAPI ZwSetEvent( - IN HANDLE EventHandle, - IN PULONG NumberOfThreadsReleased); + /*IN*/ HANDLE EventHandle, + /*IN*/ PULONG NumberOfThreadsReleased); NTOSAPI NTSTATUS DDKAPI ZwSetInformationFile( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass); + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass); NTOSAPI NTSTATUS DDKAPI ZwSetInformationThread( - IN HANDLE ThreadHandle, - IN THREADINFOCLASS ThreadInformationClass, - IN PVOID ThreadInformation, - IN ULONG ThreadInformationLength); + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*IN*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength); NTOSAPI NTSTATUS DDKAPI ZwSetTimer( - IN HANDLE TimerHandle, - IN PLARGE_INTEGER DueTime, - IN PTIMER_APC_ROUTINE TimerApcRoutine OPTIONAL, - IN PVOID TimerContext OPTIONAL, - IN BOOLEAN WakeTimer, - IN LONG Period OPTIONAL, - OUT PBOOLEAN PreviousState OPTIONAL); + /*IN*/ HANDLE TimerHandle, + /*IN*/ PLARGE_INTEGER DueTime, + /*IN*/ PTIMER_APC_ROUTINE TimerApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID TimerContext /*OPTIONAL*/, + /*IN*/ BOOLEAN WakeTimer, + /*IN*/ LONG Period /*OPTIONAL*/, + /*OUT*/ PBOOLEAN PreviousState /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ZwSetValueKey( - IN HANDLE KeyHandle, - IN PUNICODE_STRING ValueName, - IN ULONG TitleIndex OPTIONAL, - IN ULONG Type, - IN PVOID Data, - IN ULONG DataSize); + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName, + /*IN*/ ULONG TitleIndex /*OPTIONAL*/, + /*IN*/ ULONG Type, + /*IN*/ PVOID Data, + /*IN*/ ULONG DataSize); /* [Nt|Zw]MapViewOfSection.InheritDisposition constants */ #define AT_EXTENDABLE_FILE 0x00002000 @@ -8955,59 +8960,59 @@ NTOSAPI NTSTATUS DDKAPI NtUnmapViewOfSection( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress); NTOSAPI NTSTATUS DDKAPI ZwUnmapViewOfSection( - IN HANDLE ProcessHandle, - IN PVOID BaseAddress); + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress); NTOSAPI NTSTATUS DDKAPI NtWaitForSingleObject( - IN HANDLE Object, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Time); + /*IN*/ HANDLE Object, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Time); NTOSAPI NTSTATUS DDKAPI ZwWaitForSingleObject( - IN HANDLE Object, - IN BOOLEAN Alertable, - IN PLARGE_INTEGER Time); + /*IN*/ HANDLE Object, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Time); NTOSAPI NTSTATUS DDKAPI NtWriteFile( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PVOID Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI ZwWriteFile( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PVOID Buffer, - IN ULONG Length, - IN PLARGE_INTEGER ByteOffset OPTIONAL, - IN PULONG Key OPTIONAL); + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); @@ -9017,41 +9022,41 @@ NTOSAPI NTSTATUS DDKAPI PoCallDriver( - IN PDEVICE_OBJECT DeviceObject, - IN OUT PIRP Irp); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN OUT*/ PIRP Irp); NTOSAPI PULONG DDKAPI PoRegisterDeviceForIdleDetection( - IN PDEVICE_OBJECT DeviceObject, - IN ULONG ConservationIdleTime, - IN ULONG PerformanceIdleTime, - IN DEVICE_POWER_STATE State); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ ULONG ConservationIdleTime, + /*IN*/ ULONG PerformanceIdleTime, + /*IN*/ DEVICE_POWER_STATE State); NTOSAPI PVOID DDKAPI PoRegisterSystemState( - IN PVOID StateHandle, - IN EXECUTION_STATE Flags); + /*IN*/ PVOID StateHandle, + /*IN*/ EXECUTION_STATE Flags); NTOSAPI NTSTATUS DDKAPI PoRequestPowerIrp( - IN PDEVICE_OBJECT DeviceObject, - IN UCHAR MinorFunction, - IN POWER_STATE PowerState, - IN PREQUEST_POWER_COMPLETE CompletionFunction, - IN PVOID Context, - OUT PIRP *Irp OPTIONAL); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ UCHAR MinorFunction, + /*IN*/ POWER_STATE PowerState, + /*IN*/ PREQUEST_POWER_COMPLETE CompletionFunction, + /*IN*/ PVOID Context, + /*OUT*/ PIRP *Irp /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI PoRequestShutdownEvent( - OUT PVOID *Event); + /*OUT*/ PVOID *Event); NTOSAPI VOID @@ -9063,27 +9068,27 @@ NTOSAPI POWER_STATE DDKAPI PoSetPowerState( - IN PDEVICE_OBJECT DeviceObject, - IN POWER_STATE_TYPE Type, - IN POWER_STATE State); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ POWER_STATE_TYPE Type, + /*IN*/ POWER_STATE State); NTOSAPI VOID DDKAPI PoSetSystemState( - IN EXECUTION_STATE Flags); + /*IN*/ EXECUTION_STATE Flags); NTOSAPI VOID DDKAPI PoStartNextPowerIrp( - IN PIRP Irp); + /*IN*/ PIRP Irp); NTOSAPI VOID DDKAPI PoUnregisterSystemState( - IN PVOID StateHandle); + /*IN*/ PVOID StateHandle); @@ -9093,50 +9098,50 @@ NTOSAPI NTSTATUS DDKAPI WmiCompleteRequest( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - IN NTSTATUS Status, - IN ULONG BufferUsed, - IN CCHAR PriorityBoost); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp, + /*IN*/ NTSTATUS Status, + /*IN*/ ULONG BufferUsed, + /*IN*/ CCHAR PriorityBoost); NTOSAPI NTSTATUS DDKAPI WmiFireEvent( - IN PDEVICE_OBJECT DeviceObject, - IN LPGUID Guid, - IN ULONG InstanceIndex, - IN ULONG EventDataSize, - IN PVOID EventData); + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ LPGUID Guid, + /*IN*/ ULONG InstanceIndex, + /*IN*/ ULONG EventDataSize, + /*IN*/ PVOID EventData); NTOSAPI NTSTATUS DDKAPI WmiQueryTraceInformation( - IN TRACE_INFORMATION_CLASS TraceInformationClass, - OUT PVOID TraceInformation, - IN ULONG TraceInformationLength, - OUT PULONG RequiredLength OPTIONAL, - IN PVOID Buffer OPTIONAL); + /*IN*/ TRACE_INFORMATION_CLASS TraceInformationClass, + /*OUT*/ PVOID TraceInformation, + /*IN*/ ULONG TraceInformationLength, + /*OUT*/ PULONG RequiredLength /*OPTIONAL*/, + /*IN*/ PVOID Buffer /*OPTIONAL*/); NTOSAPI NTSTATUS DDKAPI WmiSystemControl( - IN PWMILIB_CONTEXT WmiLibInfo, - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - OUT PSYSCTL_IRP_DISPOSITION IrpDisposition); + /*IN*/ PWMILIB_CONTEXT WmiLibInfo, + /*IN*/ PDEVICE_OBJECT DeviceObject, + /*IN*/ PIRP Irp, + /*OUT*/ PSYSCTL_IRP_DISPOSITION IrpDisposition); NTOSAPI NTSTATUS DDKCDECLAPI WmiTraceMessage( - IN TRACEHANDLE LoggerHandle, - IN ULONG MessageFlags, - IN LPGUID MessageGuid, - IN USHORT MessageNumber, - IN ...); + /*IN*/ TRACEHANDLE LoggerHandle, + /*IN*/ ULONG MessageFlags, + /*IN*/ LPGUID MessageGuid, + /*IN*/ USHORT MessageNumber, + /*IN*/ ...); #if 0 /* FIXME: Get va_list from where? */ @@ -9144,11 +9149,11 @@ NTOSAPI NTSTATUS DDKCDECLAPI WmiTraceMessageVa( - IN TRACEHANDLE LoggerHandle, - IN ULONG MessageFlags, - IN LPGUID MessageGuid, - IN USHORT MessageNumber, - IN va_list MessageArgList); + /*IN*/ TRACEHANDLE LoggerHandle, + /*IN*/ ULONG MessageFlags, + /*IN*/ LPGUID MessageGuid, + /*IN*/ USHORT MessageNumber, + /*IN*/ va_list MessageArgList); #endif @@ -9176,45 +9181,45 @@ NTOSAPI VOID DDKAPI DbgBreakPointWithStatus( - IN ULONG Status); + /*IN*/ ULONG Status); NTOSAPI ULONG DDKCDECLAPI DbgPrint( - IN PCH Format, - IN ...); + /*IN*/ PCH Format, + /*IN*/ ...); NTOSAPI ULONG DDKCDECLAPI DbgPrintEx( - IN ULONG ComponentId, - IN ULONG Level, - IN PCH Format, - IN ...); + /*IN*/ ULONG ComponentId, + /*IN*/ ULONG Level, + /*IN*/ PCH Format, + /*IN*/ ...); NTOSAPI ULONG DDKCDECLAPI DbgPrintReturnControlC( - IN PCH Format, - IN ...); + /*IN*/ PCH Format, + /*IN*/ ...); NTOSAPI NTSTATUS DDKAPI DbgQueryDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level); + /*IN*/ ULONG ComponentId, + /*IN*/ ULONG Level); NTOSAPI NTSTATUS DDKAPI DbgSetDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level, - IN BOOLEAN State); + /*IN*/ ULONG ComponentId, + /*IN*/ ULONG Level, + /*IN*/ BOOLEAN State); #ifdef DBG diff --git a/winsup/w32api/include/ddk/winnt4.h b/winsup/w32api/include/ddk/winnt4.h index 503d44ca7..b7f6179bf 100644 --- a/winsup/w32api/include/ddk/winnt4.h +++ b/winsup/w32api/include/ddk/winnt4.h @@ -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) diff --git a/winsup/w32api/include/ddk/ws2san.h b/winsup/w32api/include/ddk/ws2san.h index de392c0fa..dbb65a49e 100644 --- a/winsup/w32api/include/ddk/ws2san.h +++ b/winsup/w32api/include/ddk/ws2san.h @@ -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 } diff --git a/winsup/w32api/include/imagehlp.h b/winsup/w32api/include/imagehlp.h index 1f94533c1..448c51d96 100644 --- a/winsup/w32api/include/imagehlp.h +++ b/winsup/w32api/include/imagehlp.h @@ -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*); diff --git a/winsup/w32api/include/rpcdce.h b/winsup/w32api/include/rpcdce.h index 59599d784..edcdd39b5 100644 --- a/winsup/w32api/include/rpcdce.h +++ b/winsup/w32api/include/rpcdce.h @@ -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 +#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 diff --git a/winsup/w32api/include/rpcnsi.h b/winsup/w32api/include/rpcnsi.h index 079d7b2a2..c8b25eb5f 100644 --- a/winsup/w32api/include/rpcnsi.h +++ b/winsup/w32api/include/rpcnsi.h @@ -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*); diff --git a/winsup/w32api/include/rpcnsip.h b/winsup/w32api/include/rpcnsip.h index 15ed76104..3c50dad1f 100644 --- a/winsup/w32api/include/rpcnsip.h +++ b/winsup/w32api/include/rpcnsip.h @@ -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); diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h index ffc09debf..0411c42c5 100644 --- a/winsup/w32api/include/windef.h +++ b/winsup/w32api/include/windef.h @@ -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))