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); }
GetProcAddress()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)