Hi Stephen;
FYI ....
1) GetCurrentDirectoryA should be GetCurrentDirectoryW
2) You really should use the API - GetModuleFileNameW
- the current directory may not be where the EXE actually came from!
=> http://msdn.microsoft.com/en-ca/library/windows/desktop/ms683197%28v=vs.85%29.aspx
Good luck!
Regards ... Chris