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>