ReactOS  0.4.15-dev-2703-g05fb0f1
ddkmapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DDCAPBUFFINFO
 
struct  _DDADDVPCAPTUREBUFF
 
struct  _DDCLOSEHANDLE
 
struct  _DDFLIPOVERLAY
 
struct  _DDFLIPVIDEOPORT
 
struct  _DDGETAUTOFLIPIN
 
struct  _DDGETAUTOFLIPOUT
 
struct  _DDGETPOLARITYIN
 
struct  _DDGETPOLARITYOUT
 
struct  _DDGETSURFACESTATEIN
 
struct  _DDGETSURFACESTATEOUT
 
struct  _DDGETFIELDNUMIN
 
struct  _DDGETFIELDNUMOUT
 
struct  _DDGETKERNELCAPSOUT
 
struct  _DDGETVERSIONNUMBER
 
struct  _DDLOCKIN
 
struct  _DDLOCKOUT
 
struct  _DDOPENDIRECTDRAWIN
 
struct  _DDOPENDIRECTDRAWOUT
 
struct  _DDOPENSURFACEIN
 
struct  _DDOPENSURFACEOUT
 
struct  _DDOPENVIDEOPORTIN
 
struct  _DDOPENVIDEOPORTOUT
 
struct  _DDOPENVPCAPTUREDEVICEIN
 
struct  _DDOPENVPCAPTUREDEVICEOUT
 
struct  _DDREGISTERCALLBACK
 
struct  _DDSETSURFACETATE
 
struct  _DDSETFIELDNUM
 
struct  _DDSETSKIPFIELD
 

Macros

#define DXAPI   DECLSPEC_IMPORT
 
#define DXAPI_MAJORVERSION   1
 
#define DXAPI_MINORVERSION   0
 
#define DD_FIRST_DXAPI   0x500
 
#define DD_DXAPI_GETVERSIONNUMBER   (DD_FIRST_DXAPI)
 
#define DD_DXAPI_CLOSEHANDLE   (DD_FIRST_DXAPI+1)
 
#define DD_DXAPI_OPENDIRECTDRAW   (DD_FIRST_DXAPI+2)
 
#define DD_DXAPI_OPENSURFACE   (DD_FIRST_DXAPI+3)
 
#define DD_DXAPI_OPENVIDEOPORT   (DD_FIRST_DXAPI+4)
 
#define DD_DXAPI_GETKERNELCAPS   (DD_FIRST_DXAPI+5)
 
#define DD_DXAPI_GET_VP_FIELD_NUMBER   (DD_FIRST_DXAPI+6)
 
#define DD_DXAPI_SET_VP_FIELD_NUMBER   (DD_FIRST_DXAPI+7)
 
#define DD_DXAPI_SET_VP_SKIP_FIELD   (DD_FIRST_DXAPI+8)
 
#define DD_DXAPI_GET_SURFACE_STATE   (DD_FIRST_DXAPI+9)
 
#define DD_DXAPI_SET_SURFACE_STATE   (DD_FIRST_DXAPI+10)
 
#define DD_DXAPI_LOCK   (DD_FIRST_DXAPI+11)
 
#define DD_DXAPI_FLIP_OVERLAY   (DD_FIRST_DXAPI+12)
 
#define DD_DXAPI_FLIP_VP   (DD_FIRST_DXAPI+13)
 
#define DD_DXAPI_GET_CURRENT_VP_AUTOFLIP_SURFACE   (DD_FIRST_DXAPI+14)
 
#define DD_DXAPI_GET_LAST_VP_AUTOFLIP_SURFACE   (DD_FIRST_DXAPI+15)
 
#define DD_DXAPI_REGISTER_CALLBACK   (DD_FIRST_DXAPI+16)
 
#define DD_DXAPI_UNREGISTER_CALLBACK   (DD_FIRST_DXAPI+17)
 
#define DD_DXAPI_GET_POLARITY   (DD_FIRST_DXAPI+18)
 
#define DD_DXAPI_OPENVPCAPTUREDEVICE   (DD_FIRST_DXAPI+19)
 
#define DD_DXAPI_ADDVPCAPTUREBUFFER   (DD_FIRST_DXAPI+20)
 
#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS   (DD_FIRST_DXAPI+21)
 
#define DDOPENCAPTURE_VIDEO   0x0001
 
#define DDOPENCAPTURE_VBI   0x0002
 
