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.

37 lines
896 B

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 1999
  5. *
  6. * File: ndmgrp.h
  7. *
  8. * Contents: Private header to go along with ndmgr.h
  9. *
  10. * History: 03-Mar-98 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #ifndef NDMGRP_H
  14. #define NDMGRP_H
  15. #pragma once
  16. #include "ndmgr.h"
  17. struct DataWindowData
  18. {
  19. MMC_COOKIE cookie;
  20. LONG_PTR lpMasterNode;
  21. IDataObjectPtr spDataObject;
  22. IComponentDataPtr spComponentData;
  23. IComponentPtr spComponent;
  24. HWND hDlg;
  25. };
  26. inline DataWindowData* GetDataWindowData (HWND hwndData)
  27. {
  28. LONG_PTR nData = GetWindowLongPtr (hwndData, WINDOW_DATA_PTR_SLOT);
  29. return (reinterpret_cast<DataWindowData *>(nData));
  30. }
  31. #endif /* NDMGRP_H */