2 * Plug and Play Manager RPC interface definition
5 #define WORD unsigned short
6 #define DWORD unsigned long
7 #define CONFIGRET unsigned long
8 #define BOOL unsigned long
9 #define PBOOL unsigned long *
12 uuid (809F4e40-A03D-11CE-8F69-08003E30051B),
14 pointer_default(unique)
22 // CONFIGRET PNP_Unknown0(handle_t BindingHandle);
25 // CONFIGRET PNP_Unknown1(handle_t BindingHandle);
28 CONFIGRET PNP_GetVersion(handle_t BindingHandle,
32 CONFIGRET PNP_GetGlobalState(handle_t BindingHandle,
33 [out] unsigned long *State,
34 [in] unsigned long Flags);
37 CONFIGRET PNP_InitDetection(handle_t BindingHandle);
40 CONFIGRET PNP_ReportLogOn(handle_t BindingHandle,
42 [in] DWORD ProcessId);
45 CONFIGRET PNP_ValidateDeviceInstance(handle_t BindingHandle,
46 [in, string] wchar_t *DeviceInstance,
50 CONFIGRET PNP_GetRootDeviceInstance(handle_t BindingHandle,
51 [out, string, size_is(Length)] wchar_t *DeviceInstance,
55 cpp_quote("#define PNP_DEVICE_PARENT 1")
56 cpp_quote("#define PNP_DEVICE_CHILD 2")
57 cpp_quote("#define PNP_DEVICE_SIBLING 3")
58 CONFIGRET PNP_GetRelatedDeviceInstance(handle_t BindingHandle,
59 [in] DWORD Relationship,
60 [in, string] wchar_t *DeviceId,
61 [out, string, size_is(Length)] wchar_t *RelatedDeviceId,
66 cpp_quote("#define PNP_BRANCH_ENUM 1")
67 cpp_quote("#define PNP_BRANCH_CLASS 2")
68 CONFIGRET PNP_EnumerateSubKeys(handle_t BindingHandle,
69 [in] unsigned long Branch,
70 [in] unsigned long Index,
71 [out, string, size_is(Length)] wchar_t *Buffer,
72 [in] unsigned long Length,
73 [out] unsigned long *RequiredLength,
77 // CONFIGRET PNP_GetDeviceList(handle_t BindingHandle,
78 // [in, unique, string] wchar_t *Filter,
79 // [out, string, size_is(*Length)] unsigned char *Buffer
80 // [in, out] unsigned long *Length,
84 CONFIGRET PNP_GetDeviceListSize(handle_t BindingHandle,
85 [in, unique, string] wchar_t *Filter,
86 [out] unsigned long *Length,
90 CONFIGRET PNP_GetDepth(handle_t BindingHandle,
91 [in, string] wchar_t *DeviceInstance,
92 [out] unsigned long *Depth,
96 CONFIGRET PNP_GetDeviceRegProp(handle_t BindingHandle,
97 [in, string] wchar_t *DeviceInstance,
98 [in] unsigned long Property,
99 [in, out] unsigned long *DataType,
100 [out, size_is(*TransferLen)] char *Buffer,
101 [in, out] unsigned long *TransferLen,
102 [in, out] unsigned long *Length,
106 CONFIGRET PNP_SetDeviceRegProp(handle_t BindingHandle,
107 [in, string] wchar_t *DeviceId,
108 [in] unsigned long Property,
109 [in] unsigned long DataType,
110 [in, size_is(Length)] char *Buffer,
111 [in] unsigned long Length,
112 [in] unsigned long Flags);
115 CONFIGRET PNP_GetClassInstance(handle_t BindingHandle,
116 [in, string] wchar_t *DeviceId,
117 [out, string, size_is(Length)] wchar_t *Buffer,
118 [in] unsigned long Length);
121 CONFIGRET PNP_CreateKey(handle_t BindingHandle,
122 [in, string] wchar_t *SubKey,
123 [in] unsigned long DesiredAccess,
124 [in] unsigned long Flags);
127 CONFIGRET PNP_DeleteRegistryKey(handle_t BindingHandle,
128 [in, string] wchar_t *DeviceId,
129 [in, string] wchar_t *ParentKey,
130 [in, string] wchar_t *ChildKey,
131 [in] unsigned long Flags);
134 CONFIGRET PNP_GetClassName(handle_t BindingHandle,
135 [in, string] wchar_t *ClassGuid,
136 [out, string, size_is(*Length)] wchar_t *Buffer,
137 [in, out] unsigned long *Length,
138 [in] unsigned long Flags);
141 CONFIGRET PNP_DeleteClassKey(handle_t BindingHandle,
142 [in, string] wchar_t *ClassGuid,
143 [in] unsigned long Flags);
146 CONFIGRET PNP_CreateDevInst(handle_t BindingHandle,
147 [in, out, string, size_is(Length)] wchar_t *DeviceId,
148 [in, string] wchar_t *ParentDeviceId,
149 [in] unsigned long Length,
150 [in] unsigned long Flags);
153 CONFIGRET PNP_DeviceInstanceAction(handle_t BindingHandle,
154 [in] unsigned long MajorAction,
155 [in] unsigned long MinorAction,
156 [in, unique, string] wchar_t *DeviceInstance1,
157 [in, unique, string] wchar_t *DeviceInstance2);
160 CONFIGRET PNP_GetDeviceStatus(handle_t BindingHandle,
161 [in, string] wchar_t *DeviceInstance,
162 [out] unsigned long *Status,
163 [out] unsigned long *Problem,
167 CONFIGRET PNP_SetDeviceProblem(handle_t BindingHandle,
168 [in, string] wchar_t *DeviceInstance,
169 [in] unsigned long Problem,
173 CONFIGRET PNP_UninstallDevInst(handle_t BindingHandle,
174 [in, string] wchar_t *DeviceInstance,
178 CONFIGRET PNP_AddID(handle_t BindingHandle,
179 [in, string, unique] wchar_t *DeviceInstance,
180 [in, string] wchar_t *DeviceId,
184 CONFIGRET PNP_IsDockStationPresent(handle_t BindingHandle,
188 CONFIGRET PNP_RequestEjectPC(handle_t BindingHandle);
191 cpp_quote("#define PNP_SET_HW_PROFILE_FLAGS 0")
192 cpp_quote("#define PNP_GET_HW_PROFILE_FLAGS 1")
193 CONFIGRET PNP_HwProfFlags(handle_t BindingHandle,
195 [in, string] wchar_t *DeviceId,
196 [in] DWORD ProfileId,
197 [in, out] unsigned long *Value,
201 CONFIGRET PNP_RunDetection(handle_t BindingHandle,
202 [in] unsigned long Flags);