ホーム » 2010 » 2月 » 02

日別アーカイブ: 2010/02/02

2010年2月
 123456
78910111213
14151617181920
21222324252627
28  

カテゴリー

アーカイブ

ブログ統計情報

  • 77,431 アクセス



利用可能なドライブ名の列挙 GetLogicalDrives

GetLogicalDrives

//*******************************************************************************
// 関数名 :利用可能なドライブ名の列挙
// 作成日 :’10/02/02
//*******************************************************************************
CString GetLogicalDriveName (void)
{
    DWORD drives = ::GetLogicalDrives() ;
    long defaultDrive = -1 ;
    CString driveName ;
    for (int index=0 ; index<30 ; index++) {
        if (drives & (1<<index)) {
            driveName += 'A'+index ;
            }
        }
    return driveName ;
    }
Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.