ReactOS 0.4.16-dev-92-g0c2cdca
main.h File Reference
#include <windows.h>
#include <ddrawi.h>
#include <d3dhal.h>
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int StartupHAL (VOID)
 
 BOOL (APIENTRY *DdCreateDirectDrawObject)(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal
 
BOOL APIENTRY DdDeleteDirectDrawObject (LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
 
BOOL APIENTRY DdCreateSurfaceObject (LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, BOOL bPrimarySurface)
 
BOOL APIENTRY DdDeleteSurfaceObject (LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal)
 
HDC APIENTRY DdGetDC (LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, LPPALETTEENTRY pColorTable)
 
BOOL APIENTRY DdReleaseDC (LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal)
 
HBITMAP APIENTRY DdCreateDIBSection (HDC hdc, CONST BITMAPINFO *pbmi, UINT iUsage, VOID **ppvBits, HANDLE hSectionApp, DWORD dwOffset)
 
BOOL APIENTRY DdReenableDirectDrawObject (LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal, BOOL *pbNewMode)
 
VOID APIENTRY DdUnattachSurface (LPDDRAWI_DDRAWSURFACE_LCL pSurface, LPDDRAWI_DDRAWSURFACE_LCL pSurfaceAttached)
 
ULONG APIENTRY DdQueryDisplaySettingsUniqueness (VOID)
 
HANDLE APIENTRY DdGetDxHandle (LPDDRAWI_DIRECTDRAW_LCL pDDraw, LPDDRAWI_DDRAWSURFACE_LCL pSurface, BOOL bRelease)
 
BOOL APIENTRY DdSetGammaRamp (LPDDRAWI_DIRECTDRAW_LCL pDDraw, HDC hdc, LPVOID lpGammaRamp)
 
DWORD APIENTRY DdSwapTextureHandles (LPDDRAWI_DIRECTDRAW_LCL pDDraw, LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1, LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
 
charDDErrorString (HRESULT hr)
 

Variables

HDC hdc
 
DDRAWI_DIRECTDRAW_GBL mDDrawGlobal
 
DDRAWI_DIRECTDRAW_LCL mDDrawLocal
 
DDHALINFO mHALInfo
 
DDHAL_CALLBACKS mCallbacks
 
DDHAL_DDEXEBUFCALLBACKS mD3dBufferCallbacks
 
D3DHAL_CALLBACKS mD3dCallbacks
 
D3DHAL_GLOBALDRIVERDATA mD3dDriverData
 
UINT mcModeInfos
 
DDHALMODEINFOmpModeInfos
 
UINT mcvmList
 
VIDMEMmpvmList
 
UINT mcFourCC
 
DWORDmpFourCC
 
UINT mcTextures
 
DDSURFACEDESCmpTextures
 
LPDDHALINFO pHalInfo
 
LPDDHALINFO LPDDHAL_DDCALLBACKS pDDCallbacks
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS pDDSurfaceCallbacks
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS pDDPaletteCallbacks
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS pD3dCallbacks
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA pD3dDriverData
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS pD3dBufferCallbacks
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS LPDDSURFACEDESC pD3dTextureFormats
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS LPDDSURFACEDESC LPDWORD pdwFourCC
 
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS LPDDSURFACEDESC LPDWORD LPVIDMEM pvmList
 
HWND hWnd
 
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo
 

Function Documentation

◆ BOOL()

BOOL ( APIENTRY DdCreateDirectDrawObject)

◆ DdCreateDIBSection()

HBITMAP APIENTRY DdCreateDIBSection ( HDC  hdc,
CONST BITMAPINFO pbmi,
UINT  iUsage,
VOID **  ppvBits,
HANDLE  hSectionApp,
DWORD  dwOffset 
)

Definition at line 1949 of file gdientry.c.

1955{
1957 return 0;
1958}
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define SetLastError(x)
Definition: compat.h:752

◆ DdCreateSurfaceObject()

BOOL APIENTRY DdCreateSurfaceObject ( LPDDRAWI_DDRAWSURFACE_LCL  pSurfaceLocal,
BOOL  bPrimarySurface 
)

Definition at line 1873 of file gdientry.c.

1875{
1876 return bDDCreateSurface(pSurfaceLocal, TRUE);
1877}
#define TRUE
Definition: types.h:120
BOOL WINAPI bDDCreateSurface(LPDDRAWI_DDRAWSURFACE_LCL pSurface, BOOL bComplete)
Definition: gdientry.c:1392

◆ DdDeleteDirectDrawObject()

BOOL APIENTRY DdDeleteDirectDrawObject ( LPDDRAWI_DIRECTDRAW_GBL  pDirectDrawGlobal)

Definition at line 1831 of file gdientry.c.

1832{
1833 BOOL Return = FALSE;
1834
1835 /* If this is the global object */
1836 if(pDirectDrawGlobal->hDD)
1837 {
1838 /* Free it */
1839 Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
1840 if (Return)
1841 {
1842 pDirectDrawGlobal->hDD = 0;
1843 }
1844 }
1845 else if (ghDirectDraw)
1846 {
1847 /* Always success here */
1848 Return = TRUE;
1849
1850 /* Make sure this is the last instance */
1851 if (!(--gcDirectDraw))
1852 {
1853 /* Delete the object */
1855 if (Return)
1856 {
1857 ghDirectDraw = 0;
1858 }
1859 }
1860 }
1861
1862 /* Return */
1863 return Return;
1864}
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
ULONG gcDirectDraw
Definition: gdientry.c:20
HANDLE ghDirectDraw
Definition: gdientry.c:19
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(_In_ HANDLE hDirectDrawLocal)

◆ DdDeleteSurfaceObject()

BOOL APIENTRY DdDeleteSurfaceObject ( LPDDRAWI_DDRAWSURFACE_LCL  pSurfaceLocal)

Definition at line 1887 of file gdientry.c.

1888{
1889 BOOL Return = FALSE;
1890
1891 /* Make sure there is one */
1892 if (pSurfaceLocal->hDDSurface)
1893 {
1894 /* Delete it */
1895 Return = NtGdiDdDeleteSurfaceObject((HANDLE)pSurfaceLocal->hDDSurface);
1896 pSurfaceLocal->hDDSurface = 0;
1897 }
1898
1899 return Return;
1900}
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteSurfaceObject(_In_ HANDLE hSurface)

◆ DDErrorString()

char * DDErrorString ( HRESULT  hr)

Definition at line 158 of file main.h.

159{
160 switch (hr)
161 {
162 case DD_OK: return "DD_OK";
163 case DDERR_ALREADYINITIALIZED: return "DDERR_ALREADYINITIALIZED";
164 case DDERR_CANNOTATTACHSURFACE: return "DDERR_CANNOTATTACHSURFACE";
165 case DDERR_CANNOTDETACHSURFACE: return "DDERR_CANNOTDETACHSURFACE";
166 case DDERR_CURRENTLYNOTAVAIL: return "DDERR_CURRENTLYNOTAVAIL";
167 case DDERR_EXCEPTION: return "DDERR_EXCEPTION";
168 case DDERR_GENERIC: return "DDERR_GENERIC";
169 case DDERR_HEIGHTALIGN: return "DDERR_HEIGHTALIGN";
170 case DDERR_INCOMPATIBLEPRIMARY: return "DDERR_INCOMPATIBLEPRIMARY";
171 case DDERR_INVALIDCAPS: return "DDERR_INVALIDCAPS";
172 case DDERR_INVALIDCLIPLIST: return "DDERR_INVALIDCLIPLIST";
173 case DDERR_INVALIDMODE: return "DDERR_INVALIDMODE";
174 case DDERR_INVALIDOBJECT: return "DDERR_INVALIDOBJECT";
175 case DDERR_INVALIDPARAMS: return "DDERR_INVALIDPARAMS";
176 case DDERR_INVALIDPIXELFORMAT: return "DDERR_INVALIDPIXELFORMAT";
177 case DDERR_INVALIDRECT: return "DDERR_INVALIDRECT";
178 case DDERR_LOCKEDSURFACES: return "DDERR_LOCKEDSURFACES";
179 case DDERR_NO3D: return "DDERR_NO3D";
180 case DDERR_NOALPHAHW: return "DDERR_NOALPHAHW";
181 case DDERR_NOCLIPLIST: return "DDERR_NOCLIPLIST";
182 case DDERR_NOCOLORCONVHW: return "DDERR_NOCOLORCONVHW";
183 case DDERR_NOCOOPERATIVELEVELSET: return "DDERR_NOCOOPERATIVELEVELSET";
184 case DDERR_NOCOLORKEY: return "DDERR_NOCOLORKEY";
185 case DDERR_NOCOLORKEYHW: return "DDERR_NOCOLORKEYHW";
186 case DDERR_NODIRECTDRAWSUPPORT: return "DDERR_NODIRECTDRAWSUPPORT";
187 case DDERR_NOEXCLUSIVEMODE: return "DDERR_NOEXCLUSIVEMODE";
188 case DDERR_NOFLIPHW: return "DDERR_NOFLIPHW";
189 case DDERR_NOGDI: return "DDERR_NOGDI";
190 case DDERR_NOMIRRORHW: return "DDERR_NOMIRRORHW";
191 case DDERR_NOTFOUND: return "DDERR_NOTFOUND";
192 case DDERR_NOOVERLAYHW: return "DDERR_NOOVERLAYHW";
193 case DDERR_NORASTEROPHW: return "DDERR_NORASTEROPHW";
194 case DDERR_NOROTATIONHW: return "DDERR_NOROTATIONHW";
195 case DDERR_NOSTRETCHHW: return "DDERR_NOSTRETCHHW";
196 case DDERR_NOT4BITCOLOR: return "DDERR_NOT4BITCOLOR";
197 case DDERR_NOT4BITCOLORINDEX: return "DDERR_NOT4BITCOLORINDEX";
198 case DDERR_NOT8BITCOLOR: return "DDERR_NOT8BITCOLOR";
199 case DDERR_NOTEXTUREHW: return "DDERR_NOTEXTUREHW";
200 case DDERR_NOVSYNCHW: return "DDERR_NOVSYNCHW";
201 case DDERR_NOZBUFFERHW: return "DDERR_NOZBUFFERHW";
202 case DDERR_NOZOVERLAYHW: return "DDERR_NOZOVERLAYHW";
203 case DDERR_OUTOFCAPS: return "DDERR_OUTOFCAPS";
204 case DDERR_OUTOFMEMORY: return "DDERR_OUTOFMEMORY";
205 case DDERR_OUTOFVIDEOMEMORY: return "DDERR_OUTOFVIDEOMEMORY";
206 case DDERR_OVERLAYCANTCLIP: return "DDERR_OVERLAYCANTCLIP";
207 case DDERR_OVERLAYCOLORKEYONLYONEACTIVE: return "DDERR_OVERLAYCOLORKEYONLYONEACTIVE";
208 case DDERR_PALETTEBUSY: return "DDERR_PALETTEBUSY";
209 case DDERR_COLORKEYNOTSET: return "DDERR_COLORKEYNOTSET";
210 case DDERR_SURFACEALREADYATTACHED: return "DDERR_SURFACEALREADYATTACHED";
211 case DDERR_SURFACEALREADYDEPENDENT: return "DDERR_SURFACEALREADYDEPENDENT";
212 case DDERR_SURFACEBUSY: return "DDERR_SURFACEBUSY";
213 case DDERR_CANTLOCKSURFACE: return "DDERR_CANTLOCKSURFACE";
214 case DDERR_SURFACEISOBSCURED: return "DDERR_SURFACEISOBSCURED";
215 case DDERR_SURFACELOST: return "DDERR_SURFACELOST";
216 case DDERR_SURFACENOTATTACHED: return "DDERR_SURFACENOTATTACHED";
217 case DDERR_TOOBIGHEIGHT: return "DDERR_TOOBIGHEIGHT";
218 case DDERR_TOOBIGSIZE: return "DDERR_TOOBIGSIZE";
219 case DDERR_TOOBIGWIDTH: return "DDERR_TOOBIGWIDTH";
220 case DDERR_UNSUPPORTED: return "DDERR_UNSUPPORTED";
221 case DDERR_UNSUPPORTEDFORMAT: return "DDERR_UNSUPPORTEDFORMAT";
222 case DDERR_UNSUPPORTEDMASK: return "DDERR_UNSUPPORTEDMASK";
223 case DDERR_VERTICALBLANKINPROGRESS: return "DDERR_VERTICALBLANKINPROGRESS";
224 case DDERR_WASSTILLDRAWING: return "DDERR_WASSTILLDRAWING";
225 case DDERR_XALIGN: return "DDERR_XALIGN";
226 case DDERR_INVALIDDIRECTDRAWGUID: return "DDERR_INVALIDDIRECTDRAWGUID";
227 case DDERR_DIRECTDRAWALREADYCREATED: return "DDERR_DIRECTDRAWALREADYCREATED";
228 case DDERR_NODIRECTDRAWHW: return "DDERR_NODIRECTDRAWHW";
229 case DDERR_PRIMARYSURFACEALREADYEXISTS: return "DDERR_PRIMARYSURFACEALREADYEXISTS";
230 case DDERR_NOEMULATION: return "DDERR_NOEMULATION";
231 case DDERR_REGIONTOOSMALL: return "DDERR_REGIONTOOSMALL";
232 case DDERR_CLIPPERISUSINGHWND: return "DDERR_CLIPPERISUSINGHWND";
233 case DDERR_NOCLIPPERATTACHED: return "DDERR_NOCLIPPERATTACHED";
234 case DDERR_NOHWND: return "DDERR_NOHWND";
235 case DDERR_HWNDSUBCLASSED: return "DDERR_HWNDSUBCLASSED";
236 case DDERR_HWNDALREADYSET: return "DDERR_HWNDALREADYSET";
237 case DDERR_NOPALETTEATTACHED: return "DDERR_NOPALETTEATTACHED";
238 case DDERR_NOPALETTEHW: return "DDERR_NOPALETTEHW";
239 case DDERR_BLTFASTCANTCLIP: return "DDERR_BLTFASTCANTCLIP";
240 case DDERR_NOBLTHW: return "DDERR_NOBLTHW";
241 case DDERR_NODDROPSHW: return "DDERR_NODDROPSHW";
242 case DDERR_OVERLAYNOTVISIBLE: return "DDERR_OVERLAYNOTVISIBLE";
243 case DDERR_NOOVERLAYDEST: return "DDERR_NOOVERLAYDEST";
244 case DDERR_INVALIDPOSITION: return "DDERR_INVALIDPOSITION";
245 case DDERR_NOTAOVERLAYSURFACE: return "DDERR_NOTAOVERLAYSURFACE";
246 case DDERR_EXCLUSIVEMODEALREADYSET: return "DDERR_EXCLUSIVEMODEALREADYSET";
247 case DDERR_NOTFLIPPABLE: return "DDERR_NOTFLIPPABLE";
248 case DDERR_CANTDUPLICATE: return "DDERR_CANTDUPLICATE";
249 case DDERR_NOTLOCKED: return "DDERR_NOTLOCKED";
250 case DDERR_CANTCREATEDC: return "DDERR_CANTCREATEDC";
251 case DDERR_NODC: return "DDERR_NODC";
252 case DDERR_WRONGMODE: return "DDERR_WRONGMODE";
253 case DDERR_IMPLICITLYCREATED: return "DDERR_IMPLICITLYCREATED";
254 case DDERR_NOTPALETTIZED: return "DDERR_NOTPALETTIZED";
255 case DDERR_UNSUPPORTEDMODE: return "DDERR_UNSUPPORTEDMODE";
256 case DDERR_NOMIPMAPHW: return "DDERR_NOMIPMAPHW";
257 case DDERR_INVALIDSURFACETYPE: return "DDERR_INVALIDSURFACETYPE";
258 case DDERR_DCALREADYCREATED: return "DDERR_DCALREADYCREATED";
259 case DDERR_CANTPAGELOCK: return "DDERR_CANTPAGELOCK";
260 case DDERR_CANTPAGEUNLOCK: return "DDERR_CANTPAGEUNLOCK";
261 case DDERR_NOTPAGELOCKED: return "DDERR_NOTPAGELOCKED";
262 case DDERR_NOTINITIALIZED: return "DDERR_NOTINITIALIZED";
263 }
264
265 return "Unknown Error ";
266}
#define DDERR_OVERLAYCOLORKEYONLYONEACTIVE
Definition: ddraw.h:114
#define DDERR_NOT8BITCOLOR
Definition: ddraw.h:105
#define DDERR_NOSTRETCHHW
Definition: ddraw.h:102
#define DDERR_NOTAOVERLAYSURFACE
Definition: ddraw.h:154
#define DDERR_CANTPAGEUNLOCK
Definition: ddraw.h:174
#define DDERR_INVALIDRECT
Definition: ddraw.h:81
#define DDERR_NOT4BITCOLORINDEX
Definition: ddraw.h:104
#define DDERR_HEIGHTALIGN
Definition: ddraw.h:73
#define DDERR_UNSUPPORTEDMODE
Definition: ddraw.h:164
#define DDERR_NOOVERLAYDEST
Definition: ddraw.h:152
#define DDERR_INVALIDPIXELFORMAT
Definition: ddraw.h:80
#define DDERR_VERTICALBLANKINPROGRESS
Definition: ddraw.h:131
#define DDERR_NOTFLIPPABLE
Definition: ddraw.h:156
#define DDERR_NOVSYNCHW
Definition: ddraw.h:107
#define DDERR_NODC
Definition: ddraw.h:160
#define DDERR_OVERLAYCANTCLIP
Definition: ddraw.h:113
#define DDERR_WRONGMODE
Definition: ddraw.h:161
#define DDERR_OUTOFCAPS
Definition: ddraw.h:110
#define DDERR_NOFLIPHW
Definition: ddraw.h:94
#define DDERR_UNSUPPORTEDMASK
Definition: ddraw.h:129
#define DDERR_INVALIDCAPS
Definition: ddraw.h:75
#define DDERR_INVALIDOBJECT
Definition: ddraw.h:78
#define DDERR_INVALIDMODE
Definition: ddraw.h:77
#define DDERR_CANNOTATTACHSURFACE
Definition: ddraw.h:68
#define DDERR_UNSUPPORTEDFORMAT
Definition: ddraw.h:128
#define DDERR_NOZOVERLAYHW
Definition: ddraw.h:109
#define DDERR_NOTFOUND
Definition: ddraw.h:97
#define DDERR_NOTPAGELOCKED
Definition: ddraw.h:175
#define DDERR_SURFACELOST
Definition: ddraw.h:122
#define DDERR_NOOVERLAYHW
Definition: ddraw.h:98
#define DDERR_NOT4BITCOLOR
Definition: ddraw.h:103
#define DDERR_SURFACEALREADYDEPENDENT
Definition: ddraw.h:118
#define DDERR_SURFACEISOBSCURED
Definition: ddraw.h:121
#define DDERR_NOHWND
Definition: ddraw.h:143
#define DDERR_NODIRECTDRAWSUPPORT
Definition: ddraw.h:92
#define DDERR_INCOMPATIBLEPRIMARY
Definition: ddraw.h:74
#define DDERR_EXCEPTION
Definition: ddraw.h:71
#define DDERR_EXCLUSIVEMODEALREADYSET
Definition: ddraw.h:155
#define DDERR_NOCLIPLIST
Definition: ddraw.h:87
#define DDERR_PALETTEBUSY
Definition: ddraw.h:115
#define DDERR_NOCOLORCONVHW
Definition: ddraw.h:88
#define DDERR_WASSTILLDRAWING
Definition: ddraw.h:132
#define DDERR_HWNDSUBCLASSED
Definition: ddraw.h:144
#define DDERR_NOEXCLUSIVEMODE
Definition: ddraw.h:93
#define DDERR_OVERLAYNOTVISIBLE
Definition: ddraw.h:151
#define DDERR_NODDROPSHW
Definition: ddraw.h:150
#define DDERR_OUTOFMEMORY
Definition: ddraw.h:111
#define DDERR_TOOBIGSIZE
Definition: ddraw.h:125
#define DDERR_NOZBUFFERHW
Definition: ddraw.h:108
#define DDERR_CANTCREATEDC
Definition: ddraw.h:159
#define DDERR_HWNDALREADYSET
Definition: ddraw.h:145
#define DDERR_NOPALETTEATTACHED
Definition: ddraw.h:146
#define DDERR_NO3D
Definition: ddraw.h:83
#define DDERR_NOTINITIALIZED
Definition: ddraw.h:185
#define DDERR_XALIGN
Definition: ddraw.h:134
#define DDERR_NOCOLORKEY
Definition: ddraw.h:90
#define DDERR_CURRENTLYNOTAVAIL
Definition: ddraw.h:70
#define DDERR_OUTOFVIDEOMEMORY
Definition: ddraw.h:112
#define DDERR_NOCOOPERATIVELEVELSET
Definition: ddraw.h:89
#define DD_OK
Definition: ddraw.h:186
#define DDERR_SURFACENOTATTACHED
Definition: ddraw.h:123
#define DDERR_DIRECTDRAWALREADYCREATED
Definition: ddraw.h:136
#define DDERR_NOCOLORKEYHW
Definition: ddraw.h:91
#define DDERR_COLORKEYNOTSET
Definition: ddraw.h:116
#define DDERR_UNSUPPORTED
Definition: ddraw.h:127
#define DDERR_REGIONTOOSMALL
Definition: ddraw.h:140
#define DDERR_NOMIPMAPHW
Definition: ddraw.h:165
#define DDERR_TOOBIGWIDTH
Definition: ddraw.h:126
#define DDERR_NOGDI
Definition: ddraw.h:95
#define DDERR_NOPALETTEHW
Definition: ddraw.h:147
#define DDERR_INVALIDDIRECTDRAWGUID
Definition: ddraw.h:135
#define DDERR_CANTDUPLICATE
Definition: ddraw.h:157
#define DDERR_GENERIC
Definition: ddraw.h:72
#define DDERR_INVALIDCLIPLIST
Definition: ddraw.h:76
#define DDERR_NOCLIPPERATTACHED
Definition: ddraw.h:142
#define DDERR_IMPLICITLYCREATED
Definition: ddraw.h:162
#define DDERR_NOTPALETTIZED
Definition: ddraw.h:163
#define DDERR_INVALIDPARAMS
Definition: ddraw.h:79
#define DDERR_CANTLOCKSURFACE
Definition: ddraw.h:120
#define DDERR_DCALREADYCREATED
Definition: ddraw.h:171
#define DDERR_NOALPHAHW
Definition: ddraw.h:84
#define DDERR_CANTPAGELOCK
Definition: ddraw.h:173
#define DDERR_CLIPPERISUSINGHWND
Definition: ddraw.h:141
#define DDERR_NOROTATIONHW
Definition: ddraw.h:101
#define DDERR_NORASTEROPHW
Definition: ddraw.h:100
#define DDERR_LOCKEDSURFACES
Definition: ddraw.h:82
#define DDERR_SURFACEALREADYATTACHED
Definition: ddraw.h:117
#define DDERR_NOEMULATION
Definition: ddraw.h:139
#define DDERR_ALREADYINITIALIZED
Definition: ddraw.h:67
#define DDERR_NOTLOCKED
Definition: ddraw.h:158
#define DDERR_NOTEXTUREHW
Definition: ddraw.h:106
#define DDERR_CANNOTDETACHSURFACE
Definition: ddraw.h:69
#define DDERR_SURFACEBUSY
Definition: ddraw.h:119
#define DDERR_NOBLTHW
Definition: ddraw.h:149
#define DDERR_NODIRECTDRAWHW
Definition: ddraw.h:137
#define DDERR_INVALIDPOSITION
Definition: ddraw.h:153
#define DDERR_TOOBIGHEIGHT
Definition: ddraw.h:124
#define DDERR_PRIMARYSURFACEALREADYEXISTS
Definition: ddraw.h:138
#define DDERR_INVALIDSURFACETYPE
Definition: ddraw.h:166
#define DDERR_BLTFASTCANTCLIP
Definition: ddraw.h:148
#define DDERR_NOMIRRORHW
Definition: ddraw.h:96
HRESULT hr
Definition: shlfolder.c:183

◆ DdGetDC()

HDC APIENTRY DdGetDC ( LPDDRAWI_DDRAWSURFACE_LCL  pSurfaceLocal,
LPPALETTEENTRY  pColorTable 
)

Definition at line 1923 of file gdientry.c.

1925{
1926 /* Call win32k directly */
1927 return NtGdiDdGetDC((HANDLE)pSurfaceLocal->hDDSurface, pColorTable);
1928}
__kernel_entry W32KAPI HDC APIENTRY NtGdiDdGetDC(_In_ HANDLE hSurface, _In_ PALETTEENTRY *puColorTable)

◆ DdGetDxHandle()

HANDLE APIENTRY DdGetDxHandle ( LPDDRAWI_DIRECTDRAW_LCL  pDDraw,
LPDDRAWI_DDRAWSURFACE_LCL  pSurface,
BOOL  bRelease 
)

Definition at line 2043 of file gdientry.c.

2046{
2047 HANDLE hDD = NULL;
2048 HANDLE hSurface = NULL;
2049
2050 /* Check if we already have a surface */
2051 if (!pSurface)
2052 {
2053 /* We don't have one, use the DirectDraw Object handle instead */
2054 hDD = GetDdHandle(pDDraw->lpGbl->hDD);
2055 }
2056 else
2057 {
2058 hSurface = (HANDLE)pSurface->hDDSurface;
2059 }
2060
2061 /* Call the API */
2062 return (HANDLE)NtGdiDdGetDxHandle(hDD, hSurface, bRelease);
2063}
#define NULL
Definition: types.h:112
#define GetDdHandle(Handle)
Definition: gdientry.c:22
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdGetDxHandle(_In_opt_ HANDLE hDirectDraw, _In_opt_ HANDLE hSurface, _In_ BOOL bRelease)
PVOID HANDLE
Definition: typedefs.h:73
_In_ DD_SURFACE_LOCAL * pSurface
Definition: winddi.h:3481

◆ DdQueryDisplaySettingsUniqueness()

ULONG APIENTRY DdQueryDisplaySettingsUniqueness ( VOID  )

Definition at line 2031 of file gdientry.c.

2032{
2034}
PGDI_SHARED_HANDLE_TABLE GdiSharedHandleTable
Definition: misc.c:34

◆ DdReenableDirectDrawObject()

BOOL APIENTRY DdReenableDirectDrawObject ( LPDDRAWI_DIRECTDRAW_GBL  pDirectDrawGlobal,
BOOL pbNewMode 
)

Definition at line 1967 of file gdientry.c.

1969{
1970 /* Call win32k directly */
1971 return NtGdiDdReenableDirectDrawObject(GetDdHandle(pDirectDrawGlobal->hDD),
1972 pbNewMode);
1973}
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdReenableDirectDrawObject(_In_ HANDLE hDirectDrawLocal, _Inout_ BOOL *pubNewMode)

◆ DdReleaseDC()

BOOL APIENTRY DdReleaseDC ( LPDDRAWI_DDRAWSURFACE_LCL  pSurfaceLocal)

Definition at line 1937 of file gdientry.c.

1938{
1939 /* Call win32k directly */
1940 return NtGdiDdReleaseDC((HANDLE) pSurfaceLocal->hDDSurface);
1941}
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdReleaseDC(_In_ HANDLE hSurface)

◆ DdSetGammaRamp()

BOOL APIENTRY DdSetGammaRamp ( LPDDRAWI_DIRECTDRAW_LCL  pDDraw,
HDC  hdc,
LPVOID  lpGammaRamp 
)

Definition at line 2072 of file gdientry.c.

2075{
2076 /* Call win32k directly */
2077 return NtGdiDdSetGammaRamp(GetDdHandle(pDDraw->lpGbl->hDD),
2078 hdc,
2079 lpGammaRamp);
2080}
HDC hdc
Definition: main.c:9
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdSetGammaRamp(_In_ HANDLE hDirectDraw, _In_ HDC hdc, _In_reads_bytes_(sizeof(GAMMARAMP)) LPVOID lpGammaRamp)

◆ DdSwapTextureHandles()

DWORD APIENTRY DdSwapTextureHandles ( LPDDRAWI_DIRECTDRAW_LCL  pDDraw,
LPDDRAWI_DDRAWSURFACE_LCL  pDDSLcl1,
LPDDRAWI_DDRAWSURFACE_LCL  pDDSLcl2 
)

Definition at line 222 of file historic.c.

225{
226 /* Note Windows 2000/XP/VISTA always returns success */
227 return TRUE;
228}

◆ DdUnattachSurface()

VOID APIENTRY DdUnattachSurface ( LPDDRAWI_DDRAWSURFACE_LCL  pSurface,
LPDDRAWI_DDRAWSURFACE_LCL  pSurfaceAttached 
)

Definition at line 2016 of file gdientry.c.

2018{
2019 /* Call win32k */
2021 (HANDLE)pSurfaceAttached->hDDSurface);
2022}
__kernel_entry W32KAPI NTSTATUS APIENTRY NtGdiDdUnattachSurface(_In_ HANDLE hSurface, _In_ HANDLE hSurfaceAttached)

◆ StartupHAL()

int StartupHAL ( VOID  )

Variable Documentation

◆ hdc

HDC hdc

Definition at line 33 of file main.h.

◆ hWnd

HWND hWnd

Definition at line 77 of file main.h.

◆ mCallbacks

DDHAL_CALLBACKS mCallbacks
extern

Definition at line 14 of file main.c.

Referenced by WinMain().

◆ mcFourCC

UINT mcFourCC
extern

Definition at line 25 of file main.c.

Referenced by WinMain().

◆ mcModeInfos

UINT mcModeInfos
extern

Definition at line 19 of file main.c.

Referenced by WinMain().

◆ mcTextures

UINT mcTextures
extern

Definition at line 28 of file main.c.

Referenced by WinMain().

◆ mcvmList

UINT mcvmList
extern

Definition at line 22 of file main.c.

Referenced by WinMain().

◆ mD3dBufferCallbacks

DDHAL_DDEXEBUFCALLBACKS mD3dBufferCallbacks
extern

Definition at line 15 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mD3dCallbacks

D3DHAL_CALLBACKS mD3dCallbacks
extern

Definition at line 16 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mD3dDriverData

D3DHAL_GLOBALDRIVERDATA mD3dDriverData
extern

Definition at line 17 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mDDrawGlobal

DDRAWI_DIRECTDRAW_GBL mDDrawGlobal
extern

Definition at line 10 of file main.c.

Referenced by WinMain().

◆ mDDrawLocal

DDRAWI_DIRECTDRAW_LCL mDDrawLocal
extern

Definition at line 11 of file main.c.

Referenced by WinMain().

◆ mHALInfo

DDHALINFO mHALInfo
extern

Definition at line 12 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mpFourCC

DWORD* mpFourCC
extern

Definition at line 26 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mpModeInfos

DDHALMODEINFO* mpModeInfos
extern

Definition at line 20 of file main.c.

Referenced by WinMain().

◆ mpTextures

DDSURFACEDESC* mpTextures
extern

Definition at line 29 of file main.c.

Referenced by StartDirectDrawHal(), and WinMain().

◆ mpvmList

VIDMEM* mpvmList
extern

Definition at line 23 of file main.c.

Referenced by WinMain().

◆ pD3dBufferCallbacks

◆ pD3dCallbacks

◆ pD3dDriverData

◆ pD3dTextureFormats

◆ pDDCallbacks

Definition at line 39 of file main.h.

Referenced by DdQueryDirectDrawObject().

◆ pDDPaletteCallbacks

◆ pDDSurfaceCallbacks

Definition at line 40 of file main.h.

Referenced by DdQueryDirectDrawObject().

◆ pdwFourCC

◆ pHalInfo

Definition at line 38 of file main.h.

◆ pSurfaceTo

Definition at line 120 of file main.h.

Referenced by DdAttachSurface().

◆ pvmList