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.

31 lines
874 B

  1. /***************************************************************************\
  2. *
  3. * File: TicketManager.inl
  4. *
  5. * History:
  6. * 9/20/2000: DwayneN: Created
  7. *
  8. * Copyright (C) 2000 by Microsoft Corporation. All rights reserved.
  9. *
  10. \***************************************************************************/
  11. #if !defined(SERVICES__TicketManager_inl__INCLUDED)
  12. #define SERVICES__TicketManager_inl__INCLUDED
  13. #pragma once
  14. //------------------------------------------------------------------------------
  15. DuTicket &
  16. DuTicket::CastFromDWORD(
  17. DWORD & dw)
  18. {
  19. return *(reinterpret_cast<DuTicket*>(&dw));
  20. }
  21. //------------------------------------------------------------------------------
  22. DWORD &
  23. DuTicket::CastToDWORD(
  24. DuTicket & ticket)
  25. {
  26. return *(reinterpret_cast<DWORD*>(&ticket));
  27. }
  28. #endif // SERVICES__TicketManager_inl__INCLUDED