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.
 
 
 
 
 
 

68 lines
1.3 KiB

#pragma once
#define COM_NO_WINDOWS_H
#define RPC_NO_WINDOWS_H
#define NOCOMM
#define NOCRYPT
#define NOHELP
#define NOICONS
#define NOIME
#define NOMCX
#define NOMDI
#define NOMETAFILE
#define NOSOUND
#define NOSYSPARAMSINFO
#define NOWH
#define NOWINABLE
#define NOWINRES
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <objbase.h>
#include <cfgmgr32.h>
#include <devguid.h>
#include <infstr.h>
#include <regstr.h>
#include <setupapi.h>
#include <stdio.h>
#include <wchar.h>
#include <shlwapi.h>
#include <shlwapip.h> // for SHLoadRegUIString
#include "ncmem.h"
#include "algorithm"
#include "list"
#include "vector"
using namespace std;
#include "ncbase.h"
#include "ncdebug.h"
#include "ncdefine.h"
#ifdef ENABLELEAKDETECTION
#include "iatl.h"
template <class T>
class CComObjectRootExDbg : public CComObjectRootEx<T>,
public CNetCfgDebug<T>
{
public:
void FinalRelease()
{
CComObjectRootEx<T>::FinalRelease();
// ISSUE_knownleak(this);
}
};
#define CComObjectRootEx CComObjectRootExDbg
class CComObjectRootDbg : public CNetCfgDebug<CComObjectRootDbg>,
public CComObjectRoot
{
};
#define CComObjectRoot CComObjectRootDbg
#endif