#define DDADDBUFF_SYSTEMMEMORY   0x0001
 
#define DDADDBUFF_NONLOCALVIDMEM   0x0002
 
#define DDADDBUFF_INVERT   0x0004
 
#define DDSTATE_BOB   0x0001
 
#define DDSTATE_WEAVE   0x0002
 
#define DDSTATE_EXPLICITLY_SET   0x0004
 
#define DDSTATE_SOFTWARE_AUTOFLIP   0x0008
 
#define DDSTATE_SKIPEVENFIELDS   0x0010
 
#define DDEVENT_DISPLAY_VSYNC   0x0001
 
#define DDEVENT_VP_VSYNC   0x0002
 
#define DDEVENT_VP_LINE   0x0004
 
#define DDEVENT_PRERESCHANGE   0x0008
 
#define DDEVENT_POSTRESCHANGE   0x0010
 
#define DDEVENT_PREDOSBOX   0x0020
 
#define DDEVENT_POSTDOSBOX   0x0040
 
#define DDNOTIFY_DISPLAY_VSYNC   0x0001
 
#define DDNOTIFY_VP_VSYNC   0x0002
 
#define DDNOTIFY_VP_LINE   0x0004
 
#define DDNOTIFY_PRERESCHANGE   0x0008
 
#define DDNOTIFY_POSTRESCHANGE   0x0010
 
#define DDNOTIFY_PREDOSBOX   0x0020
 
#define DDNOTIFY_POSTDOSBOX   0x0040
 
#define DDNOTIFY_CLOSEDIRECTDRAW   0x0080
 
#define DDNOTIFY_CLOSESURFACE   0x0100
 
#define DDNOTIFY_CLOSEVIDEOPORT   0x0200
 
#define DDNOTIFY_CLOSECAPTURE   0x0400
 

Typedefs

typedef DWORD(PASCALLPDXAPI) (DWORD dwFunctionNum, LPVOID lpvInBuffer, DWORD cbInBuffer, LPVOID lpvOutBuffer, DWORD cbOutBuffer)
 
typedef ULONG(PASCALLPDD_NOTIFYCALLBACK) (DWORD dwFlags, PVOID pContext, DWORD dwParam1, DWORD dwParam2)
 
typedef struct _DDCAPBUFFINFO DDCAPBUFFINFO
 
typedef struct _DDCAPBUFFINFOLPDDCAPBUFFINFO
 
typedef struct _DDADDVPCAPTUREBUFF DDADDVPCAPTUREBUFF
 
typedef struct _DDADDVPCAPTUREBUFFLPDDADDVPCAPTUREBUFF
 
typedef struct _DDCLOSEHANDLE DDCLOSEHANDLE
 
typedef struct _DDCLOSEHANDLELPDDCLOSEHANDLE
 
typedef struct _DDFLIPOVERLAY DDFLIPOVERLAY
 
typedef struct _DDFLIPOVERLAYLPDDFLIPOVERLAY
 
typedef struct _DDFLIPVIDEOPORT DDFLIPVIDEOPORT
 
typedef struct _DDFLIPVIDEOPORTLPDDFLIPVIDEOPORT
 
typedef struct _DDGETAUTOFLIPIN DDGETAUTOFLIPIN
 
typedef struct _DDGETAUTOFLIPINLPDDGETAUTOFLIPIN
 
typedef struct _DDGETAUTOFLIPOUT DDGETAUTOFLIPOUT
 
typedef struct _DDGETAUTOFLIPOUTLPDDGETAUTOFLIPOUT
 
typedef struct _DDGETPOLARITYIN DDGETPOLARITYIN
 
typedef struct _DDGETPOLARITYINLPDDGETPOLARITYIN
 
typedef struct _DDGETPOLARITYOUT DDGETPOLARITYOUT
 
typedef struct _DDGETPOLARITYOUTLPDDGETPOLARITYOUT
 
typedef struct _DDGETSURFACESTATEIN DDGETSURFACESTATEIN
 
typedef struct _DDGETSURFACESTATEINLPDDGETSURFACESTATEIN
 
typedef struct _DDGETSURFACESTATEOUT DDGETSURFACESTATEOUT
 
typedef struct _DDGETSURFACESTATEOUTLPDDGETSURFACESTATEOUT
 
typedef struct _DDGETFIELDNUMIN DDGETFIELDNUMIN
 
