Formating

svn path=/trunk/; revision=26730
This commit is contained in:
Maarten Bosma 2007-05-12 16:28:54 +00:00
parent 4a65ec1dcc
commit 8658735640

View file

@ -1,21 +1,21 @@
* DirectDraw Object struct DirectDraw Object struct
DDRAWI_DIRECTDRAW_INT DDRAWI_DIRECTDRAW_INT
it is the the return pointer from ddraw.dll to the program it is the the return pointer from ddraw.dll to the program
DDRAWI_DIRECTDRAW_LCL DDRAWI_DIRECTDRAW_LCL
It is the program own private data It is the program own private data
DDRAWI_DIRECTDRAW_GBL DDRAWI_DIRECTDRAW_GBL
This struct is gboal for whole ddraw.dll for all program This struct is gboal for whole ddraw.dll for all program
it is static in ddraw if it change it change for all it is static in ddraw if it change it change for all
program program
The struct The struct
from http://msdn2.microsoft.com/en-us/library/ms898267.aspx from http://msdn2.microsoft.com/en-us/library/ms898267.aspx
it was not document for windows 2000/xp/2003 but ms did document it it was not document for windows 2000/xp/2003 but ms did document it
for windows ce 5.0 the link are to windows ce 5.0 arch for windows ce 5.0 the link are to windows ce 5.0 arch
typedef struct _DDRAWI_DIRECTDRAW_INT { typedef struct _DDRAWI_DIRECTDRAW_INT {
LPVOID lpVtbl; LPVOID lpVtbl;
@ -24,7 +24,7 @@ typedef struct _DDRAWI_DIRECTDRAW_INT {
DWORD dwIntRefCnt; DWORD dwIntRefCnt;
} DDRAWI_DIRECTDRAW_INT; } DDRAWI_DIRECTDRAW_INT;
rest of the struct are from msdn for windows 2000/xp/2003 Rest of the struct are from msdn for windows 2000/xp/2003
typedef struct _DDRAWI_DIRECTDRAW_LCL { typedef struct _DDRAWI_DIRECTDRAW_LCL {
DWORD lpDDMore; DWORD lpDDMore;
LPDDRAWI_DIRECTDRAW_GBL lpGbl; // fill it from function Create_DirectDraw with static pointer ddgbl LPDDRAWI_DIRECTDRAW_GBL lpGbl; // fill it from function Create_DirectDraw with static pointer ddgbl
@ -54,7 +54,6 @@ typedef struct _DDRAWI_DIRECTDRAW_LCL {
LPDDGAMMACALIBRATORPROC lpGammaCalibrator; LPDDGAMMACALIBRATORPROC lpGammaCalibrator;
} DDRAWI_DIRECTDRAW_LCL; } DDRAWI_DIRECTDRAW_LCL;
typedef struct _DDRAWI_DIRECTDRAW_GBL { typedef struct _DDRAWI_DIRECTDRAW_GBL {
DWORD dwRefCnt; DWORD dwRefCnt;
DWORD dwFlags; DWORD dwFlags;
@ -128,23 +127,19 @@ typedef struct _DDRAWI_DIRECTDRAW_GBL {
DDSCAPSEX ddsCapsMore; DDSCAPSEX ddsCapsMore;
} DDRAWI_DIRECTDRAW_GBL; } DDRAWI_DIRECTDRAW_GBL;
Clipper Object struct
DDRAWI_DDRAWCLIPPER_INT
It is the the return pointer from ddraw.dll to the program
*/ DDRAWI_DDRAWCLIPPER_LCL
It is the program own private data
DDRAWI_DDRAWCLIPPER_GBL
This struct is gboal for whole ddraw.dll for all program
it is static in ddraw if it change it change for all
program
/* Clipper Object struct The struct
DDRAWI_DDRAWCLIPPER_INT
it is the the return pointer from ddraw.dll to the program
DDRAWI_DDRAWCLIPPER_LCL
It is the program own private data
DDRAWI_DDRAWCLIPPER_GBL
This struct is gboal for whole ddraw.dll for all program
it is static in ddraw if it change it change for all
program
The struct
typedef struct _DDRAWI_DDRAWCLIPPER_INT { typedef struct _DDRAWI_DDRAWCLIPPER_INT {
LPVOID lpVtbl; LPVOID lpVtbl;
@ -164,6 +159,7 @@ typedef struct _DDRAWI_DDRAWCLIPPER_LCL {
IUnknown *pAddrefedThisOwner; IUnknown *pAddrefedThisOwner;
} DDRAWI_DDRAWCLIPPER_LCL; } DDRAWI_DDRAWCLIPPER_LCL;
typedef struct _DDRAWI_DDRAWCLIPPER_GBL { typedef struct _DDRAWI_DDRAWCLIPPER_GBL {
DWORD dwRefCnt; DWORD dwRefCnt;
DWORD dwFlags; DWORD dwFlags;
@ -173,11 +169,7 @@ typedef struct _DDRAWI_DDRAWCLIPPER_GBL {
ULONG_PTR hWnd; ULONG_PTR hWnd;
LPRGNDATA lpStaticClipList; LPRGNDATA lpStaticClipList;
} DDRAWI_DDRAWCLIPPER_GBL; } DDRAWI_DDRAWCLIPPER_GBL;
*/
/*
typedef struct _DDRAWI_DDRAWPALETTE_INT { typedef struct _DDRAWI_DDRAWPALETTE_INT {
LPVOID lpVtbl; LPVOID lpVtbl;
LPDDRAWI_DDRAWPALETTE_LCL lpLcl; LPDDRAWI_DDRAWPALETTE_LCL lpLcl;
@ -213,9 +205,8 @@ typedef struct _DDRAWI_DDRAWPALETTE_GBL {
DWORD dwSaveStamp; DWORD dwSaveStamp;
DWORD dwHandle; DWORD dwHandle;
} DDRAWI_DDRAWPALETTE_GBL; } DDRAWI_DDRAWPALETTE_GBL;
*/
/*
typedef struct _DDRAWI_DDVIDEOPORT_INT { typedef struct _DDRAWI_DDVIDEOPORT_INT {
LPVOID lpVtbl; LPVOID lpVtbl;
LPDDRAWI_DDVIDEOPORT_LCL lpLcl; LPDDRAWI_DDVIDEOPORT_LCL lpLcl;
@ -249,7 +240,8 @@ typedef struct _DDRAWI_DDVIDEOPORT_LCL {
} DDRAWI_DDVIDEOPORT_LCL; } DDRAWI_DDVIDEOPORT_LCL;
Surface Surface:
typedef struct _DDRAWI_DDRAWSURFACE_GBL { typedef struct _DDRAWI_DDRAWSURFACE_GBL {
DWORD dwRefCnt; DWORD dwRefCnt;
DWORD dwGlobalFlags; DWORD dwGlobalFlags;
@ -277,14 +269,10 @@ typedef struct _DDRAWI_DDRAWSURFACE_GBL {
DDPIXELFORMAT ddpfSurface; DDPIXELFORMAT ddpfSurface;
} DDRAWI_DDRAWSURFACE_GBL; } DDRAWI_DDRAWSURFACE_GBL;
*/ The following informations might be incorrectly
I am using logic thinking since the info does
not exists in MSDN so I am drawing clue how
/* This comment info maybe is wrong previews stuffs works that are document in MSDN/DDK
bare in mind I am using logic thinking
for follow info does not exists in MSDN
so I am drawing clude how previews stuffs
works that are document in MSDN/DDK
follow struct should exists ??? follow struct should exists ???
DDRAWI_DDVIDEOPORT_GBL DDRAWI_DDVIDEOPORT_GBL
@ -319,6 +307,7 @@ how did I got this struct I looked at all other INT struct how they where
build. But it is not 100% sure this one is right untill I/we known how build. But it is not 100% sure this one is right untill I/we known how
the DDRAWI_DDGAMMACONTROL_LCL works and DDRAWI_DDCOLORCONTROL_GBL the DDRAWI_DDGAMMACONTROL_LCL works and DDRAWI_DDCOLORCONTROL_GBL
our internal struct will look like this our internal struct will look like this
typedef struct _DDRAWI_DDGAMMACONTROL_INT typedef struct _DDRAWI_DDGAMMACONTROL_INT
{ {
LPVOID lpVtbl; LPVOID lpVtbl;