Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.2 KiB

  1. /*****************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1999
  4. *
  5. * TITLE: wiadenum.idl
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: Davidshi
  10. *
  11. * DATE: July 27, 1999
  12. *
  13. * DESCRIPTION: Interfaces for imaging device enumerator control
  14. *
  15. *****************************************************************************/
  16. // wiadenum.idl : IDL source for wiadenum.dll
  17. import "oaidl.idl";
  18. import "ocidl.idl";
  19. [
  20. object,
  21. uuid(342c69e6-2248-4e68-aeeb-af02678715d2),
  22. dual,
  23. helpstring("IImagingDevInfo interface"),
  24. pointer_default(unique)
  25. ]
  26. interface IImagingDevInfo : IDispatch
  27. {
  28. // type of device. "scanner" or "camera"
  29. [propget, id(1), helpstring("property Type")] HRESULT Type([out, retval] BSTR *pVal);
  30. // Device ID
  31. [propget, id(2), helpstring("property DeviceId")] HRESULT DeviceId([out, retval] BSTR *pVal);
  32. // shell display name, for parsing by the namespace
  33. [propget, id(3), helpstring("property ParsingName")] HRESULT ParsingName([out, retval] BSTR *pVal);
  34. // user-friendly name
  35. [propget, id(4), helpstring("property FriendlyName")] HRESULT FriendlyName ([out,retval] BSTR *pVal);
  36. };
  37. [
  38. object,
  39. uuid(8ef3c147-4d40-4176-a1cd-2b0e4d9b2fcb),
  40. dual,
  41. helpstring("IImagingDevices interface"),
  42. pointer_default(unique)
  43. ]
  44. interface IImagingDevices : IDispatch
  45. {
  46. // number of devices
  47. [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
  48. // IImagingDevInfo of nth device. index can specify a number or a device id
  49. [id(2), helpstring ("method Device")] HRESULT Device ([in] VARIANT *index, [out,retval] IImagingDevInfo **pInfo);
  50. };
  51. [
  52. uuid(39e73e9f-4f2b-4e61-9238-aaf22502d4b7),
  53. version(1.0),
  54. helpstring("wiadenum 1.0 type library")
  55. ]
  56. library wiadenumLib
  57. {
  58. importlib("stdole32.tlb");
  59. importlib("stdole2.tlb");
  60. [
  61. uuid(a2eca620-098d-48bf-a4af-a4a375c8888e),
  62. helpstring ("DeviceList class")
  63. ]
  64. coclass DeviceList
  65. {
  66. [default] interface IImagingDevices;
  67. };
  68. [
  69. uuid(6b0e0448-cad2-4f92-a52d-99ed8e3722a7),
  70. helpstring("DevInfo class")
  71. ]
  72. coclass DeviceInfo
  73. {
  74. [default] interface IImagingDevInfo;
  75. };
  76. };