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.

50 lines
832 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. token.hxx
  5. Abstract:
  6. Lsaexts debugger extension
  7. Author:
  8. Larry Zhu (LZhu) May 1, 2001
  9. Environment:
  10. User Mode / Kernel Mode
  11. Revision History:
  12. --*/
  13. #ifndef TOKEN_HXX
  14. #define TOKEN_HXX
  15. #define DUMP_HEX 0x1
  16. #define DUMP_SD 0x80
  17. #define SATYPE_USER 1
  18. #define SATYPE_GROUP 2
  19. #define SATYPE_PRIV 3
  20. HRESULT LocalDumpSid(IN PCSTR pszPad, PSID pxSid, IN ULONG fOptions);
  21. DECLARE_API(token);
  22. __inline PCSTR EasyStr(IN PCSTR pszName)
  23. {
  24. return pszName ? pszName : "(null)";
  25. }
  26. #if defined(DBG)
  27. #define DBG_LOG(uLevel, Msg) { dprintf("Level %lx : ", uLevel); dprintf Msg ;}
  28. #else
  29. #define DBG_LOG(uLevel, Msg) // do nothing
  30. #endif
  31. #endif // #ifndef TOKEN_HXX