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

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. vxd.c
  5. Abstract:
  6. This is the WDM DX mapper driver.
  7. Author:
  8. smac
  9. Environment:
  10. Kernel mode only
  11. Revision History:
  12. --*/
  13. #include <windows.h>
  14. #include <vmm.h>
  15. #include "..\ddvxd\dddriver.h"
  16. ULONG DXCheckDDrawVersion( VOID )
  17. {
  18. ULONG ulRet;
  19. VxDCall( _DDRAW_GetVersion );
  20. _asm mov ulRet, eax
  21. return ulRet;
  22. }
  23. ULONG DXIssueIoctl( ULONG dwFunctionNum, VOID *lpvInBuff, ULONG cbInBuff,
  24. VOID *lpvOutBuff, ULONG cbOutBuff )
  25. {
  26. ULONG ulRet;
  27. _asm pushad
  28. _asm push cbOutBuff
  29. _asm push lpvOutBuff
  30. _asm push cbInBuff
  31. _asm push lpvInBuff
  32. _asm push dwFunctionNum
  33. VxDCall( _DDRAW_DXAPI_IOCTL );
  34. _asm mov ulRet, eax
  35. _asm pop eax
  36. _asm pop eax
  37. _asm pop eax
  38. _asm pop eax
  39. _asm pop eax
  40. _asm popad
  41. return ulRet;
  42. }