Can anyone help me with this.. I have gotten so close, but yet so far away.

Need this to be changed to where if the Value is 47 then a keyboard event will happen. The default value is 00. I have it running on a timer. Can anyone help?
ULONG Addr, Value; HRESULT hr; char *stop_at;
Addr = strtoul(m_RegAddr,&stop_at,36);

hr = Lib_RegRead(Addr, 1, &Value);

Tries so far (gonna need to ask for help from people)

hr = Lib_RegRead(Addr, 1, &Value);
if ????????????????????????
keybd_event(0x21, 0, 0, 0);