cabp.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //*******************************************************************************************
  2. //
  3. // Filename : CabP.h
  4. //
  5. // Some useful macros and routines 
  6. //
  7. // Copyright (c) 1994 - 1996 Microsoft Corporation. All rights reserved
  8. //
  9. //*******************************************************************************************
  10. #ifndef _CABP_H_
  11. #define _CABP_H_
  12. #ifndef RC_INVOKED
  13. #pragma pack(1)         /* Assume byte packing throughout */
  14. #endif /* !RC_INVOKED */
  15. #ifdef __cplusplus
  16. extern "C" {            /* Assume C declarations for C++ */
  17. #endif  /* __cplusplus */
  18. //
  19. // Private QueryContextMenuFlag passed from DefView
  20. //
  21. #define CMF_DVFILE       0x00010000     // "File" pulldown
  22. #define ResultFromShort(i)  ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i)))
  23. #define ShortFromResult(r)  (short)SCODE_CODE(GetScode(r))
  24. //
  25. // OLE string
  26. //
  27. int OleStrToStrN(LPTSTR, int, LPCOLESTR, int);
  28. int StrToOleStrN(LPOLESTR, int, LPCTSTR, int);
  29. int OleStrToStr(LPTSTR, LPCOLESTR);
  30. int StrToOleStr(LPOLESTR, LPCTSTR);
  31. #ifdef __cplusplus
  32. }
  33. #endif  /* __cplusplus */
  34. #ifndef RC_INVOKED
  35. #pragma pack()
  36. #endif  /* !RC_INVOKED */
  37. #endif // _CABP_H_