typedef struct _DDGETFIELDNUMINLPDDGETFIELDNUMIN
 
typedef struct _DDGETFIELDNUMOUT DDGETFIELDNUMOUT
 
typedef struct _DDGETFIELDNUMOUTLPDDGETFIELDNUMOUT
 
typedef struct _DDGETKERNELCAPSOUT DDGETKERNELCAPSOUT
 
typedef struct _DDGETKERNELCAPSOUTLPDDGETKERNELCAPSOUT
 
typedef struct _DDGETVERSIONNUMBER DDGETVERSIONNUMBER
 
typedef struct _DDGETVERSIONNUMBERLPDDGETVERSIONNUMBER
 
typedef struct _DDLOCKIN DDLOCKIN
 
typedef struct _DDLOCKINLPDDLOCKIN
 
typedef struct _DDLOCKOUT DDLOCKOUT
 
typedef struct _DDLOCKOUTLPDDLOCKOUT
 
typedef struct _DDOPENDIRECTDRAWIN DDOPENDIRECTDRAWIN
 
typedef struct _DDOPENDIRECTDRAWINLPDDOPENDIRECTDRAWIN
 
typedef struct _DDOPENDIRECTDRAWOUT DDOPENDIRECTDRAWOUT
 
typedef struct _DDOPENDIRECTDRAWOUTLPDDOPENDIRECTDRAWOUT
 
typedef struct _DDOPENSURFACEIN DDOPENSURFACEIN
 
typedef struct _DDOPENSURFACEINLPDDOPENSURFACEIN
 
typedef struct _DDOPENSURFACEOUT DDOPENSURFACEOUT
 
typedef struct _DDOPENSURFACEOUTLPDDOPENSURFACEOUT
 
typedef struct _DDOPENVIDEOPORTIN DDOPENVIDEOPORTIN
 
typedef struct _DDOPENVIDEOPORTINLPDDOPENVIDEOPORTIN
 
typedef struct _DDOPENVIDEOPORTOUT DDOPENVIDEOPORTOUT
 
typedef struct _DDOPENVIDEOPORTOUTLPDDOPENVIDEOPORTOUT
 
typedef struct _DDOPENVPCAPTUREDEVICEIN DDOPENVPCAPTUREDEVICEIN
 
typedef struct _DDOPENVPCAPTUREDEVICEINLPDDOPENVPCAPTUREDEVICEIN
 
typedef struct _DDOPENVPCAPTUREDEVICEOUT DDOPENVPCAPTUREDEVICEOUT
 
typedef struct _DDOPENVPCAPTUREDEVICEOUTLPDDOPENVPCAPTUREDEVICEOUT
 
typedef struct _DDREGISTERCALLBACK DDREGISTERCALLBACK
 
typedef struct _DDREGISTERCALLBACKLPDDREGISTERCALLBACK
 
typedef struct _DDSETSURFACETATE DDSETSURFACESTATE
 
typedef struct _DDSETSURFACETATELPDDSETSURFACESTATE
 
typedef struct _DDSETFIELDNUM DDSETFIELDNUM
 
typedef struct _DDSETFIELDNUMLPDDSETFIELDNUM
 
typedef struct _DDSETSKIPFIELD DDSETSKIPFIELD
 
typedef struct _DDSETSKIPFIELDLPDDSETSKIPFIELD
 

Functions

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

Macro Definition Documentation

◆ DD_DXAPI_ADDVPCAPTUREBUFFER

#define DD_DXAPI_ADDVPCAPTUREBUFFER   (DD_FIRST_DXAPI+20)

Definition at line 54 of file ddkmapi.h.

◆ DD_DXAPI_CLOSEHANDLE

#define DD_DXAPI_CLOSEHANDLE   (DD_FIRST_DXAPI+1)

Definition at line 35 of file ddkmapi.h.

◆ DD_DXAPI_FLIP_OVERLAY

#define DD_DXAPI_FLIP_OVERLAY   (DD_FIRST_DXAPI+12)

Definition at line 46 of file ddkmapi.h.

◆ DD_DXAPI_FLIP_VP

#define DD_DXAPI_FLIP_VP   (DD_FIRST_DXAPI+13)

Definition at line 47 of file ddkmapi.h.

◆ DD_DXAPI_FLUSHVPCAPTUREBUFFERS

#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS   (DD_FIRST_DXAPI+21)

