GetVolumePathNamesForVolumeName function not present in Windows 2000 kernel32.dll
===

I have a c++ project that uses GetVolumePathNamesForVolumeName function of kernel32.dll. As the function is not supported in windows 2000 server OS, i am not able to run my program in Windows 2000 Server OS. Any Suggestions on how to change the project settings or any code change that solves my purpose. I dont mind if the functionality of "GetVolumePathNamesForVolumeName" does not reflect in my 2000 Server. I tried the following :

 typedef BOOL (WINAPI *P_GVPNFVN)(LPCWSTR, LPWSTR, DWORD, PDWORD);

 P_GVPNFVN pGetVolumePathNamesForVolumeName = NULL;

 pGetVolumePathNamesForVolumeName = (P_GVPNFVN)GetProcAddress (GetModuleHandle ("kernel32.dll"), "GetVolumePathNamesForVolumeName");                                                              

 BOOL res ;

 if(pGetVolumePathNamesForVolumeName != NULL)

 {

       res = pGetVolumePathNamesForVolumeName((LPCWSTR)szVolumeName,(LPWSTR)szNames,MAX_PATH,&nChars);

 }


The Problem with the above is, after implementing this, the functionality in other OSes is also getting failed. Any Suggestions are welcome.. Thanks in advance.