Data path in legacy code

 

Would any one know a way, how to read in the path to the data directory - using the legacy build 509 code + winapi?

Reason: