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.

64 lines
1.5 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998
  4. *
  5. * TITLE: UIEXTHLP.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 7/8/1999
  12. *
  13. * DESCRIPTION: Helper functions for loading UI extensions for WIA devices
  14. *
  15. *******************************************************************************/
  16. #ifndef __UIEXTHLP_H_INCLUDED
  17. #define __UIEXTHLP_H_INCLUDED
  18. #include <windows.h>
  19. #include <objbase.h>
  20. #include <wia.h>
  21. namespace WiaUiExtensionHelper
  22. {
  23. HRESULT GetDeviceExtensionClassID(
  24. LPCWSTR pszID,
  25. LPCTSTR pszCategory,
  26. IID &iidClassID
  27. );
  28. HRESULT CreateDeviceExtension(
  29. LPCWSTR pszID,
  30. LPCTSTR pszCategory,
  31. const IID &iid,
  32. void **ppvObject
  33. );
  34. HRESULT GetUiGuidFromWiaItem(
  35. IWiaItem *pWiaItem,
  36. LPWSTR pszGuid
  37. );
  38. HRESULT GetDeviceExtensionClassID(
  39. IWiaItem *pWiaItem,
  40. LPCTSTR pszCategory,
  41. IID &iidClassID
  42. );
  43. HRESULT CreateDeviceExtension(
  44. IWiaItem *pWiaItem,
  45. LPCTSTR pszCategory,
  46. const IID &iid,
  47. void **ppvObject
  48. );
  49. HRESULT GetDeviceIcons(
  50. BSTR bstrDeviceId,
  51. LONG nDeviceType,
  52. HICON *phIconSmall,
  53. HICON *phIconLarge,
  54. UINT nIconSize = 0 // 0 means default sizes
  55. );
  56. CSimpleString GetExtensionFromGuid(
  57. IWiaItem *pWiaItem,
  58. const GUID &guidFormat
  59. );
  60. }
  61. #endif //__UIEXTHLP_H_INCLUDED