Click here to Skip to main content
15,913,130 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi,
Can anyone please tell me how to read from and write to a VHD file in C++ .

Thanks,
Dev
Posted
Comments
Member 16056410 23-Jul-23 19:15pm    
I think I have the same question, when I'm creating the vhd file with raw bytes, I can't attach it because of vhd signature, which exists at the end of file. I tried to just copy the signature from vhd file I created in disk management, but that didn't work. Can anyone tell what does bytes of that signature mean?

1 solution

It's done in exact same way as the file on any other disk. I think your only problem is understanding of the term "virtual". In essence, it means behaving in all main aspects in the same way as the "real". :-)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900