라이선스를 만들기 위해 하드디스크의 시리얼번호를 가져오는 방법이다.
CPP
CString [클래스명]::ProcGetVolSeqKey() { DWORD dKey; char C[256]; char buffer[256]; CString sKey=""; CString sRet; if(GetVolumeInformation("C:\\", buffer, 256, &dKey, NULL, NULL, C, 256)) { sKey.Format("%X", dKey); sRet.Format("%s-%s", sKey.Mid(0, 4), sKey.Mid(4, 4)); return sRet; } return sKey; }