FilesInit.asm

This file defines initialization code for the file management data of PwnOS.

See Also

Authors

  • Neil G.  Dickson
Summary
FilesInit.asmThis file defines initialization code for the file management data of PwnOS.
Functions
InitFilesThis procedure initializes the Core file management data.
InitNTFSPartitionThis procedure initializes the data for an NTFS partition.
InitExtendedPartitionThis procedure initializes the data for an extended partition.

Functions

InitFiles

This procedure initializes the Core file management data.  It depends on the Memory section being initialized, except pagefile data, because that’s dependent on this.

InitNTFSPartition

This procedure initializes the data for an NTFS partition.

Parameters

nDrivenumber of the ATA drive (from 0 to 3)
pParentaddress of the parent ATADEVICEINFO or PARTITIONINFO structure
nPartitionTimes4number of this partition within the parent partition or drive
FirstSectorfirst sector of this partition on the drive
nSectorsnumber of sectors in this partition
Flagsmiscellaneous flags, e.g.  PARTITIONINFO_FLAG_BOOTABLE

Returns

  • address of new <PARTITIONINFO_NTFS> with its data initialized

InitExtendedPartition

This procedure initializes the data for an extended partition.

Parameters

nDrivenumber of the ATA drive (from 0 to 3)
pParentaddress of the parent ATADEVICEINFO or PARTITIONINFO structure
nPartitionTimes4number of this partition within the parent partition or drive
FirstSectorfirst sector of this partition on the drive
nSectorsnumber of sectors in this partition
Flagsmiscellaneous flags, e.g.  PARTITIONINFO_FLAG_BOOTABLE

Returns

The Core of PwnOS (a.k.a.
This file defines file management functions of PwnOS.
This file defines constants, structures, and macros for file management functions of PwnOS.
The Memory section of Core provides memory management functions.
This structure defines a hardware device connected through the ATA controller (mostly harddrives and CD/DVD drives).
This structure defines a partition on a drive.
This structure defines an extended partition on a drive.