map_ent.c
来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 32 行
C
32 行
/***************************************************************************/
/* */
/* MAP_ENT.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/* */
/* Creates a partition map entry from a partition entry structure. */
/* */
/* void CreateMapEntry( struct PartMap *Map, struct Part *Part ) */
/* */
/* ARGUMENTS: Map - Ptr to partition map structure */
/* Part - Ptr to partition table entry */
/* RETURNS: void */
/* */
/* Created 02-07-90 johnhe */
/***************************************************************************/
#include <alias.h>
#include <hdisk.h>
void CreateMapEntry( struct PartMap *Map, struct Part *Part )
{
Map->PartType = Part->SystemIndicator;
Map->StartSec = Part->RelativeSector;
Map->EndSec = Part->RelativeSector + Part->TotalSectors - 1;
Map->TotalSecs = Part->TotalSectors;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?