⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 map_ent.c

📁 [随书类]Dos6.0源代码
💻 C
字号:
/***************************************************************************/
/*																									*/
/*	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -