cin doesn't work so I think the API : ReadConsoleInput can but I cannot put it work well.

Here is what I have :
PHP Code:
char c;
        
PINPUT_RECORD lpBuffer=0;
        
LPDWORD lpNumberOfEventsRead =0;

        
ReadConsoleInput(NULL,lpBuffer,1,lpNumberOfEventsRead);
        
lpBuffer.KEY_EVENT