Definition at line 55 of file ddkmapi.h.

◆ DD_DXAPI_GET_CURRENT_VP_AUTOFLIP_SURFACE

#define DD_DXAPI_GET_CURRENT_VP_AUTOFLIP_SURFACE   (DD_FIRST_DXAPI+14)

Definition at line 48 of file ddkmapi.h.

◆ DD_DXAPI_GET_LAST_VP_AUTOFLIP_SURFACE

#define DD_DXAPI_GET_LAST_VP_AUTOFLIP_SURFACE   (DD_FIRST_DXAPI+15)

Definition at line 49 of file ddkmapi.h.

◆ DD_DXAPI_GET_POLARITY

#define DD_DXAPI_GET_POLARITY   (DD_FIRST_DXAPI+18)

Definition at line 52 of file ddkmapi.h.

◆ DD_DXAPI_GET_SURFACE_STATE

#define DD_DXAPI_GET_SURFACE_STATE   (DD_FIRST_DXAPI+9)

Definition at line 43 of file ddkmapi.h.

◆ DD_DXAPI_GET_VP_FIELD_NUMBER

#define DD_DXAPI_GET_VP_FIELD_NUMBER   (DD_FIRST_DXAPI+6)

Definition at line 40 of file ddkmapi.h.

◆ DD_DXAPI_GETKERNELCAPS

#define DD_DXAPI_GETKERNELCAPS   (DD_FIRST_DXAPI+5)

Definition at line 39 of file ddkmapi.h.

◆ DD_DXAPI_GETVERSIONNUMBER

#define DD_DXAPI_GETVERSIONNUMBER   (DD_FIRST_DXAPI)

Definition at line 34 of file ddkmapi.h.

◆ DD_DXAPI_LOCK

#define DD_DXAPI_LOCK   (DD_FIRST_DXAPI+11)

Definition at line 45 of file ddkmapi.h.

◆ DD_DXAPI_OPENDIRECTDRAW

#define DD_DXAPI_OPENDIRECTDRAW   (DD_FIRST_DXAPI+2)

Definition at line 36 of file ddkmapi.h.

◆ DD_DXAPI_OPENSURFACE

#define DD_DXAPI_OPENSURFACE   (DD_FIRST_DXAPI+3)

Definition at line 37 of file ddkmapi.h.

◆ DD_DXAPI_OPENVIDEOPORT

#define DD_DXAPI_OPENVIDEOPORT   (DD_FIRST_DXAPI+4)

Definition at line 38 of file ddkmapi.h.

◆ DD_DXAPI_OPENVPCAPTUREDEVICE

#define DD_DXAPI_OPENVPCAPTUREDEVICE   (DD_FIRST_DXAPI+19)

Definition at line 53 of file ddkmapi.h.

◆ DD_DXAPI_REGISTER_CALLBACK

#define DD_DXAPI_REGISTER_CALLBACK   (DD_FIRST_DXAPI+16)

Definition at line 50 of file ddkmapi.h.

◆ DD_DXAPI_SET_SURFACE_STATE

#define DD_DXAPI_SET_SURFACE_STATE   (DD_FIRST_DXAPI+10)

Definition at line 44 of file ddkmapi.h.

◆ DD_DXAPI_SET_VP_FIELD_NUMBER

#define DD_DXAPI_SET_VP_FIELD_NUMBER   (DD_FIRST_DXAPI+7)

Definition at line 41 of file ddkmapi.h.

◆ DD_DXAPI_SET_VP_SKIP_FIELD

#define DD_DXAPI_SET_VP_SKIP_FIELD   (DD_FIRST_DXAPI+8)

Definition at line 42 of file ddkmapi.h.

◆ DD_DXAPI_UNREGISTER_CALLBACK

#define DD_DXAPI_UNREGISTER_CALLBACK   (DD_FIRST_DXAPI+17)

Definition at line 51 of file ddkmapi.h.

◆ DD_FIRST_DXAPI

#define DD_FIRST_DXAPI   0x500

Definition at line 33 of file ddkmapi.h.

◆ DDADDBUFF_INVERT

#define DDADDBUFF_INVERT   0x0004

Definition at line 64 of file ddkmapi.h.

◆ DDADDBUFF_NONLOCALVIDMEM

#define DDADDBUFF_NONLOCALVIDMEM   0x0002

Definition at line 63 of file ddkmapi.h.

