求GetVolumeInformation的使用例子。
如题。 问题点数:100、回复次数:4Top
1 楼studentforever()回复于 2002-11-05 16:02:56 得分 100
GetVolumeInformation
http://sanjianxia.myrice.com/vc/vc57.htmTop
2 楼search_you(一人)回复于 2002-11-05 16:16:11 得分 0
怎么打不开这个网页呢?
能帮我看看我的以下代码为什么会有错吗?
void CGETIDDlg::OnGET()
{
// TODO: Add your control notification handler code here
//
char * str1,*str2;
DWORD *s1;
CString strF;
CString strS;
strF.Format("%c",*str1);
strS.Format("%c",*str2);
::GetVolumeInformation("D:",str1,strF.GetLength(),s1,0,0,str2,strS.GetLength());
CString str;
str.Format("%d",*s1);
AfxMessageBox(str);
}
Top
3 楼search_you(一人)回复于 2002-11-05 16:32:26 得分 0
呵,自己搞定了.
结贴.Top
4 楼studentforever()回复于 2002-11-05 16:47:06 得分 0
GetVolumeInformation(lpRootPathName,
lpVolumeNameBuffer, nVolumeNameSize,
&VolumeSerialNumber,
&MaximumComponentLength,
&FileSystemFlags,
lpFileSystemNameBuffer, nFileSystemNameSize);
sprintf(DiskVolumeSerialNumber,"%X",VolumeSerialNumber);
Top




