Leaked source code of windows server 2003
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.

138 lines
4.4 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998
  4. *
  5. * TITLE: WIADEVDP.H
  6. *
  7. * VERSION: 1.1
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 7/15/1999
  12. *
  13. * DESCRIPTION: Private Device Dialog Declarations
  14. *
  15. *******************************************************************************/
  16. #ifndef _WIADEVDP_H_INCLUDED
  17. #define _WIADEVDP_H_INCLUDED
  18. #include "wia.h"
  19. #if defined(__cplusplus)
  20. extern "C" {
  21. #endif
  22. #include <pshpack8.h>
  23. //
  24. // Private flags for WIA enumeration
  25. //
  26. // DEV_MAN_ENUM_TYPE_REMOTE Will enumerate local AND remote
  27. // DEV_MAN_ENUM_TYPE_VOL Will enumerate our volume devices
  28. // DEV_MAN_ENUM_TYPE_INACTIVE Will enumerate inactive devices (e.g. USB
  29. // device thaat is unplugged)
  30. // DEV_MAN_ENUM_TYPE_STI Will enumerate STI only devices too
  31. // DEV_MAN_ENUM_TYPE_ALL Will enumerate all devices
  32. //
  33. #define DEV_MAN_ENUM_TYPE_REMOTE 0x00000001
  34. #define DEV_MAN_ENUM_TYPE_VOL 0x00000002
  35. #define DEV_MAN_ENUM_TYPE_INACTIVE 0x00000004
  36. #define DEV_MAN_ENUM_TYPE_STI 0x00000008
  37. #define DEV_MAN_ENUM_TYPE_ALL 0x0000000F
  38. DEFINE_GUID( CLSID_WiaDefaultUi, 0xD1621129, 0x45C4, 0x41AD, 0xA1, 0xD1, 0xAF, 0x7E, 0xAF, 0xAB, 0xEE, 0xDC );
  39. //
  40. // {F1ABE2B5-C073-4dba-B6EB-FD7A5111DD8F}
  41. //
  42. DEFINE_GUID( CLSID_WiaAutoPlayDropTarget, 0xf1abe2b5, 0xc073, 0x4dba, 0xb6, 0xeb, 0xfd, 0x7a, 0x51, 0x11, 0xdd, 0x8f );
  43. //
  44. // Private interface used to call system ui
  45. //
  46. #undef INTERFACE
  47. #define INTERFACE IWiaGetImageDlg
  48. DECLARE_INTERFACE_(IWiaGetImageDlg, IUnknown)
  49. {
  50. // *** IUnknown methods ***
  51. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  52. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  53. STDMETHOD_(ULONG,Release) (THIS) PURE;
  54. // *** IWiaGetImageDlg methods ***
  55. STDMETHOD(SelectDeviceDlg) (THIS_
  56. HWND hwndParent,
  57. BSTR bstrInitialDeviceId,
  58. LONG lDeviceType,
  59. LONG lFlags,
  60. BSTR *pbstrDeviceID,
  61. IWiaItem **ppWiaItemRoot );
  62. STDMETHOD(GetImageDlg)( THIS_
  63. IWiaDevMgr *pWiaDevMgr,
  64. HWND hwndParent,
  65. LONG lDeviceType,
  66. LONG lFlags,
  67. LONG lIntent,
  68. IWiaItem *pItemRoot,
  69. BSTR bstrFilename,
  70. GUID *pguidFormat );
  71. };
  72. DEFINE_GUID( IID_IWiaGetImageDlg, 0x4F67AD3C, 0x19EA, 0x4CE9, 0x80, 0xE2, 0x3A, 0xDE, 0x50, 0xD5, 0x02, 0xA2 );
  73. //
  74. // Hide various controls
  75. //
  76. #define WIA_PROGRESSDLG_NO_PROGRESS 0x00000001
  77. #define WIA_PROGRESSDLG_NO_CANCEL 0x00000002
  78. #define WIA_PROGRESSDLG_NO_ANIM 0x00000004
  79. #define WIA_PROGRESSDLG_NO_TITLE 0x00000008
  80. //
  81. // Animation flags
  82. //
  83. #define WIA_PROGRESSDLG_ANIM_SCANNER_COMMUNICATE 0x00010000
  84. #define WIA_PROGRESSDLG_ANIM_CAMERA_COMMUNICATE 0x00020000
  85. #define WIA_PROGRESSDLG_ANIM_VIDEO_COMMUNICATE 0x00040000
  86. #define WIA_PROGRESSDLG_ANIM_SCANNER_ACQUIRE 0x00080000
  87. #define WIA_PROGRESSDLG_ANIM_CAMERA_ACQUIRE 0x00100000
  88. #define WIA_PROGRESSDLG_ANIM_VIDEO_ACQUIRE 0x00200000
  89. #define WIA_PROGRESSDLG_ANIM_DEFAULT_COMMUNICATE 0x00400000
  90. #undef INTERFACE
  91. #define INTERFACE IWiaProgressDialog
  92. DECLARE_INTERFACE_(IWiaProgressDialog, IUnknown)
  93. {
  94. // *** IUnknown methods ***
  95. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  96. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  97. STDMETHOD_(ULONG,Release)(THIS) PURE;
  98. // *** IWiaProgressDialog methods ***
  99. STDMETHOD(Create)(THIS_ HWND hwndParent, LONG lFlags );
  100. STDMETHOD(Show)(THIS);
  101. STDMETHOD(Hide)(THIS);
  102. STDMETHOD(Cancelled)( THIS_ BOOL *pbCancelled );
  103. STDMETHOD(SetTitle)( THIS_ LPCWSTR pszMessage );
  104. STDMETHOD(SetMessage)( THIS_ LPCWSTR pszTitle );
  105. STDMETHOD(SetPercentComplete)( THIS_ UINT nPercent );
  106. STDMETHOD(Destroy)(THIS);
  107. };
  108. // {F740718A-E460-4b05-83E8-C5D221C772E5}
  109. DEFINE_GUID( IID_IWiaProgressDialog, 0xF740718A, 0xE460, 0x4B05, 0x83, 0xE8, 0xC5, 0xD2, 0x21, 0xC7, 0x72, 0xE5 );
  110. // {8144B6F5-20A8-444a-B8EE-19DF0BB84BDB}
  111. DEFINE_GUID( CLSID_StiEventHandler, 0x8144b6f5, 0x20a8, 0x444a, 0xb8, 0xee, 0x19, 0xdf, 0xb, 0xb8, 0x4b, 0xdb );
  112. #include <poppack.h>
  113. #if defined(__cplusplus)
  114. };
  115. #endif
  116. #endif // !_WIADEVDP_H_INCLUDED