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.

51 lines
2.1 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. PARMDEFS.H
  5. Abstract:
  6. This file defines parameter modifier constants used throughout the system.
  7. These constants are defined to nothing and are used as reading aides only.
  8. History:
  9. 11/96 a-levn Created.
  10. --*/
  11. #ifndef __PARMDEFS__H_
  12. #define __PARMDEFS__H_
  13. #define IN
  14. #define OUT
  15. #define OLE_MODIFY // This object will be modified through the interface
  16. #define MODIFY // This object will be modified as a C++ object.
  17. #define READ_ONLY // This parameter is read-only
  18. #define NEW_OBJECT // New object will be returned in this parameter
  19. #define RELEASE_ME // The caller must release once the object is not needed.
  20. #define DELETE_ME // The caller must delete once the object is not needed.
  21. #define SYSFREE_ME // The caller must SysFreeString when no longer needed.
  22. #define INTERNAL // Internal pointer is returned. Do not delete. Lifetime
  23. // is limited to that of the object.
  24. #define COPY // The function will make a copy of this object. The
  25. // caller can do as it wishes with the original
  26. #define ACQUIRE // The function acquires the pointer --- the caller may
  27. // never delete it, the object will do it.
  28. #define ADDREF // This IN parameter is AddRef'ed by the function.
  29. #define DELETE_IF_CHANGE // If the contents of this reference is changed by
  30. // the caller, the old contents must be deleted
  31. #define RELEASE_IF_CHANGE // If the contents of this reference is changed by
  32. // the caller, the old contents must be Released
  33. #define INIT_AND_CLEAR_ME // This variant parameter must be VariantInit'ed
  34. // by the caller before and VariantClear'ed after
  35. #define STORE // The function will store this pointer and assume that
  36. // it will live long enough.
  37. #define MODIFIED MODIFY
  38. #define OLE_MODIFIED OLE_MODIFY
  39. #define NOCS const // This function does not acquire any resources
  40. #endif