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.

21 lines
538 B

  1. #include "stdafx.h"
  2. INT g_iDebugOutputLevel = 0;
  3. void GetOutputDebugFlag(void)
  4. {
  5. DWORD rc, err, size, type;
  6. HKEY hkey;
  7. err = RegOpenKey(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\InetMgr"), &hkey);
  8. if (err != ERROR_SUCCESS) {return;}
  9. size = sizeof(DWORD);
  10. err = RegQueryValueEx(hkey,_T("OutputDebugFlag"),0,&type,(LPBYTE)&rc,&size);
  11. if (err != ERROR_SUCCESS || type != REG_DWORD) {rc = 0;}
  12. RegCloseKey(hkey);
  13. if (rc < 0xffffffff)
  14. {
  15. g_iDebugOutputLevel = rc;
  16. }
  17. return;
  18. }