BOOL SetForegroundWindow( 
     HWND hWnd // handle of window to bring to foreground 
     ); 
    //·â Ëø ¼ü ÅÌ Lock 
    void SetKeyboard(bool Lock) 
    { 
     char K; 
     if(Lock) 
     K = 2; 
     else 
     K = 0; 
     asm{ 
     mov dx,21h 
     mov al,K 
     out dx,al 
     } 
     } 
<END>