这篇教程C++ GetVolumeInformation函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetVolumeInformation函数的典型用法代码示例。如果您正苦于以下问题:C++ GetVolumeInformation函数的具体用法?C++ GetVolumeInformation怎么用?C++ GetVolumeInformation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetVolumeInformation函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: max_filename static int max_filename() { DWORD maxflen; int status = 0; status = GetVolumeInformation((LPTSTR)0, (LPTSTR)0, 0 , (LPDWORD)0, &maxflen, (LPDWORD)0, (LPTSTR)0, 0); if (status) return maxflen; else return 0; }
开发者ID:barthouse,项目名称:NetHackOld,代码行数:11,
示例2: GetVolumeSnString GetVolumeSn(const String &vol, int len) { dword sn; // Win API if(!GetVolumeInformation(vol, NULL, 0, &sn, NULL, NULL, NULL, 0)) sn = 71511731;#ifdef _WITH_DEBUGRLOG("GetVolumeSn():sn = " + AsString(sn));#endif return String(AsString(sn)).Right(len);}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:11,
示例3: IsUTCVolume/* Tony Hoyle's function for testing whether a given volume uses UTC or * local time to record file modification times * * Reproduced here with permission of Tony Hoyle. * * This code is copyright by Tony Hoyle and is licensed under the Gnu * Public License. (See above) * * NTFS, HPFS, and OWFS store file times as UTC times. * FAT stores file times as local time. * * INPUTS: * LPCSTR name: fully qualified path * * OUTPUTS: * Return true if the file system on the volume in question * stores file times as UTC */BOOL IsUTCVolume ( LPCTSTR name ){ _TCHAR szDrive[_MAX_DRIVE + 1] = _T(""); _TCHAR szFs[32]=_T(""); _tsplitpath(name, szDrive, NULL, NULL, NULL); _tcscat(szDrive, _T("//")); GetVolumeInformation( szDrive, NULL, 0, NULL, NULL, NULL, szFs, 32 ); return ! ( _tcsicmp( szFs, _T("NTFS") ) && _tcsicmp( szFs, _T("HPFS") ) && _tcsicmp( szFs, _T("OWFS") ) );}
开发者ID:sumikawa,项目名称:cvs-ipv6,代码行数:30,
示例4: TfrmLogoDiALab//===========================================================================void __fastcall TfrmMain::FormCreate(TObject *Sender){ // --------------------------------------------------- frmLogoDiALab = new TfrmLogoDiALab(NULL); //frmLogoDiALab->Show(); Application->ProcessMessages(); Sleep(2300); // --------------------------------------------------- WhoUseProgram = wupSensei; //WhoUseProgram = wupTsisarzh; //WhoUseProgram = wupTanjaKvant; if (WhoUseProgram == wupTsisarzh) { // ---- C++ GetWarnings函数代码示例 C++ GetVolume函数代码示例
|