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.

57 lines
1.8 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  6. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  7. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  8. // PURPOSE.
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //==============================================================;
  12. #ifndef _MMC_GLOBALS_H
  13. #define _MMC_GLOBALS_H
  14. #include <tchar.h>
  15. extern HINSTANCE g_hinst;
  16. HRESULT AllocOleStr(LPOLESTR *lpDest, _TCHAR *szBuffer);
  17. HRESULT RegisterSnapinAsExtension(_TCHAR* szNameString);
  18. //Clipboard formats
  19. extern UINT s_cfSZNodeType;
  20. extern UINT s_cfDisplayName;
  21. extern UINT s_cfNodeType;
  22. extern UINT s_cfSnapinClsid;
  23. extern UINT s_cfInternal;
  24. //Required for extracting data from DSAdmin snap-in's data object
  25. extern UINT cfDsObjectNames;
  26. //Helper functions for extracting data from data objects
  27. HRESULT ExtractObjectTypeGUID( IDataObject* piDataObject, GUID* pguidObjectType );
  28. HRESULT ExtractSnapInCLSID( IDataObject* piDataObject, CLSID* pclsidSnapin );
  29. HRESULT ExtractString( IDataObject *piDataObject, CLIPFORMAT cfClipFormat, _TCHAR *pstr, DWORD cchMaxLength);
  30. HRESULT ExtractData( IDataObject* piDataObject, CLIPFORMAT cfClipFormat, BYTE* pbData, DWORD cbData );
  31. // uncomment the following #define to enable message cracking
  32. //#define MMC_CRACK_MESSAGES
  33. /*
  34. void MMCN_Crack(BOOL bComponentData,
  35. IDataObject *pDataObject,
  36. IComponentData *pCompData,
  37. IComponent *pComp,
  38. MMC_NOTIFY_TYPE event,
  39. LPARAM arg,
  40. LPARAM param);
  41. */
  42. #endif // _MMC_GLOBALS_H