Take a look at this piece:
Code:
TranslateMessage(&msg);
Why is there an ampersand(&) in front of msg????