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.

66 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1996-1997 Microsoft Corporation
  3. Module Name:
  4. GLOBALS.CPP
  5. Abstract:
  6. Placeholder for global data definitions and routines to
  7. initialize/save global information
  8. Author:
  9. Vlad Sadovsky (vlads) 12-20-99
  10. Revision History:
  11. --*/
  12. //
  13. // Headers
  14. //
  15. #define INITGUID
  16. #define DEFINE_GLOBAL_VARIABLES
  17. #include "stiexe.h"
  18. #include "stiusd.h"
  19. //
  20. // Code section
  21. //
  22. DWORD
  23. InitGlobalConfigFromReg(VOID)
  24. /*++
  25. Loads the global configuration parameters from registry and performs start-up checks
  26. Returns:
  27. Win32 error code. NO_ERROR on success
  28. --*/
  29. {
  30. DWORD dwError = NO_ERROR;
  31. DWORD dwMessageId = 0;
  32. HKEY hkey = NULL;
  33. DWORD dwMask = 0;
  34. RegEntry re(REGSTR_PATH_STICONTROL_A,HKEY_LOCAL_MACHINE);
  35. re.GetString(REGSTR_VAL_STIWIASVCDLL, g_szWiaServiceDll, sizeof(g_szWiaServiceDll));
  36. g_fUIPermitted = re.GetNumber(REGSTR_VAL_DEBUG_STIMONUI_A,0);
  37. return dwError;
  38. } // InitGlobalConfigFromReg()