; Template for console application
         .586
         .MODEL  flat, stdcall
         OPTION CASEMAP:NONE

Include windows.inc
Include user32.inc
Include kernel32.inc
Include masm32.inc

IncludeLib user32.lib
IncludeLib kernel32.lib
IncludeLib masm32.lib

VK_NUMLOCK  =   90h
VK_SCROLL   =   91h
VK_LSHIFT   =   0A0h
VK_RSHIFT   =   0A1h
VK_LCONTROL =   0A2h
VK_RCONTROL =   0A3h
VK_LMENU    =   0A4h
VK_RMENU    =   0A5h

         .CONST
MsgExit  DB    "Press Enter to Exit",0AH,0DH,0

         .DATA

         .DATA?
inbuf    DB    100 DUP (?)

         .CODE
Start:
	     INVOKE GetKeyState, VK_NUMLOCK

	     INVOKE GetKeyState, VK_LSHIFT
	     
         XOR    EAX,EAX
         Invoke StdOut,ADDR MsgExit
         Invoke StdIn,ADDR inbuf,LengthOf inbuf		
	
         Invoke ExitProcess,0
         End    Start

