Does anyone know how I would go about detecting the available space in which an IPL can be written.
I have realised that with my app if the IPL being injected is larger than the available IPL space then the Memory Stick becomes corrupted.
Version 0.4 + Source is available at http://ifile.it/25amkt7 and version 0.5 with now source is available at http://ifile.it/ektnjc1.
Any help with fixing this would be greatly appreciated. I have tried looking before asking but I am unable to find an answer.
Detect IPL Available Space?
http://www.microsoft.com/technet/prodte ... x?mfr=true
Make a structure according to the format of the partition table. You might have to make some values as characters and convert them to numbers because they use 6-bit values etc The first partition table always starts at a fixed address 0x01BE. Read from that address into the structure. Then from the structure you have the starting sector address of the first partition.
The space you have is (starting sector-IPL starting sector)*bytes per sector for that physical disk.
Make a structure according to the format of the partition table. You might have to make some values as characters and convert them to numbers because they use 6-bit values etc The first partition table always starts at a fixed address 0x01BE. Read from that address into the structure. Then from the structure you have the starting sector address of the first partition.
The space you have is (starting sector-IPL starting sector)*bytes per sector for that physical disk.