Changeset 10048 for trunk/src/kernel32/KERNEL32.CPP
- Timestamp:
- Apr 29, 2003, 12:27:18 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.CPP
r9802 r10048 1 /* $Id: KERNEL32.CPP,v 1.7 4 2003-02-13 17:16:47sandervl Exp $ */1 /* $Id: KERNEL32.CPP,v 1.75 2003-04-29 10:27:18 sandervl Exp $ */ 2 2 3 3 /* … … 339 339 } 340 340 //****************************************************************************** 341 //Borrowed from Wine342 //******************************************************************************343 void WIN32API GetStartupInfoA(LPSTARTUPINFOA lpStartupInfo)344 {345 lpStartupInfo->cb = sizeof(STARTUPINFOA);346 lpStartupInfo->lpReserved = "<Reserved>";347 lpStartupInfo->lpDesktop = "Desktop";348 lpStartupInfo->lpTitle = "Title";349 lpStartupInfo->dwX = 0;350 lpStartupInfo->dwY = 0;351 lpStartupInfo->dwXSize = 640;352 lpStartupInfo->dwYSize = 480;353 lpStartupInfo->dwXCountChars = 80; // for console354 lpStartupInfo->dwYCountChars = 25;355 lpStartupInfo->dwFillAttribute = 0x0720;356 lpStartupInfo->dwFlags = STARTF_USESHOWWINDOW |357 STARTF_USEPOSITION |358 STARTF_USESIZE |359 STARTF_USECOUNTCHARS |360 STARTF_USEFILLATTRIBUTE|361 STARTF_USESTDHANDLES;362 lpStartupInfo->wShowWindow = SW_SHOWDEFAULT;363 lpStartupInfo->cbReserved2 = 0;364 lpStartupInfo->lpReserved2 = NULL; /* must be NULL for VC runtime */365 lpStartupInfo->hStdInput = GetStdHandle(STD_INPUT_HANDLE);366 lpStartupInfo->hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);367 lpStartupInfo->hStdError = GetStdHandle(STD_ERROR_HANDLE);368 return;369 }370 //******************************************************************************371 //Borrowed from Wine372 //******************************************************************************373 void WIN32API GetStartupInfoW(LPSTARTUPINFOW lpStartupInfo)374 {375 static WCHAR lpReserved[] = {'<', 'R','e','s','e','r','v','e','d','>', 0};376 static WCHAR lpDesktop[] = {'D', 'e','s','k','t','o','p', 0};377 static WCHAR lpTitle[] = {'T', 'i','t','l','e', 0};378 379 // forward call to ascii variant380 GetStartupInfoA((LPSTARTUPINFOA)lpStartupInfo);381 lpStartupInfo->cb = sizeof(STARTUPINFOW);382 lpStartupInfo->lpReserved = lpReserved;383 lpStartupInfo->lpDesktop = lpDesktop;384 lpStartupInfo->lpTitle = lpTitle;385 return;386 }387 //******************************************************************************388 341 //****************************************************************************** 389 342 BOOL WIN32API FlushInstructionCache( /*PLF Mon 98-02-09 23:56:49 : STUB STUB STUB STUB STUB */
Note:
See TracChangeset
for help on using the changeset viewer.