◆ DDADDBUFF_SYSTEMMEMORY

#define DDADDBUFF_SYSTEMMEMORY   0x0001

Definition at line 62 of file ddkmapi.h.

◆ DDEVENT_DISPLAY_VSYNC

#define DDEVENT_DISPLAY_VSYNC   0x0001

Definition at line 74 of file ddkmapi.h.

◆ DDEVENT_POSTDOSBOX

#define DDEVENT_POSTDOSBOX   0x0040

Definition at line 80 of file ddkmapi.h.

◆ DDEVENT_POSTRESCHANGE

#define DDEVENT_POSTRESCHANGE   0x0010

Definition at line 78 of file ddkmapi.h.

◆ DDEVENT_PREDOSBOX

#define DDEVENT_PREDOSBOX   0x0020

Definition at line 79 of file ddkmapi.h.

◆ DDEVENT_PRERESCHANGE

#define DDEVENT_PRERESCHANGE   0x0008

Definition at line 77 of file ddkmapi.h.

◆ DDEVENT_VP_LINE

#define DDEVENT_VP_LINE   0x0004

Definition at line 76 of file ddkmapi.h.

◆ DDEVENT_VP_VSYNC

#define DDEVENT_VP_VSYNC   0x0002

Definition at line 75 of file ddkmapi.h.

◆ DDNOTIFY_CLOSECAPTURE

#define DDNOTIFY_CLOSECAPTURE   0x0400

Definition at line 93 of file ddkmapi.h.

◆ DDNOTIFY_CLOSEDIRECTDRAW

#define DDNOTIFY_CLOSEDIRECTDRAW   0x0080

Definition at line 90 of file ddkmapi.h.

◆ DDNOTIFY_CLOSESURFACE

#define DDNOTIFY_CLOSESURFACE   0x0100

Definition at line 91 of file ddkmapi.h.

◆ DDNOTIFY_CLOSEVIDEOPORT

#define DDNOTIFY_CLOSEVIDEOPORT   0x0200

Definition at line 92 of file ddkmapi.h.

◆ DDNOTIFY_DISPLAY_VSYNC

#define DDNOTIFY_DISPLAY_VSYNC   0x0001

Definition at line 83 of file ddkmapi.h.

◆ DDNOTIFY_POSTDOSBOX

#define DDNOTIFY_POSTDOSBOX   0x0040

Definition at line 89 of file ddkmapi.h.

◆ DDNOTIFY_POSTRESCHANGE

#define DDNOTIFY_POSTRESCHANGE   0x0010

Definition at line 87 of file ddkmapi.h.

◆ DDNOTIFY_PREDOSBOX

#define DDNOTIFY_PREDOSBOX   0x0020

Definition at line 88 of file ddkmapi.h.

◆ DDNOTIFY_PRERESCHANGE

#define DDNOTIFY_PRERESCHANGE   0x0008

Definition at line 86 of file ddkmapi.h.

◆ DDNOTIFY_VP_LINE

#define DDNOTIFY_VP_LINE   0x0004

Definition at line 85 of file ddkmapi.h.

◆ DDNOTIFY_VP_VSYNC

#define DDNOTIFY_VP_VSYNC   0x0002

Definition at line 84 of file ddkmapi.h.

◆ DDOPENCAPTURE_VBI

#define DDOPENCAPTURE_VBI   0x0002

Definition at line 59 of file ddkmapi.h.

◆ DDOPENCAPTURE_VIDEO

#define DDOPENCAPTURE_VIDEO   0x0001

Definition at line 58 of file ddkmapi.h.

◆ DDSTATE_BOB

#define DDSTATE_BOB   0x0001

Definition at line 67 of file ddkmapi.h.

◆ DDSTATE_EXPLICITLY_SET

#define DDSTATE_EXPLICITLY_SET   0x0004

Definition at line 69 of file ddkmapi.h.

◆ DDSTATE_SKIPEVENFIELDS

#define DDSTATE_SKIPEVENFIELDS   0x0010

Definition at line 71 of file ddkmapi.h.

◆ DDSTATE_SOFTWARE_AUTOFLIP

#define DDSTATE_SOFTWARE_AUTOFLIP   0x0008

Definition at line 70 of file ddkmapi.h.

◆ DDSTATE_WEAVE

#define DDSTATE_WEAVE   0x0002

