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.
 
 
 
 
 
 

59 lines
1.2 KiB

#include <windows.h>
#include <winddi.h>
#define STANDARD_DEBUG_PREFIX "DXGTHK.SYS:"
ULONG
DriverEntry(
PVOID DriverObject,
PVOID RegistryPath
);
VOID
DebugPrint(
PCHAR DebugMessage,
...
);
#if defined(ALLOC_PRAGMA)
#pragma alloc_text(PAGE,DriverEntry)
#pragma alloc_text(PAGE,DebugPrint)
#endif
/***************************************************************************\
* VOID DebugPrint
*
\***************************************************************************/
VOID
DebugPrint(
PCHAR DebugMessage,
...
)
{
va_list ap;
va_start(ap, DebugMessage);
EngDebugPrint(STANDARD_DEBUG_PREFIX, DebugMessage, ap);
EngDebugPrint("", "\n", ap);
va_end(ap);
} // DebugPrint()
/***************************************************************************\
* NTSTATUS DriverEntry
*
* This routine is never actually called, but we need it to link.
*
\***************************************************************************/
ULONG
DriverEntry(
PVOID DriverObject,
PVOID RegistryPath
)
{
DebugPrint("DriverEntry should not be called");
return(0);
}