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.
 
 
 
 
 
 

62 lines
939 B

/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
vxd.c
Abstract:
This is the WDM DX mapper driver.
Author:
smac
Environment:
Kernel mode only
Revision History:
--*/
#include <windows.h>
#include <vmm.h>
#include "..\ddvxd\dddriver.h"
ULONG DXCheckDDrawVersion( VOID )
{
ULONG ulRet;
VxDCall( _DDRAW_GetVersion );
_asm mov ulRet, eax
return ulRet;
}
ULONG DXIssueIoctl( ULONG dwFunctionNum, VOID *lpvInBuff, ULONG cbInBuff,
VOID *lpvOutBuff, ULONG cbOutBuff )
{
ULONG ulRet;
_asm pushad
_asm push cbOutBuff
_asm push lpvOutBuff
_asm push cbInBuff
_asm push lpvInBuff
_asm push dwFunctionNum
VxDCall( _DDRAW_DXAPI_IOCTL );
_asm mov ulRet, eax
_asm pop eax
_asm pop eax
_asm pop eax
_asm pop eax
_asm pop eax
_asm popad
return ulRet;
}