[UMPNPMGR]
[reactos.git] / reactos / include / reactos / idl / pnp.idl
index 49e4943..2acd202 100644 (file)
@@ -261,42 +261,58 @@ typedef struct _DEVPROPKEY {
 interface pnp
 {
     /* Function 0 */
-    DWORD PNP_Disconnect(
+    DWORD
+    __stdcall
+    PNP_Disconnect(
         [in] handle_t hBinding); /* FIXME */
 
     /* Function 1 */
-    DWORD PNP_Connect(
+    DWORD
+    __stdcall
+    PNP_Connect(
         [in] handle_t hBinding); /* FIXME */
 
     /* Function 2 */
-    DWORD PNP_GetVersion(
+    DWORD
+    __stdcall
+    PNP_GetVersion(
         [in] handle_t hBinding,
         [out] WORD *pVersion);
 
     /* Function 3 */
-    DWORD PNP_GetGlobalState(
+    DWORD
+    __stdcall
+    PNP_GetGlobalState(
         [in] handle_t hBinding,
         [out] DWORD *pulState,
         [in] DWORD ulFlags);
 
     /* Function 4 */
-    DWORD PNP_InitDetection(
+    DWORD
+    __stdcall
+    PNP_InitDetection(
         [in] handle_t hBinding);
 
     /* Function 5 */
-    DWORD PNP_ReportLogOn(
+    DWORD
+    __stdcall
+    PNP_ReportLogOn(
         [in] handle_t hBinding,
         [in] BOOL Admin,
         [in] DWORD ProcessId);
 
     /* Function 6 */
-    DWORD PNP_ValidateDeviceInstance(
+    DWORD
+    __stdcall
+    PNP_ValidateDeviceInstance(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulFlags);
 
     /* Function 7 */
-    DWORD PNP_GetRootDeviceInstance(
+    DWORD
+    __stdcall
+    PNP_GetRootDeviceInstance(
         [in] handle_t hBinding,
         [out, string, size_is(ulLength)] LPWSTR pDeviceID,
         [in] PNP_RPC_STRING_LEN ulLength);
@@ -305,7 +321,9 @@ interface pnp
     cpp_quote("#define PNP_GET_PARENT_DEVICE_INSTANCE  0x1")
     cpp_quote("#define PNP_GET_CHILD_DEVICE_INSTANCE   0x2")
     cpp_quote("#define PNP_GET_SIBLING_DEVICE_INSTANCE 0x3")
-    DWORD PNP_GetRelatedDeviceInstance(
+    DWORD
+    __stdcall
+    PNP_GetRelatedDeviceInstance(
         [in] handle_t hBinding,
         [in] DWORD ulRelationship,
         [in, string, ref] LPWSTR pDeviceID,
@@ -316,7 +334,9 @@ interface pnp
     /* Function 9 */
     cpp_quote("#define PNP_ENUMERATOR_SUBKEYS 0x1")
     cpp_quote("#define PNP_CLASS_SUBKEYS      0x2")
-    DWORD PNP_EnumerateSubKeys(
+    DWORD
+    __stdcall
+    PNP_EnumerateSubKeys(
         [in] handle_t hBinding,
         [in] DWORD ulBranch,
         [in] DWORD ulIndex,
@@ -326,7 +346,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 10 */
-    DWORD PNP_GetDeviceList(
+    DWORD
+    __stdcall
+    PNP_GetDeviceList(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pszFilter,
         [out, size_is(*pulLength), length_is(*pulLength)] LPWSTR Buffer,
@@ -334,21 +356,27 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 11 */
-    DWORD PNP_GetDeviceListSize(
+    DWORD
+    __stdcall
+    PNP_GetDeviceListSize(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pszFilter,
         [out] PNP_RPC_BUFFER_SIZE *pulLen,
         [in] DWORD ulFlags);
 
     /* Function 12 */
-    DWORD PNP_GetDepth(
+    DWORD
+    __stdcall
+    PNP_GetDepth(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszDeviceID,
         [out] DWORD *pulDepth,
         [in] DWORD ulFlags);
 
     /* Function 13 */
-    DWORD PNP_GetDeviceRegProp(
+    DWORD
+    __stdcall
+    PNP_GetDeviceRegProp(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulProperty,
@@ -359,7 +387,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 14 */
-    DWORD PNP_SetDeviceRegProp(
+    DWORD
+    __stdcall
+    PNP_SetDeviceRegProp(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceId,
         [in] DWORD ulProperty,
@@ -369,21 +399,27 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 15 */
-    DWORD PNP_GetClassInstance(
+    DWORD
+    __stdcall
+    PNP_GetClassInstance(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceId,
         [out, string, size_is(ulLength)] LPWSTR pszClassInstance,
         [in] PNP_RPC_STRING_LEN ulLength);
 
     /* Function 16 */
-    DWORD PNP_CreateKey(
+    DWORD
+    __stdcall
+    PNP_CreateKey(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszSubKey,
         [in] DWORD samDesired,
         [in] DWORD ulFlags);
 
     /* Function 17 */
-    DWORD PNP_DeleteRegistryKey(
+    DWORD
+    __stdcall
+    PNP_DeleteRegistryKey(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszDeviceID,
         [in, string, ref] LPWSTR pszParentKey,
@@ -391,13 +427,17 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 18 */
-    DWORD PNP_GetClassCount(
+    DWORD
+    __stdcall
+    PNP_GetClassCount(
         [in] handle_t hBinding,
         [out] DWORD *pulClassCount,
         [in] DWORD ulFlags);
 
     /* Function 19 */
-    DWORD PNP_GetClassName(
+    DWORD
+    __stdcall
+    PNP_GetClassName(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszClassGuid,
         [out, string, size_is(*pulLength)] LPWSTR Buffer,
@@ -405,13 +445,17 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 20 */
-    DWORD PNP_DeleteClassKey(
+    DWORD
+    __stdcall
+    PNP_DeleteClassKey(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszClassGuid,
         [in] DWORD ulFlags);
 
     /* Function 21 */
-    DWORD PNP_GetInterfaceDeviceAlias(
+    DWORD
+    __stdcall
+    PNP_GetInterfaceDeviceAlias(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszInterfaceDevice,
         [in] GUID *AliasInterfaceGuid,
@@ -421,7 +465,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 22 */
-    DWORD PNP_GetInterfaceDeviceList(
+    DWORD
+    __stdcall
+    PNP_GetInterfaceDeviceList(
         [in] handle_t hBinding,
         [in] GUID *InterfaceGuid,
         [in, string, unique] LPWSTR pszDeviceID,
@@ -430,7 +476,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 23 */
-    DWORD PNP_GetInterfaceDeviceListSize(
+    DWORD
+    __stdcall
+    PNP_GetInterfaceDeviceListSize(
         [in] handle_t hBinding,
         [out] PNP_RPC_BUFFER_SIZE *pulLen,
         [in] GUID *InterfaceGuid,
@@ -438,7 +486,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 24 */
-    DWORD PNP_RegisterDeviceClassAssociation(
+    DWORD
+    __stdcall
+    PNP_RegisterDeviceClassAssociation(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pszDeviceID,
         [in] GUID *InterfaceGuid,
@@ -449,13 +499,17 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 25 */
-    DWORD PNP_UnregisterDeviceClassAssociation(
+    DWORD
+    __stdcall
+    PNP_UnregisterDeviceClassAssociation(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pszInterfaceDevice,
         [in] DWORD ulFlags);
 
     /* Function 26 */
-    DWORD PNP_GetClassRegProp(
+    DWORD
+    __stdcall
+    PNP_GetClassRegProp(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszClassGuid,
         [in] DWORD ulProperty,
@@ -466,7 +520,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 27 */
-    DWORD PNP_SetClassRegProp(
+    DWORD
+    __stdcall
+    PNP_SetClassRegProp(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszClassGuid,
         [in] DWORD ulProperty,
@@ -476,7 +532,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 28 */
-    DWORD PNP_CreateDevInst(
+    DWORD
+    __stdcall
+    PNP_CreateDevInst(
         [in] handle_t hBinding,
         [in, out, string, size_is(ulLength)] LPWSTR pszDeviceID,
         [in, string, ref] LPWSTR pszParentDeviceID,
@@ -489,7 +547,9 @@ interface pnp
     cpp_quote("#define PNP_DEVINST_ENABLE      0x4")
     cpp_quote("#define PNP_DEVINST_DISABLE     0x5")
     cpp_quote("#define PNP_DEVINST_REENUMERATE 0x7")
-    DWORD PNP_DeviceInstanceAction(
+    DWORD
+    __stdcall
+    PNP_DeviceInstanceAction(
         [in] handle_t hBinding,
         [in] DWORD ulAction,
         [in] DWORD ulFlags,
@@ -497,7 +557,9 @@ interface pnp
         [in, string, unique] LPWSTR pszDeviceInstance2);
 
     /* Function 30 */
-    DWORD PNP_GetDeviceStatus(
+    DWORD
+    __stdcall
+    PNP_GetDeviceStatus(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pDeviceID,
         [out] DWORD *pulStatus,
@@ -505,14 +567,18 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 31 */
-    DWORD PNP_SetDeviceProblem(
+    DWORD
+    __stdcall
+    PNP_SetDeviceProblem(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pDeviceID,
         [in] DWORD ulProblem,
         [in] DWORD ulFlags);
 
     /* Function 32 */
-    DWORD PNP_DisableDevInst(
+    DWORD
+    __stdcall
+    PNP_DisableDevInst(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pDeviceID,
         [in, out, unique] PPNP_VETO_TYPE pVetoType,
@@ -521,26 +587,34 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 33 */
-    DWORD PNP_UninstallDevInst(
+    DWORD
+    __stdcall
+    PNP_UninstallDevInst(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pDeviceID,
         [in] DWORD ulFlags);
 
     /* Function 34 */
-    DWORD PNP_AddID(
+    DWORD
+    __stdcall
+    PNP_AddID(
         [in] handle_t hBinding,
         [in, string, unique] LPWSTR pszDeviceID,
         [in, string, ref] LPWSTR pszID,
         [in] DWORD ulFlags);
 
     /* Function 35 */
-    DWORD PNP_RegisterDriver(
+    DWORD
+    __stdcall
+    PNP_RegisterDriver(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszDeviceID,
         [in] DWORD ulFlags);
 
     /* Function 36 */
-    DWORD PNP_QueryRemove(
+    DWORD
+    __stdcall
+    PNP_QueryRemove(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszDeviceID,
         [in, out, unique] PPNP_VETO_TYPE pVetoType,
@@ -549,7 +623,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 37 */
-    DWORD PNP_RequestDeviceEject(
+    DWORD
+    __stdcall
+    PNP_RequestDeviceEject(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pszDeviceID,
         [in, out, unique] PPNP_VETO_TYPE pVetoType,
@@ -558,18 +634,24 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 38 */
-    DWORD PNP_IsDockStationPresent(
+    DWORD
+    __stdcall
+    PNP_IsDockStationPresent(
         [in] handle_t hBinding,
         [in, out, unique] BOOL *Present);
 
     /* Function 39 */
-    DWORD PNP_RequestEjectPC(
+    DWORD
+    __stdcall
+    PNP_RequestEjectPC(
         [in] handle_t hBinding);
 
     /* Function 40 */
     cpp_quote("#define PNP_GET_HWPROFFLAGS 0x1")
     cpp_quote("#define PNP_SET_HWPROFFLAGS 0x2")
-    DWORD PNP_HwProfFlags(
+    DWORD
+    __stdcall
+    PNP_HwProfFlags(
         [in] handle_t hBinding,
         [in] DWORD ulAction,
         [in, string, ref] LPWSTR pDeviceID,
@@ -581,7 +663,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 41 */
-    DWORD PNP_GetHwProfInfo(
+    DWORD
+    __stdcall
+    PNP_GetHwProfInfo(
         [in] handle_t hBinding,
         [in] DWORD ulIndex,
         [in, out, ref] HWPROFILEINFO *pHWProfileInfo,
@@ -590,7 +674,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 42 */
-    DWORD PNP_AddEmptyLogConf(
+    DWORD
+    __stdcall
+    PNP_AddEmptyLogConf(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulPriority,
@@ -598,7 +684,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 43 */
-    DWORD PNP_FreeLogConf(
+    DWORD
+    __stdcall
+    PNP_FreeLogConf(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfType,
@@ -606,7 +694,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 44 */
-    DWORD PNP_GetFirstLogConf(
+    DWORD
+    __stdcall
+    PNP_GetFirstLogConf(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfType,
@@ -614,7 +704,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 45 */
-    DWORD PNP_GetNextLogConf(
+    DWORD
+    __stdcall
+    PNP_GetNextLogConf(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfType,
@@ -623,7 +715,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 46 */
-    DWORD PNP_GetLogConfPriority(
+    DWORD
+    __stdcall
+    PNP_GetLogConfPriority(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulType,
@@ -632,7 +726,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 47 */
-    DWORD PNP_AddResDes(
+    DWORD
+    __stdcall
+    PNP_AddResDes(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -644,7 +740,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 48 */
-    DWORD PNP_FreeResDes(
+    DWORD
+    __stdcall
+    PNP_FreeResDes(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -656,7 +754,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 49 */
-    DWORD PNP_GetNextResDes(
+    DWORD
+    __stdcall
+    PNP_GetNextResDes(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -668,7 +768,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 50 */
-    DWORD PNP_GetResDesData(
+    DWORD
+    __stdcall
+    PNP_GetResDesData(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -680,7 +782,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 51 */
-    DWORD PNP_GetResDesDataSize(
+    DWORD
+    __stdcall
+    PNP_GetResDesDataSize(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -691,7 +795,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 52 */
-    DWORD PNP_ModifyResDes(
+    DWORD
+    __stdcall
+    PNP_ModifyResDes(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] DWORD ulLogConfTag,
@@ -704,7 +810,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 53 */
-    DWORD PNP_DetectResourceConflict(
+    DWORD
+    __stdcall
+    PNP_DetectResourceConflict(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] RESOURCEID ResourceID,
@@ -714,7 +822,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 54 */
-    DWORD PNP_QueryResConfList(
+    DWORD
+    __stdcall
+    PNP_QueryResConfList(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in] RESOURCEID ResourceID,
@@ -725,13 +835,17 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 55 */
-    DWORD PNP_SetHwProf(
+    DWORD
+    __stdcall
+    PNP_SetHwProf(
         [in] handle_t hBinding,
         [in] DWORD ulHardwareProfile,
         [in] DWORD ulFlags);
 
     /* Function 56 */
-    DWORD PNP_QueryArbitratorFreeData(
+    DWORD
+    __stdcall
+    PNP_QueryArbitratorFreeData(
         [in] handle_t hBinding,
         [out,size_is(DataLen)] BYTE *pData,
         [in] DWORD DataLen,
@@ -740,7 +854,9 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 57 */
-    DWORD PNP_QueryArbitratorFreeSize(
+    DWORD
+    __stdcall
+    PNP_QueryArbitratorFreeSize(
         [in] handle_t hBinding,
         [out] DWORD *pulSize,
         [in, string, ref] LPWSTR pDeviceID,
@@ -748,22 +864,30 @@ interface pnp
         [in] DWORD ulFlags);
 
     /* Function 58 */
-    DWORD PNP_RunDetection(
+    DWORD
+    __stdcall
+    PNP_RunDetection(
         [in] handle_t hBinding,
         [in] DWORD ulFlags);
 
     /* Function 59 */
-    DWORD PNP_RegisterNotification(
+    DWORD
+    __stdcall
+    PNP_RegisterNotification(
         [in] handle_t hBinding);
 
     /* Function 60 */
-    DWORD PNP_UnregisterNotification(
+    DWORD
+    __stdcall
+    PNP_UnregisterNotification(
         [in] handle_t hBinding);
 
 cpp_quote("#if _WIN32_WINNT >= 0x0501")
 
     /* Function 61 */
-    DWORD PNP_GetCustomDevProp(
+    DWORD
+    __stdcall
+    PNP_GetCustomDevProp(
         [in] handle_t hBinding,
         [in, string, ref] LPWSTR pDeviceID,
         [in, string, ref] LPWSTR CustomPropName,
@@ -774,12 +898,16 @@ cpp_quote("#if _WIN32_WINNT >= 0x0501")
         [in] DWORD ulFlags);
 
     /* Function 62 */
-    DWORD PNP_GetVersionInternal(
+    DWORD
+    __stdcall
+    PNP_GetVersionInternal(
         [in] handle_t hBinding,
         [in, out] WORD *pwVersion);
 
     /* Function 63 */
-    DWORD PNP_GetBlockedDriverInfo(
+    DWORD
+    __stdcall
+    PNP_GetBlockedDriverInfo(
         [in] handle_t hBinding,
         [out, size_is(*pulLength), length_is(*pulTransferLen)] BYTE *Buffer,
         [out] PNP_RPC_BUFFER_SIZE *pulTransferLen,
@@ -787,7 +915,9 @@ cpp_quote("#if _WIN32_WINNT >= 0x0501")
         [in] DWORD ulFlags);
 
     /* Function 64 */
-    DWORD PNP_GetServerSideDeviceInstallFlags(
+    DWORD
+    __stdcall
+    PNP_GetServerSideDeviceInstallFlags(
         [in] handle_t hBinding,
         [out] DWORD *pulSSDIFlags,
         [in] DWORD ulFlags);