Home
last modified time | relevance | path

Searched refs:dmW (Results 1 – 6 of 6) sorted by relevance

/reactos/modules/rostests/apitests/user32/
H A DEnumDisplaySettings.c14 DEVMODEW dmW; in START_TEST() local
23 dmW.dmDriverExtra = 0x7777; in START_TEST()
26 dmW.dmSize = 0x8888; in START_TEST()
29 ok(dmW.dmSize == SIZEOF_DEVMODEW_300_W, "%d\n", dmW.dmSize); in START_TEST()
30 ok(dmW.dmDriverExtra == 0, "%d\n", dmW.dmDriverExtra); in START_TEST()
33 dmW.dmSize = 4; in START_TEST()
36 ok(dmW.dmSize == SIZEOF_DEVMODEW_300_W, "%d\n", dmW.dmSize); in START_TEST()
42 ok(dmW.dmSize == SIZEOF_DEVMODEW_300_W, "%d\n", dmW.dmSize); in START_TEST()
48 ok(dmW.dmSize == SIZEOF_DEVMODEW_300_W, "%d\n", dmW.dmSize); in START_TEST()
54 ok(dmW.dmSize == SIZEOF_DEVMODEW_300_W, "%d\n", dmW.dmSize); in START_TEST()
[all …]
/reactos/modules/rostests/winetests/user32/
H A Dmonitor.c311 DEVMODEW dmW; in test_ChangeDisplaySettingsEx() local
342 memset(&dmW, 0, sizeof(dmW)); in test_ChangeDisplaySettingsEx()
343 dmW.dmSize = sizeof(dmW); in test_ChangeDisplaySettingsEx()
344 dmW.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT; in test_ChangeDisplaySettingsEx()
345 dmW.dmPelsWidth = dm.dmPelsWidth; in test_ChangeDisplaySettingsEx()
346 dmW.dmPelsHeight = dm.dmPelsHeight; in test_ChangeDisplaySettingsEx()
347 dmW.dmDriverExtra = 1; in test_ChangeDisplaySettingsEx()
358 dmW.dmDriverExtra = 1; in test_ChangeDisplaySettingsEx()
379 memset(&dmW, 0, sizeof(dmW)); in test_ChangeDisplaySettingsEx()
380 dmW.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT; in test_ChangeDisplaySettingsEx()
[all …]
/reactos/win32ss/printing/base/winspool/
H A Ddevmode.c298 _ConvertToDevmodeA(const DEVMODEW *dmW) in _ConvertToDevmodeA() argument
304 dmW_size = dmW->dmSize; in _ConvertToDevmodeA()
320 dmA = HeapAlloc(GetProcessHeap(), 0, dmA_size + dmW->dmDriverExtra); in _ConvertToDevmodeA()
324 …WideCharToMultiByte(CP_ACP, 0, dmW->dmDeviceName, -1, (LPSTR)dmA->dmDeviceName, CCHDEVICENAME, NUL… in _ConvertToDevmodeA()
328 memcpy(&dmA->dmSpecVersion, &dmW->dmSpecVersion, BytesToCopy); in _ConvertToDevmodeA()
333 if (dmW->dmFields & DM_FORMNAME) in _ConvertToDevmodeA()
334 …WideCharToMultiByte(CP_ACP, 0, dmW->dmFormName, -1, (LPSTR)dmA->dmFormName, CCHFORMNAME, NULL, NUL… in _ConvertToDevmodeA()
340 … memcpy(&dmA->dmLogPixels, &dmW->dmLogPixels, dmW_size - FIELD_OFFSET(DEVMODEW, dmLogPixels)); in _ConvertToDevmodeA()
344 if (dmW->dmDriverExtra) in _ConvertToDevmodeA()
345 memcpy((char *)dmA + dmA_size, (const char *)dmW + dmW_size, dmW->dmDriverExtra); in _ConvertToDevmodeA()
/reactos/modules/rostests/winetests/gdi32/
H A Ddc.c255 DEVMODEW *dmW; in test_GdiConvertToDevmodeW() local
270 dmW = pGdiConvertToDevmodeW(&dmA); in test_GdiConvertToDevmodeW()
271 …ok(dmW->dmSize >= FIELD_OFFSET(DEVMODEW, dmICMMethod), "dmSize is too small: %04x\n", dmW->dmSize); in test_GdiConvertToDevmodeW()
272 ok(dmW->dmSize <= sizeof(DEVMODEW), "dmSize is too large: %04x\n", dmW->dmSize); in test_GdiConvertToDevmodeW()
276 dmW = pGdiConvertToDevmodeW(&dmA); in test_GdiConvertToDevmodeW()
277 ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmFields) + sizeof(dmW->dmFields), in test_GdiConvertToDevmodeW()
283 dmW = pGdiConvertToDevmodeW(&dmA); in test_GdiConvertToDevmodeW()
284 ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmICMMethod) + sizeof(dmW->dmICMMethod), in test_GdiConvertToDevmodeW()
291 dmW = pGdiConvertToDevmodeW(&dmA); in test_GdiConvertToDevmodeW()
292 ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmPanningHeight) + sizeof(dmW->dmPanningHeight), in test_GdiConvertToDevmodeW()
[all …]
/reactos/win32ss/gdi/gdi32/misc/
H A Dmisc.c971 DEVMODEW *dmW; in GdiConvertToDevmodeW() local
987 dmW = HeapAlloc(GetProcessHeap(), 0, dmW_size + dmA->dmDriverExtra); in GdiConvertToDevmodeW()
988 if (!dmW) return NULL; in GdiConvertToDevmodeW()
991 dmW->dmDeviceName, CCHDEVICENAME); in GdiConvertToDevmodeW()
993 memcpy(&dmW->dmSpecVersion, &dmA->dmSpecVersion, dmA_size - CCHDEVICENAME); in GdiConvertToDevmodeW()
999 dmW->dmFormName, CCHFORMNAME); in GdiConvertToDevmodeW()
1001 dmW->dmFormName[0] = 0; in GdiConvertToDevmodeW()
1004 … memcpy(&dmW->dmLogPixels, &dmA->dmLogPixels, dmA_size - FIELD_OFFSET(DEVMODEA, dmLogPixels)); in GdiConvertToDevmodeW()
1008 memcpy((char *)dmW + dmW_size, (const char *)dmA + dmA_size, dmA->dmDriverExtra); in GdiConvertToDevmodeW()
1010 dmW->dmSize = dmW_size; in GdiConvertToDevmodeW()
[all …]
/reactos/dll/win32/comdlg32/
H A Dprintdlg.c325 static DEVMODEA *convert_to_devmodeA(const DEVMODEW *dmW) in convert_to_devmodeA() argument
330 if (!dmW) return NULL; in convert_to_devmodeA()
331 size = dmW->dmSize - CCHDEVICENAME - in convert_to_devmodeA()
334 dmA = HeapAlloc(GetProcessHeap(), 0, size + dmW->dmDriverExtra); in convert_to_devmodeA()
337 WideCharToMultiByte(CP_ACP, 0, dmW->dmDeviceName, -1, in convert_to_devmodeA()
340 if (FIELD_OFFSET(DEVMODEW, dmFormName) >= dmW->dmSize) in convert_to_devmodeA()
342 memcpy(&dmA->dmSpecVersion, &dmW->dmSpecVersion, in convert_to_devmodeA()
347 memcpy(&dmA->dmSpecVersion, &dmW->dmSpecVersion, in convert_to_devmodeA()
349 WideCharToMultiByte(CP_ACP, 0, dmW->dmFormName, -1, in convert_to_devmodeA()
352 … memcpy(&dmA->dmLogPixels, &dmW->dmLogPixels, dmW->dmSize - FIELD_OFFSET(DEVMODEW, dmLogPixels)); in convert_to_devmodeA()
[all …]