I know that there are Win32 API for getting absolute path to some system directories. Those API are i.e. GetSystemDirectory, GetWindowsDirectory, and SHGetSpecialFolderLocation.
I am interested in a function that would take some directory name and return an absolute path to that directory if it exists. Or some value that indicates that several directories with that name exist.