Tidy up whitespace

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Tidy up resource

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Rename local variable to avoid collision with WinAPI function name

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Pass const string reference

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>