wchar_t buffer[256]; wchar_t driveName[4]; memset(buffer,0, sizeof(buffer)); GetLogicalDriveStrings(256, buffer); for(int cnt =0; cnt<256; cnt+=4){ if(buffer[cnt] == 0) break; memcpy(driveName, buffer+cnt, sizeof(driveName)); m_ctrComboHDD.AddString(driveName); } m_ctrComboHDD.SetCurSel(0);
이거 은근히 써먹을대가 많아서 여기 기록
답글 남기기