en:ibm:prcp:kbd:setfgnd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:ibm:prcp:kbd:setfgnd [2014/05/16 18:46] – created valeriusen:ibm:prcp:kbd:setfgnd [2016/09/15 02:56] (current) valerius
Line 1: Line 1:
 ==== KbdSetFgnd ==== ==== KbdSetFgnd ====
  
-**Bindings**:+**Bindings**: [[setfgnd#C bindings|C]], [[setfgnd#MASM bindings|MASM]] 
 + 
 +This call raises the priority of the foreground keyboard's thread.  
 + 
 +KbdSetFgnd ( )  
 + 
 +//rc// (**USHORT**) - return  
 +Return code descriptions are:  
 + 
 +|0 |NO_ERROR | 
 +|447 |ERROR_KBD_KEYBOARD_BUSY | 
 +|504 |ERROR_KBD_EXTENDED_SG | 
 + 
 +**Remarks** 
 + 
 +//KbdSetFgnd// marks the current process that owns the keyboard. Threads in this process receive a priority boost. The previous foreground keyboard threads lose their priority boost.  
 + 
 +This function should only be issued by a Keyboard Subsystem during //[[charin|KbdCharIn]]// or //[[strin|KbdStringIn]]// 
 +processing.  
 + 
 +=== C bindings ===
  
-**C**: 
 <code c> <code c>
 #define INCL_KBD #define INCL_KBD
Line 12: Line 31:
 </code> </code>
  
-**MASM**:+=== MASM bindings === 
 <code asm> <code asm>
 EXTRN  KbdSetFgnd:FAR EXTRN  KbdSetFgnd:FAR
Line 22: Line 42:
 </code> </code>
  
-This call raises the priority of the foreground keyboard's thread.  
- 
-KbdSetFgnd ( )  
- 
-//rc// (**USHORT**) - return  
-Return code descriptions are:  
- 
-|0 |NO_ERROR | 
-|447 |ERROR_KBD_KEYBOARD_BUSY | 
-|504 |ERROR_KBD_EXTENDED_SG | 
- 
-**Remarks** 
- 
-//KbdSetFgnd// marks the current process that owns the keyboard. Threads in this process receive a priority boost. The previous foreground keyboard threads lose their priority boost.  
- 
-This function should only be issued by a Keyboard Subsystem during //[[charin|KbdCharIn]]// or //[[stringin|KbdStringIn]]// 
-processing.