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.

38 lines
858 B

  1. /*****************************************************************************\
  2. * MODULE: globals.c
  3. *
  4. * This is the common global variable module. Any globals used throughout the
  5. * executable should be placed in here and the cooresponding declaration
  6. * should be in "globals.h".
  7. *
  8. *
  9. * Copyright (C) 2000 Microsoft Corporation
  10. *
  11. * History:
  12. * Weihai Chen (weihaic) 07-Mar-200
  13. *
  14. \*****************************************************************************/
  15. #include "precomp.h"
  16. #include "priv.h"
  17. LONG g_cComponents = 0 ;
  18. LONG g_cServerLocks = 0;
  19. HRESULT STDMETHODCALLTYPE
  20. LastError2HRESULT (VOID)
  21. {
  22. return MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, GetLastError ());
  23. }
  24. HRESULT STDMETHODCALLTYPE
  25. WinError2HRESULT (DWORD dwError)
  26. {
  27. return MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, dwError);
  28. }