Definition at line 68 of file ddkmapi.h.

◆ DXAPI

#define DXAPI   DECLSPEC_IMPORT

Definition at line 27 of file ddkmapi.h.

◆ DXAPI_MAJORVERSION

#define DXAPI_MAJORVERSION   1

Definition at line 30 of file ddkmapi.h.

◆ DXAPI_MINORVERSION

#define DXAPI_MINORVERSION   0

Definition at line 31 of file ddkmapi.h.

Typedef Documentation

◆ DDADDVPCAPTUREBUFF

◆ DDCAPBUFFINFO

◆ DDCLOSEHANDLE

◆ DDFLIPOVERLAY

◆ DDFLIPVIDEOPORT

◆ DDGETAUTOFLIPIN

◆ DDGETAUTOFLIPOUT

◆ DDGETFIELDNUMIN

◆ DDGETFIELDNUMOUT

◆ DDGETKERNELCAPSOUT

◆ DDGETPOLARITYIN

◆ DDGETPOLARITYOUT

◆ DDGETSURFACESTATEIN

◆ DDGETSURFACESTATEOUT

◆ DDGETVERSIONNUMBER

◆ DDLOCKIN

◆ DDLOCKOUT

◆ DDOPENDIRECTDRAWIN

◆ DDOPENDIRECTDRAWOUT

◆ DDOPENSURFACEIN

◆ DDOPENSURFACEOUT

◆ DDOPENVIDEOPORTIN

◆ DDOPENVIDEOPORTOUT

◆ DDOPENVPCAPTUREDEVICEIN

◆ DDOPENVPCAPTUREDEVICEOUT

◆ DDREGISTERCALLBACK

◆ DDSETFIELDNUM

◆ DDSETSKIPFIELD

◆ DDSETSURFACESTATE

◆ LPDD_NOTIFYCALLBACK

typedef ULONG(PASCAL * LPDD_NOTIFYCALLBACK) (DWORD dwFlags, PVOID pContext, DWORD dwParam1, DWORD dwParam2)

Definition at line 96 of file ddkmapi.h.

◆ LPDDADDVPCAPTUREBUFF

◆ LPDDCAPBUFFINFO

◆ LPDDCLOSEHANDLE

◆ LPDDFLIPOVERLAY

◆ LPDDFLIPVIDEOPORT

◆ LPDDGETAUTOFLIPIN

◆ LPDDGETAUTOFLIPOUT

◆ LPDDGETFIELDNUMIN

◆ LPDDGETFIELDNUMOUT

◆ LPDDGETKERNELCAPSOUT

◆ LPDDGETPOLARITYIN

◆ LPDDGETPOLARITYOUT

◆ LPDDGETSURFACESTATEIN

◆ LPDDGETSURFACESTATEOUT

◆ LPDDGETVERSIONNUMBER

◆ LPDDLOCKIN

◆ LPDDLOCKOUT

◆ LPDDOPENDIRECTDRAWIN

◆ LPDDOPENDIRECTDRAWOUT

◆ LPDDOPENSURFACEIN

◆ LPDDOPENSURFACEOUT

◆ LPDDOPENVIDEOPORTIN

◆ LPDDOPENVIDEOPORTOUT

◆ LPDDOPENVPCAPTUREDEVICEIN

◆ LPDDOPENVPCAPTUREDEVICEOUT

◆ LPDDREGISTERCALLBACK

◆ LPDDSETFIELDNUM

◆ LPDDSETSKIPFIELD

◆ LPDDSETSURFACESTATE

◆ LPDXAPI

typedef DWORD(PASCAL * LPDXAPI) (DWORD dwFunctionNum, LPVOID lpvInBuffer, DWORD cbInBuffer, LPVOID lpvOutBuffer, DWORD cbOutBuffer)

Definition at line 95 of file ddkmapi.h.

Function Documentation

◆ DxApi()

DXAPI DWORD PASCAL 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 }
DWORD tblCheckOutBuffer[]
Definition: dxapi_driver.h:76
PFN pfn
Definition: winddi.h:531
DRVFN gDxApiEntryPoint[]
Definition: dxapi_driver.h:117
DWORD tblCheckInBuffer[]
Definition: dxapi_driver.h:36
#define NULL
Definition: types.h:112
#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS
Definition: ddkmapi.h:55
#define DD_FIRST_DXAPI
Definition: ddkmapi.h:33