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.

34 lines
913 B

  1. /***************************************************************************\
  2. *
  3. * File: ResourceManager.inl
  4. *
  5. * History:
  6. * 4/18/2000: JStall: Created
  7. *
  8. * Copyright (C) 2000 by Microsoft Corporation. All rights reserved.
  9. *
  10. \***************************************************************************/
  11. #if !defined(SERVICES__ResourceManager_inl__INCLUDED)
  12. #define SERVICES__ResourceManager_inl__INCLUDED
  13. #pragma once
  14. //------------------------------------------------------------------------------
  15. inline RMData *
  16. ResourceManager::GetData()
  17. {
  18. AssertMsg(s_pData != NULL, "Data must be initialized before using");
  19. return s_pData;
  20. }
  21. //------------------------------------------------------------------------------
  22. inline DxManager *
  23. GetDxManager()
  24. {
  25. return &(ResourceManager::GetData()->manDX);
  26. }
  27. #endif // SERVICES__ResourceManager_inl__INCLUDED