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.
 
 
 
 
 
 

25 lines
673 B

#include "stdafx.h"
INT g_iDebugOutputLevel = 0;
#ifdef DEBUG_FLAG
void GetOutputDebugFlag(void)
{
DWORD rc, err, size, type;
HKEY hkey;
err = RegOpenKey(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\InetMgr"), &hkey);
if (err != ERROR_SUCCESS) {return;}
size = sizeof(DWORD);
err = RegQueryValueEx(hkey,_T("OutputDebugFlag"),0,&type,(LPBYTE)&rc,&size);
if (err != ERROR_SUCCESS || type != REG_DWORD) {rc = 0;}
RegCloseKey(hkey);
if (rc < 0xffffffff)
{
g_iDebugOutputLevel = rc;
}
return;
}
#else
void GetOutputDebugFlag(void){}
#endif