21 ACCESS_MASK Access = TOKEN_ADJUST_PRIVILEGES| TOKEN_QUERY;
22 BOOL ok = OpenProcessToken( GetCurrentProcess(), Access, pToken );
33 TCHAR szRoot[ MAX_PATH ];
37 BOOL ok = PathStripToRoot( szRoot );
38 if (ok)
_tcsncpyz( Root, szRoot, ccRoot );
51 if (ok) ok = GetVolumeInformation( szRoot, NULL,0, NULL, NULL, &Flags, NULL, 0 );
63 if (ok) ok = GetVolumeInformation( szRoot, NULL,0, &VolSN, NULL, NULL, NULL, 0 );
73 BY_HANDLE_FILE_INFORMATION info;
74 return GetFileInformationByHandle( hObj, &info ) ? info.dwVolumeSerialNumber : 0;
82 TCHAR Dir[ MAX_PATH ];
83 _tcscpy_s( Dir, MAX_PATH, PathName );
84 PathRemoveFileSpec( Dir );
bool __GetRoot(OUT TSTR Root, IN UINT ccRoot, IN CSTR PathName)
DWORD __GetVolumeId(CSTR PathName)
DWORD __GetHandleVolumeId(HANDLE hObj)
bool EnablePrivilege(HANDLE hToken, CSTR Privilege, bool Enable, OPTOUT PLUID_AND_ATTRIBUTES pSave)
bool __EnableProcPrivilege(IN CSTR Privilege, OUT LUID_AND_ATTRIBUTES *pPrv, OUT HANDLE *pToken)
BOOL(WINAPI *SysImgList::Shell_GetImageLists)(HIMAGELIST *pimlLarge
bool __forceinline bool_cast(BOOL B52)
DWORD __GetVolumeFlags(CSTR PathName)
CSTR __ChangeToDirOf(CSTR PathName)
CSTR ChangeDirectory(CSTR Dir)