INFO: ??? ???? ???? ?????? ?? ??????

?????? ????????? ?????? ?????????
???? ???????: 99115 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

??? ??? ????? ????? ???? ???? ??? ?? ?????? Windows NT ????? ??????? "????? ???????" ?? ?? ???? ????? ??? <progname> ????? ?? ???? ??????? ?? ???? ?????? ?????? ??. ????? ???? ?????? ??? ????? ????? ??????? ???? ???? ???????? ?? ???? ????? ?? ??? ????? ??? ?????? ??? ??????? ?????? ?????? ????? ????????. ???? ?????? ????? ???? ?????? ???? ???? ??????.

??????? ????

??????? 1: ????? ???? ?? ???? ????? ??????? ?? "???? ?????? ???"

??????? ????? ?????? ????? ???? ???? ??? ??????? ????? ??? ?????? ?? ???? ???? ???? ??????. ??? ?? ??????? ??? ?? ???? ?????? ????? ???? ?????? ??? ??? ??????? ??? ???? ???? ?????? ??? ??? ????? ?? ??????. ??? ???? ?? ???? ?? API (????? ????? ?????????) ?????? ???? ?? ??? ??? ??????? ?????? ???? ???? ?? CMD.EXE. ??? ??????? ????? ?? ?????? ?????? ?????? ???? ?????? ? ?? ??? (0,0) ?? ???????? ????? ?????? ?? ???? ???? ???? ??????.

??? ?????

   #include <windows.h>
   #include <stdio.h>
   #include <conio.h>

   CONSOLE_SCREEN_BUFFER_INFO csbi;
   HANDLE hStdOutput;
   BOOL bUsePause;

   void main(void)
   {
      hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
      if (!GetConsoleScreenBufferInfo(hStdOutput, &csbi))
      {
         printf("GetConsoleScreenBufferInfo failed: %d\n", GetLastError());
         return;
      }

      // if cursor position is (0,0) then use pause
      bUsePause = ((!csbi.dwCursorPosition.X) &&
                   (!csbi.dwCursorPosition.Y));

      printf("Interesting information to read.\n");
      printf("More interesting information to read.\n");

      // only pause if running in separate console window.
      if (bUsePause)
      {
         int ch;
         printf("\n\tPress any key to exit...\n");
         ch = getch();
      }
   }
				
??????: ??? ??????? ?? ???? ??? ???????? ??? ???? ????? (CLS) ??? ????? ??????? ?? ???? ????? (??? ???? ??????? CLS [C:\] & <progname>) ? ??? ?? ?????? ?? ???? (0? 0) ? ???? ?????? ??????? ???? ??????? ???? ????? ????? CMD.EXE.

??????? 2: ??? ???? ?????? ?? cmd.exe /K

??? ??????? ?? ??? ??? ????? ????? ???? ???? ?? ???? ????? ?? ??? ?????? ??? ???? ??? ?? ????? ???????. ???? ??????? ??????? ??? ??????? ??????? ?? WinExec() CreateProcess() ? ?? ?? ??? ????:
consoleapp.exe /K cmd
??? ?? ?? ????? consoleapp.exe ???? ??? ??????? /K ???? ???? ?????? ??? ?????? ??? ??????. ???? ???????? ??????? ?? ???? ????? "?????" ?????? ???? ???? ??????.

???????

???? ???????: 99115 - ????? ??? ??????: 30/????/1427 - ??????: 4.1
????? ???
  • Microsoft Win32 ????? ????? ???????, ????? ?????? ??:
    • Microsoft Windows NT Advanced Server 3.1
    • Microsoft Windows NT 4.0
    • Microsoft Windows NT 3.51 Service Pack 5
    • Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows XP
????? ??????: 
kbmt kbconsole kbinfo kbkernbase kbprogramming KB99115 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????99115

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com