Click here to Skip to main content
15,922,325 members
Home / Discussions / System Admin
   

System Admin

 
AnswerRe: Network Time Protocol in Windows 2000 Server Pin
Mike Dimmick6-Jun-07 1:19
Mike Dimmick6-Jun-07 1:19 
QuestionWindows Media Issue Pin
Jasmine25014-Jun-07 9:06
Jasmine25014-Jun-07 9:06 
AnswerRe: Windows Media Issue Pin
Dave Kreskowiak4-Jun-07 17:02
mveDave Kreskowiak4-Jun-07 17:02 
GeneralRe: Windows Media Issue Pin
Jasmine25014-Jun-07 18:39
Jasmine25014-Jun-07 18:39 
GeneralRe: Windows Media Issue Pin
Dave Kreskowiak5-Jun-07 14:14
mveDave Kreskowiak5-Jun-07 14:14 
GeneralRe: Windows Media Issue Pin
Jasmine25015-Jun-07 18:53
Jasmine25015-Jun-07 18:53 
Questioncharecter inputting function Pin
sonavi3-Jun-07 14:43
sonavi3-Jun-07 14:43 
AnswerRe: charecter inputting function Pin
Mike Dimmick6-Jun-07 3:46
Mike Dimmick6-Jun-07 3:46 
It's not really clear what you're asking for.

If you want the source to the C run-time library function _getch, see VC\crt\src\getch.c under your Visual Studio install folder. For Visual Studio 6.0, this is VC98\crt\src\getch.c. You might need to install the C run-time source if you haven't already.

You can find the source to the .NET Framework function Console.Read by downloading the Shared Source CLI and looking at clr\src\bcl\system\console.cs. You can also use Reflector but the comments in the original source are quite useful.

Note that in both of these cases you are not permitted to copy the source code.

The source is not supplied for the ReadConsoleInput function that the CRT uses, but I anticipate that it receives messages from the console window (which is actually created by the CSRSS.EXE process, not by the process that initially requested the console window).

Applications that create a window receive keyboard events as messages in the message queue of the thread owning the window that has the keyboard focus. These are WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN and WM_SYSKEYUP messages, depending on whether the Alt key is held down or not. To decode the keypresses into printable characters, the application must call the TranslateMessage function, which generates WM_UNICHAR, WM_CHAR, WM_DEADCHAR, WM_SYSCHAR or WM_SYSDEADCHAR messages as appropriate.

For more information, see "About Keyboard Input"[^] in MSDN Library.

Stability. What an interesting concept. -- Chris Maunder

Questionserver log Pin
Shivaprasad D Atthigode1-Jun-07 20:50
Shivaprasad D Atthigode1-Jun-07 20:50 
AnswerRe: server log Pin
Johpoke4-Jun-07 2:10
Johpoke4-Jun-07 2:10 
QuestionControlling Background when 'Lock Computer' Pin
Philip JJP1-Jun-07 2:41
Philip JJP1-Jun-07 2:41 
AnswerRe: Controlling Background when 'Lock Computer' Pin
Dave Kreskowiak1-Jun-07 4:45
mveDave Kreskowiak1-Jun-07 4:45 
QuestionBoot priority- very urgent Pin
saisp30-May-07 18:12
saisp30-May-07 18:12 
AnswerRe: Boot priority- very urgent Pin
Johpoke31-May-07 1:57
Johpoke31-May-07 1:57 
QuestionShell command in XP Pin
Ahmed El-Badry29-May-07 22:26
Ahmed El-Badry29-May-07 22:26 
AnswerRe: Shell command in XP Pin
akseli14-Jul-07 3:55
akseli14-Jul-07 3:55 
QuestionAbout VPN Pin
harshadha29-May-07 20:32
harshadha29-May-07 20:32 
AnswerRe: About VPN Pin
Johpoke31-May-07 2:01
Johpoke31-May-07 2:01 
AnswerRe: About VPN Pin
Expert Coming2-Jun-07 20:36
Expert Coming2-Jun-07 20:36 
Questioncharecter inputting method Pin
sonavi29-May-07 17:12
sonavi29-May-07 17:12 
AnswerRe: charecter inputting method Pin
Mohamad K. Ayyash10-Sep-07 1:34
Mohamad K. Ayyash10-Sep-07 1:34 
Questionbooting puppylinux Pin
prathuraj28-May-07 0:42
prathuraj28-May-07 0:42 
AnswerRe: booting puppylinux Pin
Dave Kreskowiak28-May-07 5:59
mveDave Kreskowiak28-May-07 5:59 
GeneralRe: booting puppylinux Pin
prathuraj28-May-07 6:42
prathuraj28-May-07 6:42 
GeneralRe: booting puppylinux Pin
MatrixCoder28-May-07 9:13
MatrixCoder28-May-07 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.