Microsoft KB Archive/102943

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 23:26, 19 July 2020 by X010 (talk | contribs) (Text replacement - "[[mk:@MSITStore:kbwin32.chm::/Source/win16sdk/q" to "[[../")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DOC: KeyboardProc() Not Required in DLL for Task Hook

Q102943



The information in this article applies to:


  • Microsoft C/C++ for MS-DOS, version 7.0
  • Microsoft Visual C++, versions 1.0, 1.5



The online help for Microsoft C/C++ version 7.0 and for Visual C++ versions 1.0 and 1.5 all say the following about KeyboardProc():


  • The KeyboardProc function is a library-defined callback function that the system calls whenever the application calls the GetMessage or PeekMessage function and there is a WM_KEYUP or WM_KEYDOWN keyboard message to process.

Under Windows version 3.1 [using the SetWindowsHookEx() function instead of SetWindowsHook()], it is not necessary for the KeyboardProc() function to be placed in a dynamic-linked library (DLL) if it is being used as a task-specific hook.

For additional information, please see the following article in the Microsoft Knowledge Base:

Q83233 Sample Code Uses Keyboard Hook to Access Help

Additional query words: Visual 3.10 1.00 1.50 7.00

Keywords : kb16bitonly
Issue type :
Technology : kbVCsearch kbAudDeveloper kbPTProdChange kbvc150 kbvc100 kbZNotKeyword3 kbCVC700DOS


Last Reviewed: May 9, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.