ReactOS 0.4.16-dev-197-g92996da
main.c File Reference
#include <windows.h>
#include <stdio.h>
#include <ddrawi.h>
#include <d3dhal.h>
Include dependency graph for main.c:

Go to the source code of this file.

Functions

INT main (INT argc, TCHAR *argv[])
 
VOID BuildReturnCode (DWORD *ReturnCode)
 

Function Documentation

◆ BuildReturnCode()

VOID BuildReturnCode ( DWORD ReturnCode)

Definition at line 37 of file main.c.

38{
39 INT t;
40 D3DHAL_DP2COMMAND dp2command;
41 DWORD lplpvReturnedCommand[2];
42
43 for (t=0;t<256;t++)
44 {
45 dp2command.bCommand = t;
46 ReturnCode[t] = D3DParseUnknownCommand ( (LPVOID) &dp2command, (LPVOID *) lplpvReturnedCommand) ;
47 printf("D3DParseUnknownCommand return code = %x command %d \n", (UINT)ReturnCode[t], t);
48 }
49}
HRESULT WINAPI D3DParseUnknownCommand(LPVOID lpCmd, LPVOID *lpRetCmd)
Definition: main.c:357
unsigned long DWORD
Definition: ntddk_ex.h:95
#define printf
Definition: freeldr.h:97
GLdouble GLdouble t
Definition: gl.h:2047
unsigned int UINT
Definition: ndis.h:50
int32_t INT
Definition: typedefs.h:58

Referenced by main().

◆ main()

INT main ( INT argc  ,
TCHAR argv[] 
)

Definition at line 28 of file main.c.

29{
30 DWORD ReturnCode[256];
31
32 BuildReturnCode(ReturnCode);
33
34 return 0;
35}
VOID BuildReturnCode(DWORD *ReturnCode)
Definition: main.c:37