| 1 |
/** |
| 2 |
*This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
*This file is part of the mingw-w64 runtime package. |
| 4 |
*No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
|
| 7 |
import "propidl.idl"; |
| 8 |
import "wtypes.idl"; |
| 9 |
import "portabledevicetypes.idl"; |
| 10 |
|
| 11 |
interface IPortableDeviceManager; |
| 12 |
interface IPortableDevice; |
| 13 |
interface IPortableDeviceContent; |
| 14 |
interface IPortableDeviceContent2; |
| 15 |
interface IEnumPortableDeviceObjectIDs; |
| 16 |
interface IPortableDeviceProperties; |
| 17 |
interface IPortableDeviceResources; |
| 18 |
interface IPortableDeviceCapabilities; |
| 19 |
interface IPortableDeviceEventCallback; |
| 20 |
interface IPortableDeviceDataStream; |
| 21 |
interface IPortableDevicePropertiesBulk; |
| 22 |
interface IPortableDevicePropertiesBulkCallback; |
| 23 |
interface IPortableDeviceServiceManager; |
| 24 |
interface IPortableDeviceService; |
| 25 |
interface IPortableDeviceServiceCapabilities; |
| 26 |
interface IPortableDeviceServiceMethods; |
| 27 |
interface IPortableDeviceServiceMethodCallback; |
| 28 |
interface IPortableDeviceDispatchFactory; |
| 29 |
interface IPortableDeviceServiceActivation; |
| 30 |
interface IPortableDeviceServiceOpenCallback; |
| 31 |
|
| 32 |
[ |
| 33 |
object, |
| 34 |
uuid(a1567595-4c2f-4574-a6fa-ecef917b9a40), |
| 35 |
pointer_default(unique) |
| 36 |
] |
| 37 |
interface IPortableDeviceManager : IUnknown |
| 38 |
{ |
| 39 |
HRESULT GetDevices( |
| 40 |
[in, out, unique] LPWSTR *device_ids, |
| 41 |
[in, out] DWORD *device_ids_count); |
| 42 |
|
| 43 |
HRESULT RefreshDeviceList(); |
| 44 |
|
| 45 |
HRESULT GetDeviceFriendlyName( |
| 46 |
[in] LPCWSTR device_id, |
| 47 |
[in, out, unique] WCHAR *device_friendly_name, |
| 48 |
[in, out] DWORD *device_friendly_name_size); |
| 49 |
|
| 50 |
HRESULT GetDeviceDescription( |
| 51 |
[in] LPCWSTR device_id, |
| 52 |
[in, out, unique] WCHAR *device_description, |
| 53 |
[in, out] DWORD *device_description_size); |
| 54 |
|
| 55 |
HRESULT GetDeviceManufacturer( |
| 56 |
[in] LPCWSTR device_id, |
| 57 |
[in, out, unique] WCHAR *device_manufacturer, |
| 58 |
[in, out] DWORD *device_manufacturer_size); |
| 59 |
|
| 60 |
HRESULT GetDeviceProperty( |
| 61 |
[in] LPCWSTR device_id, |
| 62 |
[in] LPCWSTR device_property_name, |
| 63 |
[in, out, unique] BYTE *data, |
| 64 |
[in, out, unique] DWORD *data_size, |
| 65 |
[in, out, unique] DWORD *type); |
| 66 |
|
| 67 |
HRESULT GetPrivateDevices( |
| 68 |
[in, out, unique] LPWSTR *device_ids, |
| 69 |
[in, out] DWORD *device_ids_count); |
| 70 |
} |
| 71 |
|
| 72 |
[ |
| 73 |
object, |
| 74 |
uuid(625e2df8-6392-4cf0-9ad1-3cfa5f17775c), |
| 75 |
pointer_default(unique) |
| 76 |
] |
| 77 |
interface IPortableDevice : IUnknown |
| 78 |
{ |
| 79 |
HRESULT Open( |
| 80 |
[in] LPCWSTR device_id, |
| 81 |
[in] IPortableDeviceValues *client_info); |
| 82 |
|
| 83 |
HRESULT SendCommand( |
| 84 |
[in] const DWORD flags, |
| 85 |
[in] IPortableDeviceValues *parameters, |
| 86 |
[out] IPortableDeviceValues **results); |
| 87 |
|
| 88 |
HRESULT Content( |
| 89 |
[out] IPortableDeviceContent **content); |
| 90 |
|
| 91 |
HRESULT Capabilities( |
| 92 |
[out] IPortableDeviceCapabilities **capabilities); |
| 93 |
|
| 94 |
HRESULT Cancel(); |
| 95 |
|
| 96 |
HRESULT Close(); |
| 97 |
|
| 98 |
HRESULT Advise( |
| 99 |
[in] const DWORD flags, |
| 100 |
[in] IPortableDeviceEventCallback *callback, |
| 101 |
[in, unique] IPortableDeviceValues *parameters, |
| 102 |
[out] LPWSTR *cookie); |
| 103 |
|
| 104 |
HRESULT Unadvise( |
| 105 |
[in] LPCWSTR cookie); |
| 106 |
|
| 107 |
HRESULT GetPnPDeviceID( |
| 108 |
[out] LPWSTR *device_id); |
| 109 |
} |
| 110 |
|
| 111 |
[ |
| 112 |
object, |
| 113 |
uuid(6a96ed84-7c73-4480-9938-bf5af477d426), |
| 114 |
pointer_default(unique) |
| 115 |
] |
| 116 |
interface IPortableDeviceContent : IUnknown |
| 117 |
{ |
| 118 |
HRESULT EnumObjects( |
| 119 |
[in] const DWORD flags, |
| 120 |
[in] LPCWSTR parent_object_id, |
| 121 |
[in, unique] IPortableDeviceValues *filter, |
| 122 |
[out] IEnumPortableDeviceObjectIDs **enum_device_object); |
| 123 |
|
| 124 |
HRESULT Properties( |
| 125 |
[out] IPortableDeviceProperties **device_properties); |
| 126 |
|
| 127 |
HRESULT Transfer( |
| 128 |
[out] IPortableDeviceResources **resources); |
| 129 |
|
| 130 |
HRESULT CreateObjectWithPropertiesOnly( |
| 131 |
[in] IPortableDeviceValues *values, |
| 132 |
[in, out, unique] LPWSTR *object_id); |
| 133 |
|
| 134 |
HRESULT CreateObjectWithPropertiesAndData( |
| 135 |
[in] IPortableDeviceValues *values, |
| 136 |
[out] IStream **data, |
| 137 |
[in, out, unique] DWORD *optimal_write_buffer_size, |
| 138 |
[in, out, unique] LPWSTR *cookie); |
| 139 |
|
| 140 |
HRESULT Delete( |
| 141 |
[in] const DWORD options, |
| 142 |
[in] IPortableDevicePropVariantCollection *object_ids, |
| 143 |
[in, out, unique] IPortableDevicePropVariantCollection **results); |
| 144 |
|
| 145 |
HRESULT GetObjectIDsFromPersistentUniqueIDs( |
| 146 |
[in] IPortableDevicePropVariantCollection *persistent_unique_ids, |
| 147 |
[out] IPortableDevicePropVariantCollection **object_ids); |
| 148 |
|
| 149 |
HRESULT Cancel(); |
| 150 |
|
| 151 |
HRESULT Move( |
| 152 |
[in] IPortableDevicePropVariantCollection *object_ids, |
| 153 |
[in] LPCWSTR destination_folder_object_id, |
| 154 |
[in, out, unique] IPortableDevicePropVariantCollection **results); |
| 155 |
|
| 156 |
HRESULT Copy( |
| 157 |
[in] IPortableDevicePropVariantCollection *object_ids, |
| 158 |
[in] LPCWSTR destination_folder_object_id, |
| 159 |
[in, out, unique] IPortableDevicePropVariantCollection **results); |
| 160 |
} |
| 161 |
|
| 162 |
[ |
| 163 |
object, |
| 164 |
uuid(9b4add96-f6bf-4034-8708-eca72bf10554), |
| 165 |
pointer_default(unique) |
| 166 |
] |
| 167 |
interface IPortableDeviceContent2 : IPortableDeviceContent |
| 168 |
{ |
| 169 |
HRESULT UpdateObjectWithPropertiesAndData( |
| 170 |
[in] LPCWSTR object_id, |
| 171 |
[in] IPortableDeviceValues *device_properties, |
| 172 |
[out] IStream **data, |
| 173 |
[in, out, unique] DWORD *optimal_write_buffer_size); |
| 174 |
} |
| 175 |
|
| 176 |
[ |
| 177 |
object, |
| 178 |
uuid(10ece955-cf41-4728-bfa0-41eedf1bbf19), |
| 179 |
pointer_default(unique) |
| 180 |
] |
| 181 |
interface IEnumPortableDeviceObjectIDs : IUnknown |
| 182 |
{ |
| 183 |
HRESULT Next( |
| 184 |
[in] ULONG objects, |
| 185 |
[out, size_is(objects), length_is(*fetched)] LPWSTR *obj_ids, |
| 186 |
[in, out, unique] ULONG *fetched); |
| 187 |
|
| 188 |
HRESULT Skip( |
| 189 |
[in] ULONG objects); |
| 190 |
|
| 191 |
HRESULT Reset(); |
| 192 |
|
| 193 |
HRESULT Clone( |
| 194 |
[out] IEnumPortableDeviceObjectIDs **enum_device_object); |
| 195 |
|
| 196 |
HRESULT Cancel(); |
| 197 |
} |
| 198 |
|
| 199 |
[ |
| 200 |
object, |
| 201 |
uuid(7f6d695c-03df-4439-a809-59266beee3a6), |
| 202 |
pointer_default(unique) |
| 203 |
] |
| 204 |
interface IPortableDeviceProperties : IUnknown |
| 205 |
{ |
| 206 |
HRESULT GetSupportedProperties( |
| 207 |
[in] LPCWSTR object_id, |
| 208 |
[out] IPortableDeviceKeyCollection **keys); |
| 209 |
|
| 210 |
HRESULT GetPropertyAttributes( |
| 211 |
[in] LPCWSTR object_id, |
| 212 |
[in] REFPROPERTYKEY key, |
| 213 |
[out] IPortableDeviceValues **attributes); |
| 214 |
|
| 215 |
HRESULT GetValues( |
| 216 |
[in] LPCWSTR object_id, |
| 217 |
[in, unique] IPortableDeviceKeyCollection *keys, |
| 218 |
[out] IPortableDeviceValues **values); |
| 219 |
|
| 220 |
HRESULT SetValues( |
| 221 |
[in] LPCWSTR object_id, |
| 222 |
[in] IPortableDeviceValues *values, |
| 223 |
[out] IPortableDeviceValues **results); |
| 224 |
|
| 225 |
HRESULT Delete( |
| 226 |
[in] LPCWSTR object_id, |
| 227 |
[in] IPortableDeviceKeyCollection *keys); |
| 228 |
|
| 229 |
HRESULT Cancel(); |
| 230 |
} |
| 231 |
|
| 232 |
[ |
| 233 |
object, |
| 234 |
uuid(fd8878ac-d841-4d17-891c-e6829cdb6934), |
| 235 |
pointer_default(unique) |
| 236 |
] |
| 237 |
interface IPortableDeviceResources : IUnknown |
| 238 |
{ |
| 239 |
HRESULT GetSupportedResources( |
| 240 |
[in] LPCWSTR object_id, |
| 241 |
[out] IPortableDeviceKeyCollection **keys); |
| 242 |
|
| 243 |
HRESULT GetResourceAttributes( |
| 244 |
[in] LPCWSTR object_id, |
| 245 |
[in] REFPROPERTYKEY key, |
| 246 |
[out] IPortableDeviceValues **resource_attributes); |
| 247 |
|
| 248 |
HRESULT GetStream( |
| 249 |
[in] LPCWSTR object_id, |
| 250 |
[in] REFPROPERTYKEY key, |
| 251 |
[in] const DWORD mode, |
| 252 |
[in, out, unique] DWORD *optimal_buffer_size, |
| 253 |
[out] IStream **stream); |
| 254 |
|
| 255 |
HRESULT Delete( |
| 256 |
[in] LPCWSTR object_id, |
| 257 |
[in] IPortableDeviceKeyCollection *keys); |
| 258 |
|
| 259 |
HRESULT Cancel(); |
| 260 |
|
| 261 |
HRESULT CreateResource( |
| 262 |
[in] IPortableDeviceValues *resource_attributes, |
| 263 |
[out] IStream **data, |
| 264 |
[in, out, unique] DWORD *optimal_write_buffer_size, |
| 265 |
[in, out, unique] LPWSTR *cookie); |
| 266 |
} |
| 267 |
|
| 268 |
[ |
| 269 |
object, |
| 270 |
uuid(2c8c6dbf-e3dc-4061-becc-8542e810d126), |
| 271 |
pointer_default(unique) |
| 272 |
] |
| 273 |
interface IPortableDeviceCapabilities : IUnknown |
| 274 |
{ |
| 275 |
HRESULT GetSupportedCommands( |
| 276 |
[out] IPortableDeviceKeyCollection **commands); |
| 277 |
|
| 278 |
HRESULT GetCommandOptions( |
| 279 |
[in] REFPROPERTYKEY command, |
| 280 |
[out] IPortableDeviceValues **options); |
| 281 |
|
| 282 |
HRESULT GetFunctionalCategories( |
| 283 |
[out] IPortableDevicePropVariantCollection **categories); |
| 284 |
|
| 285 |
HRESULT GetFunctionalObjects( |
| 286 |
[in] REFGUID category, |
| 287 |
[out] IPortableDevicePropVariantCollection **object_ids); |
| 288 |
|
| 289 |
HRESULT GetSupportedContentTypes( |
| 290 |
[in] REFGUID category, |
| 291 |
[out] IPortableDevicePropVariantCollection **content_types); |
| 292 |
|
| 293 |
HRESULT GetSupportedFormats( |
| 294 |
[in] REFGUID content_type, |
| 295 |
[out] IPortableDevicePropVariantCollection **formats); |
| 296 |
|
| 297 |
HRESULT GetSupportedFormatProperties( |
| 298 |
[in] REFGUID format, |
| 299 |
[out] IPortableDeviceKeyCollection **keys); |
| 300 |
|
| 301 |
HRESULT GetFixedPropertyAttributes( |
| 302 |
[in] REFGUID format, |
| 303 |
[in] REFPROPERTYKEY key, |
| 304 |
[out] IPortableDeviceValues **attributes); |
| 305 |
|
| 306 |
HRESULT Cancel(); |
| 307 |
|
| 308 |
HRESULT GetSupportedEvents( |
| 309 |
[out] IPortableDevicePropVariantCollection **events_collection); |
| 310 |
|
| 311 |
HRESULT GetEventOptions( |
| 312 |
[in] REFGUID event_id, |
| 313 |
[out] IPortableDeviceValues **options); |
| 314 |
} |
| 315 |
|
| 316 |
[ |
| 317 |
object, |
| 318 |
uuid(a8792a31-f385-493c-a893-40f64eb45f6e), |
| 319 |
pointer_default(unique) |
| 320 |
] |
| 321 |
interface IPortableDeviceEventCallback : IUnknown |
| 322 |
{ |
| 323 |
HRESULT OnEvent( |
| 324 |
[in] IPortableDeviceValues *event_parameters); |
| 325 |
} |
| 326 |
|
| 327 |
[ |
| 328 |
object, |
| 329 |
uuid(88e04db3-1012-4d64-9996-f703a950d3f4), |
| 330 |
pointer_default(unique) |
| 331 |
] |
| 332 |
interface IPortableDeviceDataStream : IStream |
| 333 |
{ |
| 334 |
HRESULT GetObjectID( |
| 335 |
[out] LPWSTR *object_id); |
| 336 |
|
| 337 |
HRESULT Cancel(); |
| 338 |
} |
| 339 |
|
| 340 |
[ |
| 341 |
object, |
| 342 |
uuid(5e98025f-bfc4-47a2-9a5f-bc900a507c67), |
| 343 |
pointer_default(unique) |
| 344 |
] |
| 345 |
interface IPortableDeviceUnitsStream : IUnknown |
| 346 |
{ |
| 347 |
[local] |
| 348 |
HRESULT SeekInUnits( |
| 349 |
[in] LARGE_INTEGER dlib_move, |
| 350 |
[in] WPD_STREAM_UNITS units, |
| 351 |
[in] DWORD origin, |
| 352 |
[out, optional] ULARGE_INTEGER *lib_new_position); |
| 353 |
|
| 354 |
[call_as(SeekInUnits)] |
| 355 |
HRESULT RemoteSeekInUnits( |
| 356 |
[in] LARGE_INTEGER dlib_move, |
| 357 |
[in] WPD_STREAM_UNITS units, |
| 358 |
[in] DWORD origin, |
| 359 |
[out] ULARGE_INTEGER *lib_new_position); |
| 360 |
|
| 361 |
HRESULT Cancel(); |
| 362 |
} |
| 363 |
|
| 364 |
[ |
| 365 |
object, |
| 366 |
uuid(482b05c0-4056-44ed-9e0f-5e23b009da93), |
| 367 |
pointer_default(unique) |
| 368 |
] |
| 369 |
interface IPortableDevicePropertiesBulk : IUnknown |
| 370 |
{ |
| 371 |
HRESULT QueueGetValuesByObjectList( |
| 372 |
[in] IPortableDevicePropVariantCollection *object_ids, |
| 373 |
[in] IPortableDeviceKeyCollection *keys, |
| 374 |
[in] IPortableDevicePropertiesBulkCallback *callback, |
| 375 |
[out] GUID *context); |
| 376 |
|
| 377 |
HRESULT QueueGetValuesByObjectFormat( |
| 378 |
[in] REFGUID guid_object_format, |
| 379 |
[in] LPCWSTR parent_object_id, |
| 380 |
[in] const DWORD depth, |
| 381 |
[in] IPortableDeviceKeyCollection *keys, |
| 382 |
[in] IPortableDevicePropertiesBulkCallback *callback, |
| 383 |
[out] GUID *context); |
| 384 |
|
| 385 |
HRESULT QueueSetValuesByObjectList( |
| 386 |
[in] IPortableDeviceValuesCollection *object_values, |
| 387 |
[in] IPortableDevicePropertiesBulkCallback *callback, |
| 388 |
[out] GUID *context); |
| 389 |
|
| 390 |
HRESULT Start([in] REFGUID context); |
| 391 |
|
| 392 |
HRESULT Cancel([in] REFGUID context); |
| 393 |
} |
| 394 |
|
| 395 |
[ |
| 396 |
object, |
| 397 |
uuid(9deacb80-11e8-40e3-a9f3-f557986a7845), |
| 398 |
pointer_default(unique) |
| 399 |
] |
| 400 |
interface IPortableDevicePropertiesBulkCallback : IUnknown |
| 401 |
{ |
| 402 |
HRESULT OnStart( |
| 403 |
[in] REFGUID context); |
| 404 |
|
| 405 |
HRESULT OnProgress( |
| 406 |
[in] REFGUID context, |
| 407 |
[in] IPortableDeviceValuesCollection *results); |
| 408 |
|
| 409 |
HRESULT OnEnd( |
| 410 |
[in] REFGUID context, |
| 411 |
[in] HRESULT hr_status); |
| 412 |
} |
| 413 |
|
| 414 |
[ |
| 415 |
object, |
| 416 |
uuid(a8abc4e9-a84a-47a9-80b3-c5d9b172a961), |
| 417 |
pointer_default(unique) |
| 418 |
] |
| 419 |
interface IPortableDeviceServiceManager : IUnknown |
| 420 |
{ |
| 421 |
HRESULT GetDeviceServices( |
| 422 |
[in] LPCWSTR device_id, |
| 423 |
[in] REFGUID guid_service_category, |
| 424 |
[in, out, unique] LPWSTR *services, |
| 425 |
[in, out] DWORD *services_count); |
| 426 |
|
| 427 |
HRESULT GetDeviceForService( |
| 428 |
[in] LPCWSTR service_id, |
| 429 |
[out] LPWSTR *device_id); |
| 430 |
} |
| 431 |
|
| 432 |
[ |
| 433 |
object, |
| 434 |
uuid(d3bd3a44-d7b5-40a9-98b7-2fa4d01dec08), |
| 435 |
pointer_default(unique) |
| 436 |
] |
| 437 |
interface IPortableDeviceService : IUnknown |
| 438 |
{ |
| 439 |
HRESULT Open( |
| 440 |
[in] LPCWSTR service_id, |
| 441 |
[in] IPortableDeviceValues *client_info); |
| 442 |
|
| 443 |
HRESULT Capabilities( |
| 444 |
[out] IPortableDeviceServiceCapabilities **capabilities); |
| 445 |
|
| 446 |
HRESULT Content( |
| 447 |
[out] IPortableDeviceContent2 **content); |
| 448 |
|
| 449 |
HRESULT Methods( |
| 450 |
[out] IPortableDeviceServiceMethods **service_methods); |
| 451 |
|
| 452 |
HRESULT Cancel(); |
| 453 |
|
| 454 |
HRESULT Close(); |
| 455 |
|
| 456 |
HRESULT GetServiceObjectID( |
| 457 |
[out] LPWSTR *service_object_id); |
| 458 |
|
| 459 |
HRESULT GetPnPServiceID( |
| 460 |
[out] LPWSTR *service_id); |
| 461 |
|
| 462 |
HRESULT Advise( |
| 463 |
[in] const DWORD flags, |
| 464 |
[in] IPortableDeviceEventCallback *callback, |
| 465 |
[in, unique] IPortableDeviceValues *parameters, |
| 466 |
[out] LPWSTR *cookie); |
| 467 |
|
| 468 |
HRESULT Unadvise( |
| 469 |
[in] LPCWSTR cookie); |
| 470 |
|
| 471 |
HRESULT SendCommand( |
| 472 |
[in] const DWORD flags, |
| 473 |
[in] IPortableDeviceValues *parameters, |
| 474 |
[out] IPortableDeviceValues **results); |
| 475 |
} |
| 476 |
|
| 477 |
[ |
| 478 |
object, |
| 479 |
uuid(24dbd89d-413e-43e0-bd5b-197f3c56c886), |
| 480 |
pointer_default(unique) |
| 481 |
] |
| 482 |
interface IPortableDeviceServiceCapabilities : IUnknown |
| 483 |
{ |
| 484 |
HRESULT GetSupportedMethods( |
| 485 |
[out] IPortableDevicePropVariantCollection **supported_methods); |
| 486 |
|
| 487 |
HRESULT GetSupportedMethodsByFormat( |
| 488 |
[in] REFGUID format, |
| 489 |
[out] IPortableDevicePropVariantCollection **supported_methods); |
| 490 |
|
| 491 |
HRESULT GetMethodAttributes ( |
| 492 |
[in] REFGUID method, |
| 493 |
[out] IPortableDeviceValues **attributes); |
| 494 |
|
| 495 |
HRESULT GetMethodParameterAttributes( |
| 496 |
[in] REFGUID method, |
| 497 |
[in] REFPROPERTYKEY parameter, |
| 498 |
[out] IPortableDeviceValues **attributes); |
| 499 |
|
| 500 |
HRESULT GetSupportedFormats( |
| 501 |
[out] IPortableDevicePropVariantCollection **formats); |
| 502 |
|
| 503 |
HRESULT GetFormatAttributes( |
| 504 |
[in] REFGUID format, |
| 505 |
[out] IPortableDeviceValues **attributes); |
| 506 |
|
| 507 |
HRESULT GetSupportedFormatProperties( |
| 508 |
[in] REFGUID format, |
| 509 |
[out] IPortableDeviceKeyCollection **keys); |
| 510 |
|
| 511 |
HRESULT GetFormatPropertyAttributes( |
| 512 |
[in] REFGUID format, |
| 513 |
[in] REFPROPERTYKEY property, |
| 514 |
[out] IPortableDeviceValues **attributes); |
| 515 |
|
| 516 |
HRESULT GetSupportedEvents( |
| 517 |
[out] IPortableDevicePropVariantCollection **events); |
| 518 |
|
| 519 |
HRESULT GetEventAttributes( |
| 520 |
[in] REFGUID event_id, |
| 521 |
[out] IPortableDeviceValues **attributes); |
| 522 |
|
| 523 |
HRESULT GetEventParameterAttributes( |
| 524 |
[in] REFGUID event_id, |
| 525 |
[in] REFPROPERTYKEY parameter, |
| 526 |
[out] IPortableDeviceValues **attributes); |
| 527 |
|
| 528 |
HRESULT GetInheritedServices( |
| 529 |
[in] const DWORD inheritance_type, |
| 530 |
[out] IPortableDevicePropVariantCollection **services); |
| 531 |
|
| 532 |
HRESULT GetFormatRenderingProfiles( |
| 533 |
[in] REFGUID format, |
| 534 |
[out] IPortableDeviceValuesCollection **rendering_profiles); |
| 535 |
|
| 536 |
HRESULT GetSupportedCommands( |
| 537 |
[out] IPortableDeviceKeyCollection **commands); |
| 538 |
|
| 539 |
HRESULT GetCommandOptions( |
| 540 |
[in] REFPROPERTYKEY command, |
| 541 |
[out] IPortableDeviceValues **options); |
| 542 |
|
| 543 |
HRESULT Cancel(); |
| 544 |
} |
| 545 |
|
| 546 |
[ |
| 547 |
object, |
| 548 |
uuid(e20333c9-fd34-412d-a381-cc6f2d820df7), |
| 549 |
pointer_default(unique) |
| 550 |
] |
| 551 |
interface IPortableDeviceServiceMethods : IUnknown |
| 552 |
{ |
| 553 |
HRESULT Invoke( |
| 554 |
[in] REFGUID method_id, |
| 555 |
[in, unique] IPortableDeviceValues *parameters, |
| 556 |
[in, out, unique] IPortableDeviceValues **results); |
| 557 |
|
| 558 |
HRESULT InvokeAsync( |
| 559 |
[in] REFGUID method_id, |
| 560 |
[in, unique] IPortableDeviceValues *parameters, |
| 561 |
[in, unique] IPortableDeviceServiceMethodCallback *callback); |
| 562 |
|
| 563 |
HRESULT Cancel( |
| 564 |
[in, unique] IPortableDeviceServiceMethodCallback *callback); |
| 565 |
} |
| 566 |
|
| 567 |
[ |
| 568 |
object, |
| 569 |
uuid(c424233c-afce-4828-a756-7ed7a2350083), |
| 570 |
pointer_default(unique) |
| 571 |
] |
| 572 |
interface IPortableDeviceServiceMethodCallback : IUnknown |
| 573 |
{ |
| 574 |
HRESULT OnComplete( |
| 575 |
[in] HRESULT hr_status, |
| 576 |
[in] IPortableDeviceValues *results); |
| 577 |
} |
| 578 |
|
| 579 |
[ |
| 580 |
object, |
| 581 |
uuid(e56b0534-d9b9-425c-9b99-75f97cb3d7c8), |
| 582 |
pointer_default(unique) |
| 583 |
] |
| 584 |
interface IPortableDeviceServiceActivation : IUnknown |
| 585 |
{ |
| 586 |
HRESULT OpenAsync( |
| 587 |
[in] LPCWSTR service_id, |
| 588 |
[in] IPortableDeviceValues *client_info, |
| 589 |
[in] IPortableDeviceServiceOpenCallback *callback); |
| 590 |
|
| 591 |
HRESULT CancelOpenAsync(); |
| 592 |
} |
| 593 |
|
| 594 |
[ |
| 595 |
object, |
| 596 |
uuid(bced49c8-8efe-41ed-960b-61313abd47a9), |
| 597 |
pointer_default(unique) |
| 598 |
] |
| 599 |
interface IPortableDeviceServiceOpenCallback : IUnknown |
| 600 |
{ |
| 601 |
HRESULT OnComplete( |
| 602 |
[in] HRESULT hr_status); |
| 603 |
} |
| 604 |
|
| 605 |
[ |
| 606 |
object, |
| 607 |
local, |
| 608 |
uuid(5e1eafc3-e3d7-4132-96fa-759c0f9d1e0f) |
| 609 |
] |
| 610 |
interface IPortableDeviceDispatchFactory : IUnknown |
| 611 |
{ |
| 612 |
HRESULT GetDeviceDispatch( |
| 613 |
[in] LPCWSTR device_id, |
| 614 |
[out] IDispatch **device_dispatch); |
| 615 |
} |
| 616 |
|
| 617 |
[ |
| 618 |
object, |
| 619 |
dual, |
| 620 |
local, |
| 621 |
nonextensible, |
| 622 |
uuid(94fc7953-5ca1-483a-8aee-df52e7747d00) |
| 623 |
] |
| 624 |
interface IPortableDeviceWebControl: IDispatch |
| 625 |
{ |
| 626 |
HRESULT GetDeviceFromId( |
| 627 |
[in] BSTR device_id, |
| 628 |
[out, retval] IDispatch **device); |
| 629 |
|
| 630 |
HRESULT GetDeviceFromIdAsync( |
| 631 |
[in] BSTR device_id, |
| 632 |
[in] IDispatch *completion_handler, |
| 633 |
[in, unique] IDispatch *error_handler); |
| 634 |
} |
| 635 |
|
| 636 |
[ |
| 637 |
uuid(1f001332-1a57-4934-be31-affc99f4ee0a), |
| 638 |
version(1.0) |
| 639 |
] |
| 640 |
library PortableDeviceApiLib |
| 641 |
{ |
| 642 |
[ |
| 643 |
uuid(728a21c5-3d9e-48d7-9810-864848f0f404) |
| 644 |
] |
| 645 |
coclass PortableDevice |
| 646 |
{ |
| 647 |
[default] interface IPortableDevice; |
| 648 |
} |
| 649 |
|
| 650 |
[ |
| 651 |
uuid(0af10cec-2ecd-4b92-9581-34f6ae0637f3) |
| 652 |
] |
| 653 |
coclass PortableDeviceManager |
| 654 |
{ |
| 655 |
[default] interface IPortableDeviceManager; |
| 656 |
} |
| 657 |
|
| 658 |
[ |
| 659 |
uuid(ef5db4c2-9312-422c-9152-411cd9c4dd84) |
| 660 |
] |
| 661 |
coclass PortableDeviceService |
| 662 |
{ |
| 663 |
[default] interface IPortableDeviceService; |
| 664 |
} |
| 665 |
|
| 666 |
[ |
| 667 |
uuid(43232233-8338-4658-ae01-0b4ae830b6b0) |
| 668 |
] |
| 669 |
coclass PortableDeviceDispatchFactory |
| 670 |
{ |
| 671 |
[default] interface IPortableDeviceDispatchFactory; |
| 672 |
} |
| 673 |
|
| 674 |
[ |
| 675 |
uuid(f7c0039a-4762-488a-b4b3-760ef9a1ba9b) |
| 676 |
] |
| 677 |
coclass PortableDeviceFTM |
| 678 |
{ |
| 679 |
[default] interface IPortableDevice; |
| 680 |
} |
| 681 |
|
| 682 |
[ |
| 683 |
uuid(1649b154-c794-497a-9b03-f3f0121302f3) |
| 684 |
] |
| 685 |
coclass PortableDeviceServiceFTM |
| 686 |
{ |
| 687 |
[default] interface IPortableDeviceService; |
| 688 |
} |
| 689 |
|
| 690 |
[ |
| 691 |
uuid(186dd02c-2dec-41b5-a7d4-b59056fade51) |
| 692 |
] |
| 693 |
coclass PortableDeviceWebControl |
| 694 |
{ |
| 695 |
[default] interface IPortableDeviceWebControl; |
| 696 |
} |
| 697 |
} |