-
GPT分区在EFI标准中的实现
资源介绍
pDliEx2->PartitionStyle = PARTITION_STYLE_GPT;
pDliEx2->PartitionCount = 1;
LARGE_INTEGER usedDisk;
usedDisk.QuadPart = 512 + 33 * 512 + 33 * 512; //MBR + 主分区表的大小 + 备用分区表的大小
pDliEx2->Gpt.DiskId = pCd->Gpt.DiskId;
pDliEx2->Gpt.MaxPartitionCount = 128;
pDliEx2->Gpt.StartingUsableOffset.QuadPart = (34 * 512);
pDliEx2->Gpt.UsableLength.QuadPart = totalSizeOfDisk.QuadPart - usedDisk.QuadPart;