Changeset 9544 for trunk/src/kernel32/console.cpp
- Timestamp:
- Dec 27, 2002, 2:42:08 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/console.cpp
r9543 r9544 1 /* $Id: console.cpp,v 1.3 1 2002-12-27 13:31:40sandervl Exp $ */1 /* $Id: console.cpp,v 1.32 2002-12-27 13:42:08 sandervl Exp $ */ 2 2 3 3 /* … … 805 805 0); /* template hvps, must be 0 */ 806 806 if (rc != NO_ERROR) /* check errors */ 807 WriteLog("KERNEL32/CONSOLE:VioCreatePS=%u\n",808 rc) ;807 dprintf(("KERNEL32/CONSOLE:VioCreatePS=%u\n", 808 rc)); 809 809 810 810 /* PH 1998/02/12 this seems to be an OS/2 PM bug: … … 819 819 ConsoleGlobals.hvpsConsole); 820 820 if (rc != NO_ERROR) /* check errors */ 821 WriteLog("KERNEL32/CONSOLE:VioAssociate=%u\n",822 rc) ;821 dprintf(("KERNEL32/CONSOLE:VioAssociate=%u\n", 822 rc)); 823 823 824 824 iConsoleFontQuery(); /* query current cell sizes */ … … 1365 1365 APIRET rc; /* API-returncode */ 1366 1366 1367 #ifdef DEBUG_LOCAL2 1368 dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPush(%08x).\n", 1367 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPush(%08x).\n", 1369 1368 pInputRecord)); 1370 #endif1371 1369 1372 1370 iConsoleInputQueueLock(); … … 1418 1416 APIRET rc; /* API-returncode */ 1419 1417 1420 #ifdef DEBUG_LOCAL2 1421 dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPop(%08x).\n", 1418 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPop(%08x).\n", 1422 1419 pInputRecord)); 1423 #endif1424 1420 1425 1421 if (ConsoleInput.ulEvents == 0) /* empty console ? */ … … 1631 1627 UCHAR ucChar = usCh & 0x00ff; 1632 1628 1633 #ifdef DEBUG_LOCAL2 1634 dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushKey(%08x,%08x).\n", 1629 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushKey(%08x,%08x).\n", 1635 1630 mp1, 1636 1631 mp2)); 1637 #endif1638 1632 1639 1633 … … 1755 1749 return (NO_ERROR); /* return immediately */ 1756 1750 1757 dprintf (("KERNEL32/CONSOLE:ConsoleInputEventPushMouse(%08x,%08x,%08x).\n",1751 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushMouse(%08x,%08x,%08x).\n", 1758 1752 ulMessage, 1759 1753 mp1, … … 1867 1861 return (NO_ERROR); /* return immediately */ 1868 1862 1869 dprintf (("KERNEL32/CONSOLE:ConsoleInputEventPushWindow(x = %u, y = %u).\n",1863 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushWindow(x = %u, y = %u).\n", 1870 1864 coordWindowSize.X, 1871 1865 coordWindowSize.Y)); … … 1902 1896 return (NO_ERROR); /* return immediately */ 1903 1897 1904 dprintf (("KERNEL32/CONSOLE:ConsoleInputEventPushMenu(%08x).\n",1898 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushMenu(%08x).\n", 1905 1899 dwCommandId)); 1906 1900 … … 1936 1930 return (NO_ERROR); /* return immediately */ 1937 1931 1938 dprintf (("KERNEL32/CONSOLE:ConsoleInputEventPushFocus(%08x).\n",1932 dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushFocus(%08x).\n", 1939 1933 bSetFocus)); 1940 1934 … … 2054 2048 RECTL rclWindow; /* current window size */ 2055 2049 2056 #ifdef DEBUG_LOCAL2 2057 dprintf(("KERNEL32:Console:ConsoleCursorShow(%u)\n", 2050 dprintf2(("KERNEL32:Console:ConsoleCursorShow(%u)\n", 2058 2051 ulCursorMode)); 2059 #endif2060 2052 2061 2053 if (pConsoleBuffer->CursorInfo.bVisible == FALSE)/* cursor is switched off */ … … 2328 2320 APIRET rc; /* API returncode */ 2329 2321 2330 #ifdef DEBUG_LOCAL2 2331 WriteLog("KERNEL32/CONSOLE: OS2AllocConsole() called.\n"); 2332 #endif 2322 dprintf(("KERNEL32/CONSOLE: OS2AllocConsole() called")); 2333 2323 2334 2324 rc = iConsoleInit(flVioConsole); /* initialize subsystem if required */ … … 2372 2362 HANDLE hResult; 2373 2363 2374 #ifdef DEBUG_LOCAL22375 WriteLog("KERNEL32/CONSOLE:OS2CreateConsoleScreenBuffer(%08x,%08x,%08x,%08x,%08x).\n",2376 dwDesiredAccess,2377 dwShareMode,2378 lpSecurityAttributes,2379 dwFlags,2380 lpScreenBufferData);2381 #endif2382 2383 2364 hResult = HMCreateFile("CONBUFFER$", /* create a new buffer handle */ 2384 2365 dwDesiredAccess, … … 2413 2394 BOOL fResult; 2414 2395 2415 #ifdef DEBUG_LOCAL22416 WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputAttribute(%08x,%04x,%08x,%08x,%08x).\n",2417 hConsoleOutput,2418 wAttribute,2419 nLength,2420 dwWriteCoord,2421 lpNumberOfAttrsWritten);2422 #endif2423 2424 2396 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 2425 2397 DRQ_FILLCONSOLEOUTPUTATTRIBUTE, … … 2453 2425 BOOL fResult; 2454 2426 2455 #ifdef DEBUG_LOCAL22456 WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputCharacterA(%08x,%c,%08x,%08x,%08x).\n",2457 hConsoleOutput,2458 cCharacter,2459 nLength,2460 dwWriteCoord,2461 lpNumberOfCharsWritten);2462 #endif2463 2464 2427 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 2465 2428 DRQ_FILLCONSOLEOUTPUTCHARACTERA, … … 2493 2456 BOOL fResult; 2494 2457 2495 #ifdef DEBUG_LOCAL22496 WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputCharacterW(%08x,%c,%08x,%08x,%08x) .\n",2497 hConsoleOutput,2498 cCharacter,2499 nLength,2500 dwWriteCoord,2501 lpNumberOfCharsWritten);2502 #endif2503 2504 2458 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 2505 2459 DRQ_FILLCONSOLEOUTPUTCHARACTERW, … … 2529 2483 BOOL fResult; 2530 2484 2531 #ifdef DEBUG_LOCAL22532 WriteLog("KERNEL32/CONSOLE: OS2FlushConsoleInputBuffer(%08x).\n",2533 hConsoleInput);2534 #endif2535 2536 2485 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 2537 2486 DRQ_FLUSHCONSOLEINPUTBUFFER, … … 2563 2512 { 2564 2513 APIRET rc; /* API returncode */ 2565 2566 #ifdef DEBUG_LOCAL22567 WriteLog("KERNEL32/CONSOLE: OS2FreeConsole() called.\n");2568 #endif2569 2514 2570 2515 rc = iConsoleTerminate(); /* terminate subsystem if required */ … … 2595 2540 UINT WIN32API GetConsoleCP(VOID) 2596 2541 { 2597 #ifdef DEBUG_LOCAL2 2598 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleCP not implemented.\n"); 2599 #endif 2542 dprintf(("KERNEL32/CONSOLE: GetConsoleCP not implemented")); 2600 2543 2601 2544 return 1; … … 2619 2562 { 2620 2563 BOOL fResult; 2621 2622 #ifdef DEBUG_LOCAL22623 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleCursorInfo(%08x,%08x).\n",2624 hConsoleOutput,2625 lpConsoleCursorInfo);2626 #endif2627 2564 2628 2565 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, … … 2654 2591 BOOL fResult; 2655 2592 2656 #ifdef DEBUG_LOCAL22657 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleMode(%08x,%08x).\n",2658 hConsole,2659 lpMode);2660 #endif2661 2662 2593 fResult = (BOOL)HMDeviceRequest(hConsole, 2663 2594 DRQ_GETCONSOLEMODE, … … 2685 2616 UINT WIN32API GetConsoleOutputCP(VOID) 2686 2617 { 2687 #ifdef DEBUG_LOCAL2 2688 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleOutputCP not implemented.\n"); 2689 #endif 2618 dprintf(("KERNEL32/CONSOLE: GetConsoleOutputCP not implemented")); 2690 2619 2691 2620 return 1; … … 2709 2638 { 2710 2639 BOOL fResult; 2711 2712 #ifdef DEBUG_LOCAL22713 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleScreenBufferInfo(%08x,%08x).\n",2714 hConsoleOutput,2715 lpConsoleScreenBufferInfo);2716 #endif2717 2640 2718 2641 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, … … 2745 2668 ULONG ulLength; /* length of text */ 2746 2669 2747 #ifdef DEBUG_LOCAL22748 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleTitleA(%08x,%08x).\n",2749 lpConsoleTitle,2750 nSize);2751 #endif2752 2753 2670 if (ConsoleGlobals.pszWindowTitle == NULL) /* is there a window title ? */ 2754 2671 return 0; /* abort immediately */ … … 2783 2700 ULONG ulLength; /* length of text */ 2784 2701 2785 #ifdef DEBUG_LOCAL22786 WriteLog("KERNEL32/CONSOLE: GetConsoleTitleW(%08x,%08x)",2787 lpConsoleTitle,2788 nSize);2789 #endif2790 2791 2702 if (ConsoleGlobals.pszWindowTitle == NULL) /* is there a window title ? */ 2792 2703 return 0; /* abort immediately */ … … 2818 2729 DWORD dwResult; 2819 2730 COORD coordResult; 2820 2821 #ifdef DEBUG_LOCAL22822 WriteLog("KERNEL32/CONSOLE: OS2GetLargestConsoleWindowSize(%08x).\n",2823 hConsoleOutput);2824 #endif2825 2731 2826 2732 dwResult = HMDeviceRequest(hConsoleOutput, … … 2853 2759 BOOL fResult; 2854 2760 2855 #ifdef DEBUG_LOCAL22856 WriteLog("KERNEL32/CONSOLE: OS2GetNumberOfConsoleInputEvents(%08x,%08x).\n",2857 hConsoleInput,2858 lpNumberOfEvents);2859 #endif2860 2861 2761 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 2862 2762 DRQ_GETNUMBEROFCONSOLEINPUTEVENTS, … … 2886 2786 LONG lMouseButtons; 2887 2787 2888 #ifdef DEBUG_LOCAL22889 WriteLog("KERNEL32/CONSOLE: OS2GetNumberOfConsoleMouseButtons(%08x).\n",2890 lpcNumberOfMouseButtons);2891 #endif2892 2893 2788 lMouseButtons = WinQuerySysValue(HWND_DESKTOP, /* query PM for that */ 2894 2789 SV_CMOUSEBUTTONS); … … 2918 2813 { 2919 2814 BOOL fResult; 2920 2921 #ifdef DEBUG_LOCAL22922 WriteLog("KERNEL32/CONSOLE: OS2PeekConsoleInputW(%08x,%08x,%08x,%08x).\n",2923 hConsoleInput,2924 pirBuffer,2925 cInRecords,2926 lpcRead);2927 #endif2928 2815 2929 2816 fResult = (BOOL)HMDeviceRequest(hConsoleInput, … … 2957 2844 BOOL fResult; 2958 2845 2959 #ifdef DEBUG_LOCAL22960 WriteLog("KERNEL32/CONSOLE: OS2PeekConsoleInputA(%08x,%08x,%08x,%08x).\n",2961 hConsoleInput,2962 pirBuffer,2963 cInRecords,2964 lpcRead);2965 #endif2966 2967 2846 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 2968 2847 DRQ_PEEKCONSOLEINPUTA, … … 2996 2875 BOOL fResult; 2997 2876 2998 #ifdef DEBUG_LOCAL22999 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleA(%08x,%08x,%08x,%08x,%08x).\n",3000 hConsoleInput,3001 lpvBuffer,3002 cchToRead,3003 lpcchRead,3004 lpvReserved);3005 #endif3006 3007 2877 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3008 2878 DRQ_READCONSOLEA, … … 3036 2906 BOOL fResult; 3037 2907 3038 #ifdef DEBUG_LOCAL23039 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleW(%08x,%08x,%08x,%08x,%08x).\n",3040 hConsoleInput,3041 lpvBuffer,3042 cchToRead,3043 lpcchRead,3044 lpvReserved);3045 #endif3046 3047 2908 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3048 2909 DRQ_READCONSOLEW, … … 3075 2936 BOOL fResult; 3076 2937 3077 #ifdef DEBUG_LOCAL23078 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleInputA(%08x,%08x,%08x,%08x).\n",3079 hConsoleInput,3080 pirBuffer,3081 cInRecords,3082 lpcRead);3083 #endif3084 3085 2938 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3086 2939 DRQ_READCONSOLEINPUTA, … … 3113 2966 BOOL fResult; 3114 2967 3115 #ifdef DEBUG_LOCAL23116 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleInputW(%08x,%08x,%08x,%08x).\n",3117 hConsoleInput,3118 pirBuffer,3119 cInRecords,3120 lpcRead);3121 #endif3122 3123 2968 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3124 2969 DRQ_READCONSOLEINPUTW, … … 3152 2997 BOOL fResult; 3153 2998 3154 #ifdef DEBUG_LOCAL23155 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputA(%08x,%08x,%08x,%08x,%08x).\n",3156 hConsoleOutput,3157 pchiDestBuffer,3158 coordDestBufferSize,3159 coordDestBufferCoord,3160 psrctSourceRect);3161 #endif3162 3163 2999 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3164 3000 DRQ_READCONSOLEOUTPUTA, … … 3192 3028 BOOL fResult; 3193 3029 3194 #ifdef DEBUG_LOCAL23195 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputW(%08x,%08x,%08x,%08x,%08x).\n",3196 hConsoleOutput,3197 pchiDestBuffer,3198 coordDestBufferSize,3199 coordDestBufferCoord,3200 psrctSourceRect);3201 #endif3202 3203 3030 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3204 3031 DRQ_READCONSOLEOUTPUTW, … … 3232 3059 BOOL fResult; 3233 3060 3234 #ifdef DEBUG_LOCAL23235 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputAttribute(%08x,%08x,%08x,%08x,%08x).\n",3236 hConsoleOutput,3237 lpwAttribute,3238 cReadCells,3239 coordReadCoord,3240 lpcNumberRead);3241 #endif3242 3243 3061 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3244 3062 DRQ_READCONSOLEOUTPUTATTRIBUTE, … … 3272 3090 BOOL fResult; 3273 3091 3274 #ifdef DEBUG_LOCAL23275 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputCharacterA(%08x,%08x,%08x,%08x,%08x).\n",3276 hConsoleOutput,3277 lpReadBuffer,3278 cchRead,3279 coordReadCoord,3280 lpcNumberRead);3281 #endif3282 3283 3092 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3284 3093 DRQ_READCONSOLEOUTPUTCHARACTERA, … … 3312 3121 BOOL fResult; 3313 3122 3314 #ifdef DEBUG_LOCAL23315 WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputCharacterW(%08x,%08x,%08x,%08x,%08x).\n",3316 hConsoleOutput,3317 lpReadBuffer,3318 cchRead,3319 coordReadCoord,3320 lpcNumberRead);3321 #endif3322 3323 3123 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3324 3124 DRQ_READCONSOLEOUTPUTCHARACTERW, … … 3352 3152 BOOL fResult; 3353 3153 3354 #ifdef DEBUG_LOCAL23355 WriteLog("KERNEL32/CONSOLE: OS2ScrollConsoleScreenBufferA(%08x,%08x,%08x,%08x,%08x).\n",3356 hConsoleOutput,3357 psrctSourceRect,3358 psrctClipRect,3359 coordDestOrigin,3360 pchiFill);3361 #endif3362 3363 3154 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3364 3155 DRQ_SCROLLCONSOLESCREENBUFFERA, … … 3392 3183 BOOL fResult; 3393 3184 3394 #ifdef DEBUG_LOCAL23395 WriteLog("KERNEL32/CONSOLE: OS2ScrollConsoleScreenBufferW(%08x,%08x,%08x,%08x,%08x).\n",3396 hConsoleOutput,3397 psrctSourceRect,3398 psrctClipRect,3399 coordDestOrigin,3400 pchiFill);3401 #endif3402 3403 3185 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3404 3186 DRQ_SCROLLCONSOLESCREENBUFFERW, … … 3427 3209 BOOL fResult; 3428 3210 3429 #ifdef DEBUG_LOCAL23430 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleActiveScreenBuffer(%08x).\n",3431 hConsoleOutput);3432 #endif3433 3434 3211 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3435 3212 DRQ_SETCONSOLEACTIVESCREENBUFFER, … … 3457 3234 BOOL WIN32API SetConsoleCP(UINT IDCodePage) 3458 3235 { 3459 #ifdef DEBUG_LOCAL2 3460 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleCP(%08x) not implemented.\n", 3461 IDCodePage); 3462 #endif 3236 dprintf(("KERNEL32/CONSOLE: SetConsoleCP(%08x) not implemented.\n", 3237 IDCodePage)); 3463 3238 3464 3239 return TRUE; … … 3482 3257 { 3483 3258 BOOL fResult; 3484 3485 #ifdef DEBUG_LOCAL23486 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleCursorInfo(%08x,%08x).\n",3487 hConsoleOutput,3488 lpConsoleCursorInfo);3489 #endif3490 3259 3491 3260 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, … … 3518 3287 BOOL fResult; 3519 3288 3520 #ifdef DEBUG_LOCAL23521 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleCursorPosition(%08x,%08x).\n",3522 hConsoleOutput,3523 coordCursor);3524 #endif3525 3526 3289 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3527 3290 DRQ_SETCONSOLECURSORPOSITION, … … 3552 3315 BOOL fResult; 3553 3316 3554 #ifdef DEBUG_LOCAL23555 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleMode(%08x,%08x).\n",3556 hConsole,3557 fdwMode);3558 #endif3559 3560 3317 fResult = (BOOL)HMDeviceRequest(hConsole, 3561 3318 DRQ_SETCONSOLEMODE, … … 3583 3340 BOOL WIN32API SetConsoleOutputCP(UINT IDCodePage) 3584 3341 { 3585 #ifdef DEBUG_LOCAL2 3586 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleOutputCP(%08x) not implemented.\n", 3587 IDCodePage); 3588 #endif 3342 dprintf(("KERNEL32/CONSOLE: OS2SetConsoleOutputCP(%08x) not implemented.\n", 3343 IDCodePage)); 3589 3344 3590 3345 return TRUE; … … 3608 3363 { 3609 3364 BOOL fResult; 3610 3611 #ifdef DEBUG_LOCAL23612 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleScreenBufferSize(%08x,%08x).\n",3613 hConsoleOutput,3614 coordSize);3615 #endif3616 3365 3617 3366 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, … … 3643 3392 BOOL fResult; 3644 3393 3645 #ifdef DEBUG_LOCAL23646 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTextAttribute(%08x,%04x).\n",3647 hConsoleOutput,3648 wAttr);3649 #endif3650 3651 3394 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3652 3395 DRQ_SETCONSOLETEXTATTRIBUTE, … … 3674 3417 BOOL WIN32API SetConsoleTitleA(LPTSTR lpszTitle) 3675 3418 { 3676 #ifdef DEBUG_LOCAL23677 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTitleA(%s).\n",3678 lpszTitle);3679 #endif3680 3681 3419 if (ConsoleGlobals.pszWindowTitle != NULL) /* previously set name */ 3682 3420 free (ConsoleGlobals.pszWindowTitle); /* then free it */ … … 3705 3443 BOOL WIN32API SetConsoleTitleW(LPWSTR lpszTitle) 3706 3444 { 3707 #ifdef DEBUG_LOCAL23708 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTitleW(%s) not implemented.\n",3709 lpszTitle);3710 #endif3711 3712 3445 if (lpszTitle == NULL) /* check parameters */ 3713 3446 return FALSE; … … 3749 3482 { 3750 3483 BOOL fResult; 3751 3752 #ifdef DEBUG_LOCAL23753 WriteLog("KERNEL32/CONSOLE: OS2SetConsoleWindowInfo(%08x,%08x,%08x).\n",3754 hConsoleOutput,3755 fAbsolute,3756 psrctWindowRect);3757 #endif3758 3484 3759 3485 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, … … 3788 3514 BOOL fResult; 3789 3515 3790 #ifdef DEBUG_LOCAL23791 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleA(%08x,%08x,%08x,%08x,%08x).\n",3792 hConsoleOutput,3793 lpvBuffer,3794 cchToWrite,3795 lpcchWritten,3796 lpvReserved);3797 #endif3798 3799 3516 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3800 3517 DRQ_WRITECONSOLEA, … … 3828 3545 BOOL fResult; 3829 3546 3830 #ifdef DEBUG_LOCAL23831 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleW(%08x,%08x,%08x,%08x,%08x).\n",3832 hConsoleOutput,3833 lpvBuffer,3834 cchToWrite,3835 lpcchWritten,3836 lpvReserved);3837 #endif3838 3839 3547 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3840 3548 DRQ_WRITECONSOLEW, … … 3867 3575 BOOL fResult; 3868 3576 3869 #ifdef DEBUG_LOCAL23870 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleInputA(%08x,%08x,%08x,%08x).\n",3871 hConsoleInput,3872 pirBuffer,3873 cInRecords,3874 lpcWritten);3875 #endif3876 3877 3577 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3878 3578 DRQ_WRITECONSOLEINPUTA, … … 3905 3605 BOOL fResult; 3906 3606 3907 #ifdef DEBUG_LOCAL23908 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleInputW(%08x,%08x,%08x,%08x).\n",3909 hConsoleInput,3910 pirBuffer,3911 cInRecords,3912 lpcWritten);3913 #endif3914 3915 3607 fResult = (BOOL)HMDeviceRequest(hConsoleInput, 3916 3608 DRQ_WRITECONSOLEINPUTW, … … 3944 3636 BOOL fResult; 3945 3637 3946 #ifdef DEBUG_LOCAL23947 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputA(%08x,%08x,%08x,%08x,%08x).\n",3948 hConsoleOutput,3949 pchiSrcBuffer,3950 coordSrcBufferSize,3951 coordSrcBufferCoord,3952 psrctDestRect);3953 #endif3954 3955 3638 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3956 3639 DRQ_WRITECONSOLEOUTPUTA, … … 3984 3667 BOOL fResult; 3985 3668 3986 #ifdef DEBUG_LOCAL23987 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputW(%08x,%08x,%08x,%08x,%08x).\n",3988 hConsoleOutput,3989 pchiSrcBuffer,3990 coordSrcBufferSize,3991 coordSrcBufferCoord,3992 psrctDestRect);3993 #endif3994 3995 3669 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 3996 3670 DRQ_WRITECONSOLEOUTPUTW, … … 4023 3697 BOOL fResult; 4024 3698 4025 #ifdef DEBUG_LOCAL24026 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputAttribute(%08x,%08x,%08x,%08x,%08x).\n",4027 hConsoleOutput,4028 lpwAttribute,4029 cWriteCells,4030 coordWriteCoord,4031 lpcNumberWritten);4032 #endif4033 4034 3699 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 4035 3700 DRQ_WRITECONSOLEOUTPUTATTRIBUTE, … … 4063 3728 BOOL fResult; 4064 3729 4065 #ifdef DEBUG_LOCAL24066 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputCharacterA(%08x,%08x,%08x,%08x,%08x).\n",4067 hConsoleOutput,4068 lpWriteBuffer,4069 cchWrite,4070 coordWriteCoord,4071 lpcWritten);4072 #endif4073 4074 3730 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 4075 3731 DRQ_WRITECONSOLEOUTPUTCHARACTERA, … … 4103 3759 BOOL fResult; 4104 3760 4105 #ifdef DEBUG_LOCAL24106 WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputCharacterW(%08x,%08x,%08x,%08x,%08x).\n",4107 hConsoleOutput,4108 lpWriteBuffer,4109 cchWrite,4110 coordWriteCoord,4111 lpcWritten);4112 #endif4113 4114 3761 fResult = (BOOL)HMDeviceRequest(hConsoleOutput, 4115 3762 DRQ_WRITECONSOLEOUTPUTCHARACTERW,
Note:
See TracChangeset
for help on using the changeset viewer.