Ignore:
Timestamp:
Dec 27, 2002, 2:42:08 PM (23 years ago)
Author:
sandervl
Message:

removed hardcoded writelog calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/console.cpp

    r9543 r9544  
    1 /* $Id: console.cpp,v 1.31 2002-12-27 13:31:40 sandervl Exp $ */
     1/* $Id: console.cpp,v 1.32 2002-12-27 13:42:08 sandervl Exp $ */
    22
    33/*
     
    805805                       0);                       /* template hvps, must be 0 */
    806806      if (rc != NO_ERROR)                                    /* check errors */
    807         WriteLog("KERNEL32/CONSOLE:VioCreatePS=%u\n",
    808                  rc);
     807        dprintf(("KERNEL32/CONSOLE:VioCreatePS=%u\n",
     808                 rc));
    809809
    810810 /* PH 1998/02/12 this seems to be an OS/2 PM bug:
     
    819819                        ConsoleGlobals.hvpsConsole);
    820820      if (rc != NO_ERROR)                                    /* check errors */
    821         WriteLog("KERNEL32/CONSOLE:VioAssociate=%u\n",
    822                  rc);
     821        dprintf(("KERNEL32/CONSOLE:VioAssociate=%u\n",
     822                 rc));
    823823
    824824      iConsoleFontQuery();                       /* query current cell sizes */
     
    13651365  APIRET        rc;                                        /* API-returncode */
    13661366
    1367 #ifdef DEBUG_LOCAL2
    1368   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPush(%08x).\n",
     1367  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPush(%08x).\n",
    13691368           pInputRecord));
    1370 #endif
    13711369
    13721370  iConsoleInputQueueLock();
     
    14181416  APIRET        rc;                                        /* API-returncode */
    14191417
    1420 #ifdef DEBUG_LOCAL2
    1421   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPop(%08x).\n",
     1418  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPop(%08x).\n",
    14221419           pInputRecord));
    1423 #endif
    14241420
    14251421  if (ConsoleInput.ulEvents == 0)                         /* empty console ? */
     
    16311627  UCHAR        ucChar     = usCh & 0x00ff;
    16321628
    1633 #ifdef DEBUG_LOCAL2
    1634   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushKey(%08x,%08x).\n",
     1629  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushKey(%08x,%08x).\n",
    16351630           mp1,
    16361631           mp2));
    1637 #endif
    16381632
    16391633
     
    17551749    return (NO_ERROR);                                 /* return immediately */
    17561750
    1757   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushMouse(%08x,%08x,%08x).\n",
     1751  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushMouse(%08x,%08x,%08x).\n",
    17581752           ulMessage,
    17591753           mp1,
     
    18671861    return (NO_ERROR);                                 /* return immediately */
    18681862
    1869   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushWindow(x = %u, y = %u).\n",
     1863  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushWindow(x = %u, y = %u).\n",
    18701864           coordWindowSize.X,
    18711865           coordWindowSize.Y));
     
    19021896    return (NO_ERROR);                                 /* return immediately */
    19031897
    1904   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushMenu(%08x).\n",
     1898  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushMenu(%08x).\n",
    19051899           dwCommandId));
    19061900
     
    19361930    return (NO_ERROR);                                 /* return immediately */
    19371931
    1938   dprintf(("KERNEL32/CONSOLE:ConsoleInputEventPushFocus(%08x).\n",
     1932  dprintf2(("KERNEL32/CONSOLE:ConsoleInputEventPushFocus(%08x).\n",
    19391933           bSetFocus));
    19401934
     
    20542048  RECTL rclWindow;                                    /* current window size */
    20552049
    2056 #ifdef DEBUG_LOCAL2
    2057   dprintf(("KERNEL32:Console:ConsoleCursorShow(%u)\n",
     2050  dprintf2(("KERNEL32:Console:ConsoleCursorShow(%u)\n",
    20582051           ulCursorMode));
    2059 #endif
    20602052
    20612053  if (pConsoleBuffer->CursorInfo.bVisible == FALSE)/* cursor is switched off */
     
    23282320  APIRET rc;                                               /* API returncode */
    23292321
    2330 #ifdef DEBUG_LOCAL2
    2331   WriteLog("KERNEL32/CONSOLE: OS2AllocConsole() called.\n");
    2332 #endif
     2322  dprintf(("KERNEL32/CONSOLE: OS2AllocConsole() called"));
    23332323
    23342324  rc = iConsoleInit(flVioConsole);               /* initialize subsystem if required */
     
    23722362  HANDLE hResult;
    23732363
    2374 #ifdef DEBUG_LOCAL2
    2375   WriteLog("KERNEL32/CONSOLE:OS2CreateConsoleScreenBuffer(%08x,%08x,%08x,%08x,%08x).\n",
    2376            dwDesiredAccess,
    2377            dwShareMode,
    2378            lpSecurityAttributes,
    2379            dwFlags,
    2380            lpScreenBufferData);
    2381 #endif
    2382 
    23832364  hResult = HMCreateFile("CONBUFFER$",         /* create a new buffer handle */
    23842365                         dwDesiredAccess,
     
    24132394  BOOL fResult;
    24142395
    2415 #ifdef DEBUG_LOCAL2
    2416   WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputAttribute(%08x,%04x,%08x,%08x,%08x).\n",
    2417            hConsoleOutput,
    2418            wAttribute,
    2419            nLength,
    2420            dwWriteCoord,
    2421            lpNumberOfAttrsWritten);
    2422 #endif
    2423 
    24242396  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    24252397                                  DRQ_FILLCONSOLEOUTPUTATTRIBUTE,
     
    24532425  BOOL fResult;
    24542426
    2455 #ifdef DEBUG_LOCAL2
    2456   WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputCharacterA(%08x,%c,%08x,%08x,%08x).\n",
    2457            hConsoleOutput,
    2458            cCharacter,
    2459            nLength,
    2460            dwWriteCoord,
    2461            lpNumberOfCharsWritten);
    2462 #endif
    2463 
    24642427  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    24652428                                  DRQ_FILLCONSOLEOUTPUTCHARACTERA,
     
    24932456  BOOL fResult;
    24942457
    2495 #ifdef DEBUG_LOCAL2
    2496   WriteLog("KERNEL32/CONSOLE: OS2FillConsoleOutputCharacterW(%08x,%c,%08x,%08x,%08x) .\n",
    2497            hConsoleOutput,
    2498            cCharacter,
    2499            nLength,
    2500            dwWriteCoord,
    2501            lpNumberOfCharsWritten);
    2502 #endif
    2503 
    25042458  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    25052459                                  DRQ_FILLCONSOLEOUTPUTCHARACTERW,
     
    25292483  BOOL fResult;
    25302484
    2531 #ifdef DEBUG_LOCAL2
    2532   WriteLog("KERNEL32/CONSOLE: OS2FlushConsoleInputBuffer(%08x).\n",
    2533            hConsoleInput);
    2534 #endif
    2535 
    25362485  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    25372486                                  DRQ_FLUSHCONSOLEINPUTBUFFER,
     
    25632512{
    25642513  APIRET rc;                                               /* API returncode */
    2565 
    2566 #ifdef DEBUG_LOCAL2
    2567   WriteLog("KERNEL32/CONSOLE: OS2FreeConsole() called.\n");
    2568 #endif
    25692514
    25702515  rc = iConsoleTerminate();               /* terminate subsystem if required */
     
    25952540UINT WIN32API GetConsoleCP(VOID)
    25962541{
    2597 #ifdef DEBUG_LOCAL2
    2598   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleCP not implemented.\n");
    2599 #endif
     2542  dprintf(("KERNEL32/CONSOLE: GetConsoleCP not implemented"));
    26002543
    26012544  return 1;
     
    26192562{
    26202563  BOOL fResult;
    2621 
    2622 #ifdef DEBUG_LOCAL2
    2623   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleCursorInfo(%08x,%08x).\n",
    2624            hConsoleOutput,
    2625            lpConsoleCursorInfo);
    2626 #endif
    26272564
    26282565  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
     
    26542591  BOOL fResult;
    26552592
    2656 #ifdef DEBUG_LOCAL2
    2657   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleMode(%08x,%08x).\n",
    2658            hConsole,
    2659            lpMode);
    2660 #endif
    2661 
    26622593  fResult = (BOOL)HMDeviceRequest(hConsole,
    26632594                                  DRQ_GETCONSOLEMODE,
     
    26852616UINT WIN32API GetConsoleOutputCP(VOID)
    26862617{
    2687 #ifdef DEBUG_LOCAL2
    2688   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleOutputCP not implemented.\n");
    2689 #endif
     2618  dprintf(("KERNEL32/CONSOLE: GetConsoleOutputCP not implemented"));
    26902619
    26912620  return 1;
     
    27092638{
    27102639  BOOL fResult;
    2711 
    2712 #ifdef DEBUG_LOCAL2
    2713   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleScreenBufferInfo(%08x,%08x).\n",
    2714            hConsoleOutput,
    2715            lpConsoleScreenBufferInfo);
    2716 #endif
    27172640
    27182641  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
     
    27452668  ULONG ulLength;                                          /* length of text */
    27462669
    2747 #ifdef DEBUG_LOCAL2
    2748   WriteLog("KERNEL32/CONSOLE: OS2GetConsoleTitleA(%08x,%08x).\n",
    2749            lpConsoleTitle,
    2750            nSize);
    2751 #endif
    2752 
    27532670  if (ConsoleGlobals.pszWindowTitle == NULL)    /* is there a window title ? */
    27542671    return 0;                                           /* abort immediately */
     
    27832700  ULONG ulLength;                                          /* length of text */
    27842701
    2785 #ifdef DEBUG_LOCAL2
    2786   WriteLog("KERNEL32/CONSOLE: GetConsoleTitleW(%08x,%08x)",
    2787            lpConsoleTitle,
    2788            nSize);
    2789 #endif
    2790 
    27912702  if (ConsoleGlobals.pszWindowTitle == NULL)    /* is there a window title ? */
    27922703    return 0;                                           /* abort immediately */
     
    28182729  DWORD dwResult;
    28192730  COORD coordResult;
    2820 
    2821 #ifdef DEBUG_LOCAL2
    2822   WriteLog("KERNEL32/CONSOLE: OS2GetLargestConsoleWindowSize(%08x).\n",
    2823            hConsoleOutput);
    2824 #endif
    28252731
    28262732  dwResult = HMDeviceRequest(hConsoleOutput,
     
    28532759  BOOL fResult;
    28542760
    2855 #ifdef DEBUG_LOCAL2
    2856   WriteLog("KERNEL32/CONSOLE: OS2GetNumberOfConsoleInputEvents(%08x,%08x).\n",
    2857            hConsoleInput,
    2858            lpNumberOfEvents);
    2859 #endif
    2860 
    28612761  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    28622762                                  DRQ_GETNUMBEROFCONSOLEINPUTEVENTS,
     
    28862786  LONG lMouseButtons;
    28872787
    2888 #ifdef DEBUG_LOCAL2
    2889   WriteLog("KERNEL32/CONSOLE: OS2GetNumberOfConsoleMouseButtons(%08x).\n",
    2890            lpcNumberOfMouseButtons);
    2891 #endif
    2892 
    28932788  lMouseButtons = WinQuerySysValue(HWND_DESKTOP,        /* query PM for that */
    28942789                                   SV_CMOUSEBUTTONS);
     
    29182813{
    29192814  BOOL fResult;
    2920 
    2921 #ifdef DEBUG_LOCAL2
    2922   WriteLog("KERNEL32/CONSOLE: OS2PeekConsoleInputW(%08x,%08x,%08x,%08x).\n",
    2923            hConsoleInput,
    2924            pirBuffer,
    2925            cInRecords,
    2926            lpcRead);
    2927 #endif
    29282815
    29292816  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
     
    29572844  BOOL fResult;
    29582845
    2959 #ifdef DEBUG_LOCAL2
    2960   WriteLog("KERNEL32/CONSOLE: OS2PeekConsoleInputA(%08x,%08x,%08x,%08x).\n",
    2961            hConsoleInput,
    2962            pirBuffer,
    2963            cInRecords,
    2964            lpcRead);
    2965 #endif
    2966 
    29672846  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    29682847                                  DRQ_PEEKCONSOLEINPUTA,
     
    29962875  BOOL fResult;
    29972876
    2998 #ifdef DEBUG_LOCAL2
    2999   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleA(%08x,%08x,%08x,%08x,%08x).\n",
    3000            hConsoleInput,
    3001            lpvBuffer,
    3002            cchToRead,
    3003            lpcchRead,
    3004            lpvReserved);
    3005 #endif
    3006 
    30072877  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    30082878                                  DRQ_READCONSOLEA,
     
    30362906  BOOL fResult;
    30372907
    3038 #ifdef DEBUG_LOCAL2
    3039   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleW(%08x,%08x,%08x,%08x,%08x).\n",
    3040            hConsoleInput,
    3041            lpvBuffer,
    3042            cchToRead,
    3043            lpcchRead,
    3044            lpvReserved);
    3045 #endif
    3046 
    30472908  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    30482909                                  DRQ_READCONSOLEW,
     
    30752936  BOOL fResult;
    30762937
    3077 #ifdef DEBUG_LOCAL2
    3078   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleInputA(%08x,%08x,%08x,%08x).\n",
    3079            hConsoleInput,
    3080            pirBuffer,
    3081            cInRecords,
    3082            lpcRead);
    3083 #endif
    3084 
    30852938  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    30862939                                  DRQ_READCONSOLEINPUTA,
     
    31132966  BOOL fResult;
    31142967
    3115 #ifdef DEBUG_LOCAL2
    3116   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleInputW(%08x,%08x,%08x,%08x).\n",
    3117            hConsoleInput,
    3118            pirBuffer,
    3119            cInRecords,
    3120            lpcRead);
    3121 #endif
    3122 
    31232968  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    31242969                                  DRQ_READCONSOLEINPUTW,
     
    31522997  BOOL fResult;
    31532998
    3154 #ifdef DEBUG_LOCAL2
    3155   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputA(%08x,%08x,%08x,%08x,%08x).\n",
    3156            hConsoleOutput,
    3157            pchiDestBuffer,
    3158            coordDestBufferSize,
    3159            coordDestBufferCoord,
    3160            psrctSourceRect);
    3161 #endif
    3162 
    31632999  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    31643000                                  DRQ_READCONSOLEOUTPUTA,
     
    31923028  BOOL fResult;
    31933029
    3194 #ifdef DEBUG_LOCAL2
    3195   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputW(%08x,%08x,%08x,%08x,%08x).\n",
    3196            hConsoleOutput,
    3197            pchiDestBuffer,
    3198            coordDestBufferSize,
    3199            coordDestBufferCoord,
    3200            psrctSourceRect);
    3201 #endif
    3202 
    32033030  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    32043031                                  DRQ_READCONSOLEOUTPUTW,
     
    32323059  BOOL fResult;
    32333060
    3234 #ifdef DEBUG_LOCAL2
    3235   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputAttribute(%08x,%08x,%08x,%08x,%08x).\n",
    3236            hConsoleOutput,
    3237            lpwAttribute,
    3238            cReadCells,
    3239            coordReadCoord,
    3240            lpcNumberRead);
    3241 #endif
    3242 
    32433061  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    32443062                                  DRQ_READCONSOLEOUTPUTATTRIBUTE,
     
    32723090  BOOL fResult;
    32733091
    3274 #ifdef DEBUG_LOCAL2
    3275   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputCharacterA(%08x,%08x,%08x,%08x,%08x).\n",
    3276            hConsoleOutput,
    3277            lpReadBuffer,
    3278            cchRead,
    3279            coordReadCoord,
    3280            lpcNumberRead);
    3281 #endif
    3282 
    32833092  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    32843093                                  DRQ_READCONSOLEOUTPUTCHARACTERA,
     
    33123121  BOOL fResult;
    33133122
    3314 #ifdef DEBUG_LOCAL2
    3315   WriteLog("KERNEL32/CONSOLE: OS2ReadConsoleOutputCharacterW(%08x,%08x,%08x,%08x,%08x).\n",
    3316            hConsoleOutput,
    3317            lpReadBuffer,
    3318            cchRead,
    3319            coordReadCoord,
    3320            lpcNumberRead);
    3321 #endif
    3322 
    33233123  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    33243124                                  DRQ_READCONSOLEOUTPUTCHARACTERW,
     
    33523152  BOOL fResult;
    33533153
    3354 #ifdef DEBUG_LOCAL2
    3355   WriteLog("KERNEL32/CONSOLE: OS2ScrollConsoleScreenBufferA(%08x,%08x,%08x,%08x,%08x).\n",
    3356            hConsoleOutput,
    3357            psrctSourceRect,
    3358            psrctClipRect,
    3359            coordDestOrigin,
    3360            pchiFill);
    3361 #endif
    3362 
    33633154  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    33643155                                  DRQ_SCROLLCONSOLESCREENBUFFERA,
     
    33923183  BOOL fResult;
    33933184
    3394 #ifdef DEBUG_LOCAL2
    3395   WriteLog("KERNEL32/CONSOLE: OS2ScrollConsoleScreenBufferW(%08x,%08x,%08x,%08x,%08x).\n",
    3396            hConsoleOutput,
    3397            psrctSourceRect,
    3398            psrctClipRect,
    3399            coordDestOrigin,
    3400            pchiFill);
    3401 #endif
    3402 
    34033185  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    34043186                                  DRQ_SCROLLCONSOLESCREENBUFFERW,
     
    34273209  BOOL fResult;
    34283210
    3429 #ifdef DEBUG_LOCAL2
    3430   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleActiveScreenBuffer(%08x).\n",
    3431            hConsoleOutput);
    3432 #endif
    3433 
    34343211  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    34353212                                  DRQ_SETCONSOLEACTIVESCREENBUFFER,
     
    34573234BOOL WIN32API SetConsoleCP(UINT IDCodePage)
    34583235{
    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));
    34633238
    34643239  return TRUE;
     
    34823257{
    34833258  BOOL fResult;
    3484 
    3485 #ifdef DEBUG_LOCAL2
    3486   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleCursorInfo(%08x,%08x).\n",
    3487            hConsoleOutput,
    3488            lpConsoleCursorInfo);
    3489 #endif
    34903259
    34913260  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
     
    35183287  BOOL fResult;
    35193288
    3520 #ifdef DEBUG_LOCAL2
    3521   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleCursorPosition(%08x,%08x).\n",
    3522            hConsoleOutput,
    3523            coordCursor);
    3524 #endif
    3525 
    35263289  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    35273290                                  DRQ_SETCONSOLECURSORPOSITION,
     
    35523315 BOOL fResult;
    35533316
    3554 #ifdef DEBUG_LOCAL2
    3555   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleMode(%08x,%08x).\n",
    3556            hConsole,
    3557            fdwMode);
    3558 #endif
    3559 
    35603317  fResult = (BOOL)HMDeviceRequest(hConsole,
    35613318                                  DRQ_SETCONSOLEMODE,
     
    35833340BOOL WIN32API SetConsoleOutputCP(UINT IDCodePage)
    35843341{
    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));
    35893344
    35903345  return TRUE;
     
    36083363{
    36093364  BOOL fResult;
    3610 
    3611 #ifdef DEBUG_LOCAL2
    3612   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleScreenBufferSize(%08x,%08x).\n",
    3613            hConsoleOutput,
    3614            coordSize);
    3615 #endif
    36163365
    36173366  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
     
    36433392  BOOL fResult;
    36443393
    3645 #ifdef DEBUG_LOCAL2
    3646   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTextAttribute(%08x,%04x).\n",
    3647            hConsoleOutput,
    3648            wAttr);
    3649 #endif
    3650 
    36513394  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    36523395                                  DRQ_SETCONSOLETEXTATTRIBUTE,
     
    36743417BOOL WIN32API SetConsoleTitleA(LPTSTR lpszTitle)
    36753418{
    3676 #ifdef DEBUG_LOCAL2
    3677   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTitleA(%s).\n",
    3678            lpszTitle);
    3679 #endif
    3680 
    36813419  if (ConsoleGlobals.pszWindowTitle != NULL)           /* previously set name */
    36823420    free (ConsoleGlobals.pszWindowTitle);                     /* then free it */
     
    37053443BOOL WIN32API SetConsoleTitleW(LPWSTR lpszTitle)
    37063444{
    3707 #ifdef DEBUG_LOCAL2
    3708   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleTitleW(%s) not implemented.\n",
    3709            lpszTitle);
    3710 #endif
    3711 
    37123445  if (lpszTitle == NULL)                                 /* check parameters */
    37133446    return FALSE;
     
    37493482{
    37503483  BOOL fResult;
    3751 
    3752 #ifdef DEBUG_LOCAL2
    3753   WriteLog("KERNEL32/CONSOLE: OS2SetConsoleWindowInfo(%08x,%08x,%08x).\n",
    3754            hConsoleOutput,
    3755            fAbsolute,
    3756            psrctWindowRect);
    3757 #endif
    37583484
    37593485  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
     
    37883514  BOOL fResult;
    37893515
    3790 #ifdef DEBUG_LOCAL2
    3791   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleA(%08x,%08x,%08x,%08x,%08x).\n",
    3792            hConsoleOutput,
    3793            lpvBuffer,
    3794            cchToWrite,
    3795            lpcchWritten,
    3796            lpvReserved);
    3797 #endif
    3798 
    37993516  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    38003517                                  DRQ_WRITECONSOLEA,
     
    38283545  BOOL fResult;
    38293546
    3830 #ifdef DEBUG_LOCAL2
    3831   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleW(%08x,%08x,%08x,%08x,%08x).\n",
    3832            hConsoleOutput,
    3833            lpvBuffer,
    3834            cchToWrite,
    3835            lpcchWritten,
    3836            lpvReserved);
    3837 #endif
    3838 
    38393547  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    38403548                                  DRQ_WRITECONSOLEW,
     
    38673575  BOOL fResult;
    38683576
    3869 #ifdef DEBUG_LOCAL2
    3870   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleInputA(%08x,%08x,%08x,%08x).\n",
    3871            hConsoleInput,
    3872            pirBuffer,
    3873            cInRecords,
    3874            lpcWritten);
    3875 #endif
    3876 
    38773577  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    38783578                                  DRQ_WRITECONSOLEINPUTA,
     
    39053605  BOOL fResult;
    39063606
    3907 #ifdef DEBUG_LOCAL2
    3908   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleInputW(%08x,%08x,%08x,%08x).\n",
    3909            hConsoleInput,
    3910            pirBuffer,
    3911            cInRecords,
    3912            lpcWritten);
    3913 #endif
    3914 
    39153607  fResult = (BOOL)HMDeviceRequest(hConsoleInput,
    39163608                                  DRQ_WRITECONSOLEINPUTW,
     
    39443636  BOOL fResult;
    39453637
    3946 #ifdef DEBUG_LOCAL2
    3947   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputA(%08x,%08x,%08x,%08x,%08x).\n",
    3948            hConsoleOutput,
    3949            pchiSrcBuffer,
    3950            coordSrcBufferSize,
    3951            coordSrcBufferCoord,
    3952            psrctDestRect);
    3953 #endif
    3954 
    39553638  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    39563639                                  DRQ_WRITECONSOLEOUTPUTA,
     
    39843667  BOOL fResult;
    39853668
    3986 #ifdef DEBUG_LOCAL2
    3987   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputW(%08x,%08x,%08x,%08x,%08x).\n",
    3988            hConsoleOutput,
    3989            pchiSrcBuffer,
    3990            coordSrcBufferSize,
    3991            coordSrcBufferCoord,
    3992            psrctDestRect);
    3993 #endif
    3994 
    39953669  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    39963670                                  DRQ_WRITECONSOLEOUTPUTW,
     
    40233697  BOOL fResult;
    40243698
    4025 #ifdef DEBUG_LOCAL2
    4026   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputAttribute(%08x,%08x,%08x,%08x,%08x).\n",
    4027            hConsoleOutput,
    4028            lpwAttribute,
    4029            cWriteCells,
    4030            coordWriteCoord,
    4031            lpcNumberWritten);
    4032 #endif
    4033 
    40343699  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    40353700                                  DRQ_WRITECONSOLEOUTPUTATTRIBUTE,
     
    40633728  BOOL fResult;
    40643729
    4065 #ifdef DEBUG_LOCAL2
    4066   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputCharacterA(%08x,%08x,%08x,%08x,%08x).\n",
    4067            hConsoleOutput,
    4068            lpWriteBuffer,
    4069            cchWrite,
    4070            coordWriteCoord,
    4071            lpcWritten);
    4072 #endif
    4073 
    40743730  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    40753731                                  DRQ_WRITECONSOLEOUTPUTCHARACTERA,
     
    41033759  BOOL fResult;
    41043760
    4105 #ifdef DEBUG_LOCAL2
    4106   WriteLog("KERNEL32/CONSOLE: OS2WriteConsoleOutputCharacterW(%08x,%08x,%08x,%08x,%08x).\n",
    4107            hConsoleOutput,
    4108            lpWriteBuffer,
    4109            cchWrite,
    4110            coordWriteCoord,
    4111            lpcWritten);
    4112 #endif
    4113 
    41143761  fResult = (BOOL)HMDeviceRequest(hConsoleOutput,
    41153762                                  DRQ_WRITECONSOLEOUTPUTCHARACTERW,
Note: See TracChangeset for help on using the changeset viewer.