isdosprt.c
来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 38 行
C
38 行
/***************************************************************************/
/* */
/* ISDOSPRT.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/* */
/* Checks a partition entry type to see if it is a valid DOS primary */
/* partition. */
/* */
/* VALID PARTITION TYPES: */
/* */
/* DOS12 == 1 == FAT file system - 12 bit FAT */
/* DOS16 == 4 == FAT file system - 16 bit FAT */
/* DOSNEW == 6 == FAT file sytem - huge partition > 32 meg */
/* */
/* */
/* int IsDosPart( unsigned char PartitionType ) */
/* */
/* ARGUMENTS: PartitionType - Partition type as found in partition table */
/* RETURNS: int - TRUE if DOS primary partition else false */
/* */
/* Created 02-07-90 johnhe */
/***************************************************************************/
#include <alias.h>
#include <hdisk.h>
unsigned IsDosPart( unsigned char PartitionType )
{
return( PartitionType == (UCHAR)DOS12 ||
PartitionType == (UCHAR)DOS16 ||
PartitionType == (UCHAR)DOSNEW );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?