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.

44 lines
1.1 KiB

  1. /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name :
  4. fullptr.h
  5. Abstract :
  6. This file contains private definitions for the NDR full pointer package.
  7. Author :
  8. David Kays dkays January 1994.
  9. Revision History :
  10. ---------------------------------------------------------------------*/
  11. #ifndef _FULLPTR_
  12. #define _FULLPTR_
  13. #define FULL_POINTER_MARSHALLED 0x01
  14. #define FULL_POINTER_UNMARSHALLED 0x02
  15. #define FULL_POINTER_BUF_SIZED 0x04
  16. #define FULL_POINTER_MEM_SIZED 0x08
  17. #define FULL_POINTER_CONVERTED 0x10
  18. #define FULL_POINTER_FREED 0x20
  19. #define FULL_POINTER_RMBED 0x40
  20. #define CHECK_FULL_POINTER_STATE( State, StateType ) \
  21. ( (State) & (StateType) )
  22. #define SET_FULL_POINTER_STATE( State, StateType ) \
  23. ( (State) |= (StateType) )
  24. #define DEFAULT_REF_ID_TO_POINTER_TABLE_ELEMENTS 512
  25. #define DEFAULT_POINTER_TO_REF_ID_TABLE_BUCKETS 512
  26. #define PTR_HASH( Pointer, HashMask ) \
  27. (ulong)( ((LONG_PTR)(Pointer) >> 3) & (HashMask) )
  28. #endif