adsprop.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef _ADSPROP_H_
  7. #define _ADSPROP_H_
  8. #include <iads.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define WM_ADSPROP_NOTIFY_PAGEINIT (WM_USER + 1101)
  13. #define WM_ADSPROP_NOTIFY_PAGEHWND (WM_USER + 1102)
  14. #define WM_ADSPROP_NOTIFY_CHANGE (WM_USER + 1103)
  15. #define WM_ADSPROP_NOTIFY_APPLY (WM_USER + 1104)
  16. #define WM_ADSPROP_NOTIFY_SETFOCUS (WM_USER + 1105)
  17. #define WM_ADSPROP_NOTIFY_FOREGROUND (WM_USER + 1106)
  18. #define WM_ADSPROP_NOTIFY_EXIT (WM_USER + 1107)
  19. #define WM_ADSPROP_NOTIFY_ERROR (WM_USER + 1110)
  20. typedef struct _ADSPROPINITPARAMS {
  21. DWORD dwSize;
  22. DWORD dwFlags;
  23. HRESULT hr;
  24. IDirectoryObject *pDsObj;
  25. LPWSTR pwzCN;
  26. PADS_ATTR_INFO pWritableAttrs;
  27. } ADSPROPINITPARAMS,*PADSPROPINITPARAMS;
  28. typedef struct _ADSPROPERROR {
  29. HWND hwndPage;
  30. PWSTR pszPageTitle;
  31. PWSTR pszObjPath;
  32. PWSTR pszObjClass;
  33. HRESULT hr;
  34. PWSTR pszError;
  35. } ADSPROPERROR,*PADSPROPERROR;
  36. STDAPI ADsPropCreateNotifyObj(LPDATAOBJECT pAppThdDataObj,PWSTR pwzADsObjName,HWND *phNotifyObj);
  37. STDAPI_(WINBOOL) ADsPropGetInitInfo(HWND hNotifyObj,PADSPROPINITPARAMS pInitParams);
  38. STDAPI_(WINBOOL) ADsPropSetHwndWithTitle(HWND hNotifyObj,HWND hPage,PTSTR ptzTitle);
  39. STDAPI_(WINBOOL) ADsPropSetHwnd(HWND hNotifyObj,HWND hPage);
  40. STDAPI_(WINBOOL) ADsPropCheckIfWritable(const PWSTR pwzAttr,const PADS_ATTR_INFO pWritableAttrs);
  41. STDAPI_(WINBOOL) ADsPropSendErrorMessage(HWND hNotifyObj,PADSPROPERROR pError);
  42. STDAPI_(WINBOOL) ADsPropShowErrorDialog(HWND hNotifyObj,HWND hPage);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif