ReactOS 0.4.16-dev-197-g92996da
main.c File Reference
#include "dxapi_driver.h"
#include <debug.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define NDEBU   /* debug prints are enabled, add a G at the end to disable it ;-) */
 

Functions

NTSTATUS NTAPI DriverEntry (IN PVOID Context1, IN PVOID Context2)
 
ULONG NTAPI DxApiGetVersion (VOID)
 
DWORD NTAPI DxApi (IN DWORD dwFunctionNum, IN LPVOID lpvInBuffer, IN DWORD cbInBuffer, OUT LPVOID lpvOutBuffer, OUT DWORD cbOutBuffer)
 
VOID NTAPI DxApiInitialize (PVOID p1, PVOID p2, PVOID p3, PVOID p4, PVOID p5, PVOID p6, PVOID p7, PVOID p8)
 
VOID NTAPI DxAutoflipUpdate (PVOID p1, PVOID p2, PVOID p3, PVOID p4, PVOID p5)
 
VOID NTAPI DxEnableIRQ (PVOID p1, PVOID p2)
 
VOID NTAPI DxLoseObject (PVOID p1, PVOID p2)
 
VOID NTAPI DxUpdateCapture (PVOID p1, PVOID p2, PVOID p3)
 
VOID DxGetVersionNumber (PVOID lpvInBuffer, LPDDGETVERSIONNUMBER lpvOutBuffer)
 
VOID DxCloseHandle (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxOpenDirectDraw (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxOpenSurface (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxOpenVideoPort (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetKernelCaps (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetFieldNumber (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxSetFieldNumber (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxSetSkipPattern (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetSurfaceState (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxSetSurfaceState (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxLock (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxFlipOverlay (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxFlipVideoPort (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetCurrentAutoflip (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetPreviousAutoflip (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxRegisterEvent (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxUnregisterEvent (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxGetPolarity (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxOpenVpCatureDevice (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxAddVpCaptureBuffer (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 
VOID DxFlushVpCaptureBuffs (PVOID lpvInBuffer, PVOID lpvOutBuffer)
 

Macro Definition Documentation

◆ NDEBU

#define NDEBU   /* debug prints are enabled, add a G at the end to disable it ;-) */

Definition at line 15 of file main.c.

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( IN PVOID  Context1,
IN PVOID  Context2 
)

Definition at line 19 of file main.c.

21{
22 /*
23 * NOTE this driver will never be load, it only contain export list
24 * to win32k eng functions
25 */
26 return STATUS_SUCCESS;
27}
#define STATUS_SUCCESS
Definition: shellext.h:65

◆ DxAddVpCaptureBuffer()

VOID DxAddVpCaptureBuffer ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 313 of file main.c.

314{
315 /* FIXME Unimplement */
316}

◆ DxApi()

DWORD NTAPI DxApi ( IN DWORD  dwFunctionNum,
IN LPVOID  lpvInBuffer,
IN DWORD  cbInBuffer,
OUT LPVOID  lpvOutBuffer,
OUT DWORD  cbOutBuffer 
)

Definition at line 97 of file main.c.

102{
103
104 dwFunctionNum -= DD_FIRST_DXAPI;
105
106 if ((lpvOutBuffer == NULL) ||
107 /*(dwFunctionNum < (DD_FIRST_DXAPI - DD_FIRST_DXAPI)) ||*/
108 (dwFunctionNum > (DD_DXAPI_FLUSHVPCAPTUREBUFFERS - DD_FIRST_DXAPI)) ||
109 (gDxApiEntryPoint[dwFunctionNum].pfn == NULL) ||
110 (cbInBuffer != tblCheckInBuffer[dwFunctionNum]) ||
111 (cbOutBuffer != tblCheckOutBuffer[dwFunctionNum]))
112
113 {
114 return 0;
115 }
116
117 gDxApiEntryPoint[dwFunctionNum].pfn(lpvInBuffer, lpvOutBuffer);
118 return 0;
119}
#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS
Definition: ddkmapi.h:55
#define DD_FIRST_DXAPI
Definition: ddkmapi.h:33
#define NULL
Definition: types.h:112
DWORD tblCheckOutBuffer[]
Definition: dxapi_driver.h:75
DWORD tblCheckInBuffer[]
Definition: dxapi_driver.h:35
DRVFN gDxApiEntryPoint[]
Definition: dxapi_driver.h:116
PFN pfn
Definition: winddi.h:531

◆ DxApiGetVersion()

ULONG NTAPI DxApiGetVersion ( VOID  )

Definition at line 44 of file main.c.

45{
46 /* MSDN say this always return Direct Sound version 4.02 */
47 return 0x402;
48}

◆ DxApiInitialize()

VOID NTAPI DxApiInitialize ( PVOID  p1,
PVOID  p2,
PVOID  p3,
PVOID  p4,
PVOID  p5,
PVOID  p6,
PVOID  p7,
PVOID  p8 
)

Definition at line 123 of file main.c.

132{
134}
#define UNIMPLEMENTED
Definition: debug.h:118

◆ DxAutoflipUpdate()

VOID NTAPI DxAutoflipUpdate ( PVOID  p1,
PVOID  p2,
PVOID  p3,
PVOID  p4,
PVOID  p5 
)

Definition at line 138 of file main.c.

144{
146}

◆ DxCloseHandle()

VOID DxCloseHandle ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 199 of file main.c.

200{
201 /* FIXME Unimplement */
202}

◆ DxEnableIRQ()

VOID NTAPI DxEnableIRQ ( PVOID  p1,
PVOID  p2 
)

Definition at line 150 of file main.c.

153{
155}

◆ DxFlipOverlay()

VOID DxFlipOverlay ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 265 of file main.c.

266{
267 /* FIXME Unimplement */
268}

◆ DxFlipVideoPort()

VOID DxFlipVideoPort ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 271 of file main.c.

272{
273 /* FIXME Unimplement */
274}

◆ DxFlushVpCaptureBuffs()

VOID DxFlushVpCaptureBuffs ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 319 of file main.c.

320{
321 /* FIXME Unimplement */
322}

◆ DxGetCurrentAutoflip()

VOID DxGetCurrentAutoflip ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 277 of file main.c.

278{
279 /* FIXME Unimplement */
280}

◆ DxGetFieldNumber()

VOID DxGetFieldNumber ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 229 of file main.c.

230{
231 /* FIXME Unimplement */
232}

◆ DxGetKernelCaps()

VOID DxGetKernelCaps ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 223 of file main.c.

224{
225 /* FIXME Unimplement */
226}

◆ DxGetPolarity()

VOID DxGetPolarity ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 301 of file main.c.

302{
303 /* FIXME Unimplement */
304}

◆ DxGetPreviousAutoflip()

VOID DxGetPreviousAutoflip ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 283 of file main.c.

284{
285 /* FIXME Unimplement */
286}

◆ DxGetSurfaceState()

VOID DxGetSurfaceState ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 247 of file main.c.

248{
249 /* FIXME Unimplement */
250}

◆ DxGetVersionNumber()

VOID DxGetVersionNumber ( PVOID  lpvInBuffer,
LPDDGETVERSIONNUMBER  lpvOutBuffer 
)

Definition at line 191 of file main.c.

192{
193 lpvOutBuffer->ddRVal = DD_OK;
194 lpvOutBuffer->dwMajorVersion = 1;
195 lpvOutBuffer->dwMinorVersion = 0;
196}
#define DD_OK
Definition: ddraw.h:186
DWORD dwMajorVersion
Definition: ddkmapi.h:183
DWORD dwMinorVersion
Definition: ddkmapi.h:184

◆ DxLock()

VOID DxLock ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 259 of file main.c.

260{
261 /* FIXME Unimplement */
262}

◆ DxLoseObject()

VOID NTAPI DxLoseObject ( PVOID  p1,
PVOID  p2 
)

Definition at line 159 of file main.c.

162{
164}

◆ DxOpenDirectDraw()

VOID DxOpenDirectDraw ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 205 of file main.c.

206{
207 /* FIXME Unimplement */
208}

◆ DxOpenSurface()

VOID DxOpenSurface ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 211 of file main.c.

212{
213 /* FIXME Unimplement */
214}

◆ DxOpenVideoPort()

VOID DxOpenVideoPort ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 217 of file main.c.

218{
219 /* FIXME Unimplement */
220}

◆ DxOpenVpCatureDevice()

VOID DxOpenVpCatureDevice ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 307 of file main.c.

308{
309 /* FIXME Unimplement */
310}

◆ DxRegisterEvent()

VOID DxRegisterEvent ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 289 of file main.c.

290{
291 /* FIXME Unimplement */
292}

◆ DxSetFieldNumber()

VOID DxSetFieldNumber ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 235 of file main.c.

236{
237 /* FIXME Unimplement */
238}

◆ DxSetSkipPattern()

VOID DxSetSkipPattern ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 241 of file main.c.

242{
243 /* FIXME Unimplement */
244}

◆ DxSetSurfaceState()

VOID DxSetSurfaceState ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 253 of file main.c.

254{
255 /* FIXME Unimplement */
256}

◆ DxUnregisterEvent()

VOID DxUnregisterEvent ( PVOID  lpvInBuffer,
PVOID  lpvOutBuffer 
)

Definition at line 295 of file main.c.

296{
297 /* FIXME Unimplement */
298}

◆ DxUpdateCapture()

VOID NTAPI DxUpdateCapture ( PVOID  p1,
PVOID  p2,
PVOID  p3 
)

Definition at line 168 of file main.c.

172{
174}