Home > Back-end >  Read U disk partition of hidden files
Read U disk partition of hidden files

Time:09-20

How to program to read the information in the U disk partition hidden, what you need to call the API, U disk partition information is as follows (view) with DiskGenius tools,



Large space partition have drive, small space partition not drive (hidden), how can I read programming files from the partition,

Now can read U disk partition information on programming, and some parameters of the partition, but I don't know how to read the diskless operator files, in a partition
I find the Internet a
CreateFileA (" \ \ \ \. \ \ Harddisk1Partition0 \ \ x.t xt ", GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ
, NULL, CREATE_ALWAYS, 0, NULL);
But prompt return an error, the system cannot find the specified path, among them \ \ \ \. \ \ Harddisk1Partition0 U dish in the path of the hidden partition, because I use the
CreateFileA (" \ \ \ \. \ \ Harddisk1Partition1 \ \ x.t xt ", GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ
, NULL, CREATE_ALWAYS, 0, NULL); To succeed,

Excuse me each warrior to how to read and write,

CodePudding user response:

Who can know, glad to trouble

CodePudding user response:

Your problem solved? I now also need to operate hidden partition, if you study out, are looking forward to your reply to me

CodePudding user response:

To do this at the bottom of, had better use VC

CodePudding user response:


Use first drive to obtain volume
If (GetVolumeNameForVolumeMountPoint (DiskLetter DiskVol, MAX_PATH))//L J: \ \ ""
To directly manipulate volumes,
HVolume=CreateFile (//with a volume to create a file handle
DiskVol, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, NULL, NULL);

You try:

CodePudding user response:

Windows of the hard disk serial number begins with 0, partition number begins with 1!
  • Related