Home |
Function RTFCheckDiskBufferSize Function RTFCreateMasterBootRecord Function RTFCreateGPTPartition Function RTFCreateBackupGPT |
Function RTFCreateBackupGPTRTFCreateBackupGPT creates a backup GPT to be written to the end of a disk: int RTFCreateBackupGPT(const void * GPT, void * BackupGPT, UINT BackupGPTBufferSize, UINT SectorSize) RTFCreateBackupGPT does not access any physical disk. ParametersGPTA pointer to a buffer holding the GPT. This parameter should have been passed to RTFCreateGPTPartition before. BackupGPTA pointer to a buffer holding the backup GPT to be created. The buffer pointed to by this parameter should have at least 1 sector plus 16384 bytes. GPTBufferSizeThe size of the buffer pointed to by parameter BackupGPT. SectorSizeBytes per sector of the disk. This value must be at least 512 and a power of two. return valueIf the function succeeds, the return value is RTF_NO_ERROR. If the function fails, the return value is a negative error code. Demo program PartDemo shows how this function is used and how the backup GPT is written to disk.
|