1 /* 2 * reactos/lib/gdi32/misc/historic.c 3 * 4 * GDI32.DLL Stubs 5 * 6 * Apis that do basically nothing, but are here for backwards compatibility with older Windows 7 * 8 */ 9 10 #include <precomp.h> 11 12 /* 13 * @implemented 14 */ 15 BOOL 16 WINAPI 17 EngQueryEMFInfo(HDEV hdev, 18 EMFINFO *pEMFInfo) 19 { 20 return FALSE; 21 } 22 23 /* 24 * @implemented 25 */ 26 BOOL 27 WINAPI 28 GdiPlayDCScript(DWORD a0, 29 DWORD a1, 30 DWORD a2, 31 DWORD a3, 32 DWORD a4, 33 DWORD a5) 34 { 35 /* FIXME fix the prototype right */ 36 return FALSE; 37 } 38 39 /* 40 * @implemented 41 */ 42 BOOL 43 WINAPI 44 GdiPlayJournal(DWORD a0, 45 DWORD a1, 46 DWORD a2, 47 DWORD a3, 48 DWORD a4) 49 { 50 /* FIXME fix the prototype right */ 51 return FALSE; 52 } 53 54 /* 55 * @implemented 56 */ 57 BOOL 58 WINAPI 59 GdiPlayScript(DWORD a0, 60 DWORD a1, 61 DWORD a2, 62 DWORD a3, 63 DWORD a4, 64 DWORD a5, 65 DWORD a6) 66 { 67 /* FIXME fix the prototype right */ 68 return FALSE; 69 } 70 71 /* 72 * @implemented 73 */ 74 HBITMAP 75 WINAPI 76 GdiConvertBitmap(HBITMAP hbm) 77 { 78 /* Note Windows 2000/XP/VISTA always returns hbm */ 79 return hbm; 80 } 81 82 /* 83 * @implemented 84 */ 85 HBRUSH 86 WINAPI 87 GdiConvertBrush(HBRUSH hbr) 88 { 89 /* Note Windows 2000/XP/VISTA always returns hbr */ 90 return hbr; 91 } 92 93 /* 94 * @implemented 95 */ 96 HDC 97 WINAPI 98 GdiConvertDC(HDC hdc) 99 { 100 /* Note Windows 2000/XP/VISTA always returns hdc */ 101 return hdc; 102 } 103 104 /* 105 * @implemented 106 */ 107 HFONT 108 WINAPI 109 GdiConvertFont(HFONT hfont) 110 { 111 /* Note Windows 2000/XP/VISTA always returns hfont */ 112 return hfont; 113 } 114 115 /* 116 * @implemented 117 */ 118 HPALETTE 119 WINAPI 120 GdiConvertPalette(HPALETTE hpal) 121 { 122 /* Note Windows 2000/XP/VISTA always returns hpal */ 123 return hpal; 124 } 125 126 /* 127 * @implemented 128 */ 129 HRGN 130 WINAPI 131 GdiConvertRegion(HRGN hregion) 132 { 133 /* Note Windows 2000/XP/VISTA always returns hregion */ 134 return hregion; 135 } 136 137 /* 138 * @implemented 139 */ 140 BOOL 141 WINAPI 142 GdiSetAttrs(HDC hdc) 143 { 144 /* Note Windows 2000/XP/VISTA always returns TRUE */ 145 return TRUE; 146 } 147 148 /* 149 * @implemented 150 */ 151 BOOL 152 WINAPI 153 GdiDeleteLocalDC(HDC hdc) 154 { 155 /* Note Windows 2000/XP/VISTA always returns TRUE */ 156 return TRUE; 157 } 158 159 160 /* 161 * @implemented 162 */ 163 VOID 164 WINAPI 165 GdiSetServerAttr(HDC hdc,DWORD attr) 166 { 167 /* it does do nothing */ 168 } 169 170 171 /* 172 * @implemented 173 */ 174 int 175 WINAPI 176 DeviceCapabilitiesExA(LPCSTR pDevice, 177 LPCSTR pPort, 178 WORD fwCapability, 179 LPSTR pOutput, 180 CONST DEVMODEA *pDevMode) 181 { 182 /* Note Windows 2000/XP/VISTA always returns -1 */ 183 return -1; 184 } 185 186 /* 187 * @implemented 188 */ 189 int 190 WINAPI 191 DeviceCapabilitiesExW(LPCWSTR pDevice, 192 LPCWSTR pPort, 193 WORD fwCapability, 194 LPWSTR pOutput, 195 CONST DEVMODEW *pDevMode) 196 { 197 /* Note Windows 2000/XP/VISTA always returns -1 */ 198 return -1; 199 } 200 201 /* 202 * @implemented 203 */ 204 BOOL 205 WINAPI 206 FixBrushOrgEx(HDC hDC, 207 INT nXOrg, 208 INT nYOrg, 209 LPPOINT lpPoint) 210 { 211 /* Note Windows 2000/XP/VISTA always returns FALSE */ 212 return FALSE; 213 } 214 215 /* 216 * @implemented 217 * 218 * GDIEntry 16 219 */ 220 DWORD 221 WINAPI 222 DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw, 223 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1, 224 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2) 225 { 226 /* Note Windows 2000/XP/VISTA always returns success */ 227 return TRUE; 228 } 229 230 /* 231 * @implemented 232 */ 233 BOOL 234 WINAPI 235 GdiReleaseLocalDC(HDC hdc) 236 { 237 /* Note Windows 2000/XP/VISTA always returns TRUE */ 238 return TRUE; 239 } 240 241 /* 242 * @implemented 243 */ 244 HBRUSH 245 WINAPI 246 SelectBrushLocal(HBRUSH Currenthbm, 247 HBRUSH Newhbm) 248 { 249 return Newhbm; 250 } 251 252 /* 253 * @implemented 254 */ 255 HFONT 256 WINAPI 257 SelectFontLocal(HFONT Currenthfnt, 258 HFONT newhfnt) 259 { 260 return newhfnt; 261 } 262 263 /* 264 * @implemented 265 */ 266 HBRUSH 267 WINAPI 268 GdiGetLocalBrush(HBRUSH hbr) 269 { 270 return hbr; 271 } 272 273 /* 274 * @implemented 275 */ 276 HDC 277 WINAPI 278 GdiGetLocalDC(HDC hdc) 279 { 280 return hdc; 281 } 282 283 /* 284 * @implemented 285 */ 286 HFONT 287 WINAPI 288 GdiGetLocalFont(HFONT hfont) 289 { 290 return hfont; 291 } 292 293