Which function can I use in VC6? Prompt : there are not the CHS parameters for USB flash disk .
bghuang
Posts
-
How to get the total sectors for USB flash disk ? -
How to get the total sectors of physical diskI want to get the disk size for every physical disk. The CHS parameter is true for harddisk,but wrong for USB flash disk. Becase the system assume that's X*255*63,the total sectors are also wrong. I dont know what function can I use.
-
How to get the total sectors of physical diskThe USB flash disk have no CHS parameters (the system use virtual parameters),I only need to get teh total sectors for physical drive. The MBR and BOOT may be failure. so your function is invalid. ,how to do it? Thanks.
-
How to get the total sectors of physical diskI want to get the total sectors for physical drive. The MBR and BOOT may be failure. so your function is invalid. Could tell me the other function? Thanks.:)
-
How to let the CListCtrl selectedI try,but faild.
-
Hiding CMenu itemsCMenu *pMenu=GetMenu(); pMenu->EnableMenuItem(ID_SEARCHINLISTCONTINUE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED); pMenu->EnableMenuItem( ID_COMEBACK_MBR, MF_BYCOMMAND | MF_ENABLED);
-
How to let the CListCtrl selectedThere are many object in the same windows,How to let the CListCtrl selected by program othe than by tne mouse?
-
strange in NTFS sectorI found a special phenomena when I analyse the NTFS structure: the data in offset 0x1fe of some sectors was changed, so I cannot do something because the data is illegal. Why?,what can I do?
-
Disable or Enable a Buttontrue/false
-
How to control the sort property of a CListCtrl controler?:laugh::laugh::laugh:
-
How to control the sort property of a CListCtrl controler?In the program ,I use a CListCtrl controler, sometimes I want to set the sort property enable or disable ,how to do it?
-
What is a file?There are 2 main structures in Windows system: FAT32 & NTFS. The NTFS system is similar to the UNIX ,But the FAT32 are not. you can search the topic about FAT32 from MSDN or Google.:laugh:
-
open up a file as read-only:laugh: CFile SrcFile; CString SrcFileName="C:\\test.doc"; SrcFile.Open(SrcFileName,CFile::modeRead ,NULL);
-
How to read the floppy sectors when the 0 sector is badThe CFloppyDisk use the folling sentence to read the sector,so it cannot pass the error.:(:( CreateFile("\\\\.\\A:", GENERIC_READ|GENERIC_WRITE,0, NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
-
How to read the floppy sectors when the 0 sector is badI want to recovery the floppy disk,but cannot read the sectors when the 0 sector is bad. The tool HD copy and DiskEdit can do it. How to do it? My program is running in MFC mode but not console mode