#include "enduser.h" VOID UpdateMasterDiskState( IN HDISK DiskHandle, IN UINT NewState ) { MasterDiskInfo.State = NewState; memset(IoBuffer,0,512); memcpy(IoBuffer,&MasterDiskInfo,sizeof(MASTER_DISK)); if(!WriteDisk(DiskHandle,1,1,IoBuffer)) { FatalError(textWriteFailedAtSector,1,1L); } } UINT LocateMasterDisk( IN UINT UserSpecifiedInt13Unit OPTIONAL ) { UINT DiskCount; UINT i; BYTE Int13Unit; BYTE spt; USHORT h,cyl; ULONG ext; BYTE UnitToMatch; UnitToMatch = (BYTE)(UserSpecifiedInt13Unit ? UserSpecifiedInt13Unit : 0x80); DiskCount = InitializeDiskList(); for(i=0; i