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.

60 lines
1.9 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Active Directory Service Property Pages
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992-1999.
  7. //
  8. // File: dspropp.h
  9. //
  10. // Contents: Non-SDK functions and definitions used in the creation of AD
  11. // property sheets.
  12. //
  13. // History: 24-Aug-99 EricB created.
  14. //
  15. //-----------------------------------------------------------------------------
  16. #ifndef _DSPROPP_H_
  17. #define _DSPROPP_H_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. typedef struct _PROPSHEETCFG {
  25. LONG_PTR lNotifyHandle;
  26. HWND hwndParentSheet; // invoking parent if launched from another sheet.
  27. HWND hwndHidden; // snapin hidden window handle
  28. WPARAM wParamSheetClose; // wParam to be used with WM_DSA_SHEET_CLOSE_NOTIFY message
  29. } PROPSHEETCFG, * PPROPSHEETCFG;
  30. // private message to send to property page to get the HWND of the notify object
  31. #define WM_ADSPROP_PAGE_GET_NOTIFY (WM_USER + 1109)
  32. //+----------------------------------------------------------------------------
  33. //
  34. // Function: PostADsPropSheet
  35. //
  36. // Synopsis: Creates a property sheet for the named object using MMC's
  37. // IPropertySheetProvider so that extension snapins can add pages.
  38. // This function is provided so that property pages can invoke
  39. // other propety sheets.
  40. //
  41. // Arguments: [pwzObjDN] - the full LDAP DN of the DS object.
  42. // [pParentObj] - the invoking page's MMC data object pointer, can be NULL.
  43. // [hwndParent] - the invoking page's window handle.
  44. // [fReadOnly] - defaults to FALSE.
  45. //
  46. //-----------------------------------------------------------------------------
  47. HRESULT
  48. PostADsPropSheet(PWSTR pwzObjDN, IDataObject * pParentObj, HWND hwndParent,
  49. BOOL fReadOnly = FALSE);
  50. #ifdef __cplusplus
  51. }
  52. #endif // __cplusplus
  53. #endif // _DSPROPP_H_