Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: silly question Pin
pnpfriend25-May-02 8:56
pnpfriend25-May-02 8:56 
GeneralRe: silly question Pin
PJ Arends25-May-02 9:46
professionalPJ Arends25-May-02 9:46 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:28
pnpfriend26-May-02 4:28 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:29
pnpfriend26-May-02 4:29 
GeneralCreate Edit Control Pin
laphijia25-May-02 4:23
laphijia25-May-02 4:23 
GeneralRe: Create Edit Control Pin
Martin Speiser25-May-02 5:18
Martin Speiser25-May-02 5:18 
GeneralNTFS Pin
Mazdak25-May-02 3:18
Mazdak25-May-02 3:18 
GeneralRe: NTFS Pin
redeemer25-May-02 3:32
redeemer25-May-02 3:32 
NTSF:


template "Boot Sector NTFS"

// Template by Paul Mullen, pcguru@the-answer.com
// last modified Jul 16, 2000

// To be applied to sector 0 of an NTFS-formatted
// logical drive or to the mirror copy of the boot
// sector, which will be located near the end of
// the partition.
// See Microsoft KB article Q153973, "Recovering NTFS boot Sector"
// http://support.microsoft.com/support/kb/articles/Q153/9/73.asp

description "Boot sector of an NTFS partition"
applies_to disk
sector-aligned

requires 0x00 "EB" // bytes 0 to 2 are
requires 0x02 "90" // JMP instruction
requires 0x03 "4E 54 46 53 20" // ID must be "NTFS"
requires 0x1FE "55 AA" // "magic" signature

begin
read-only hex 3 "JMP instruction" //00
char[8] "SystemID" //03
uint16 "Bytes per sector" //0B
uint8 "Sectors per cluster" //0D
uint16 "Reserved sectors" //0E
hex 3 "(always zero)" //10
read-only hex 2 "(unused)" //13
hex 1 "Media descriptor" //15
read-only hex 2 "(unused)" //16
uint16 "Sectors per track" //18
uint16 "Heads" //1A
uint32 "Hidden Sectors" //1C
read-only hex 4 "(unused)" //20
read-only hex 4 "(always 80 00 80 00)" //24
int64 "Total sectors" //28
move -8
hex 8 "Total sectors (hex)" //28
int64 "Start C# $MFT" //30
int64 "Start C# $MFTMirr" //38
uint32 "Clust per MFT rec" //40
uint32 "Clust per index block" //44
uint32 "Serial number (int)" //48
move -4
hex 4 "Serial number (hex)" //48
goto 0x1FE //boot load code follows
read-only hex 2 "Signature (55 AA)" //1FE
end



FAT32


template "Boot Sector FAT32"

// Template by Stefan Fleischmann
// To be applied to sector 0 of a FAT32-formatted logical drive.

description "BIOS parameter block (BPB) and more"
applies_to disk
sector-aligned

requires 0x02 "90"
requires 0x52 "46 41 54 33 32" // ="FAT32" at offset 52
requires 0x1FE "55 AA"

begin
read-only hex 3 "JMP instruction"
char[8] "OEM"

section "BIOS Parameter Block"
uint16 "Bytes per sector"
uint8 "Sectors per cluster"
uint16 "Reserved sectors"
uint8 "Number of FATs"
uint16 "Root entries (unused)"
uint16 "Sectors (on small volumes)"
hex 1 "Media descriptor (hex)"
uint16 "Sectors per FAT (small vol.)"
uint16 "Sectors per track"
uint16 "Heads"
uint32 "Hidden sectors"
uint32 "Sectors (on large volumes)"

section "FAT32 Section"
uint32 "Sectors per FAT"
uint16 "Flags"
uint16 "Version"
uint32 "Root dir 1st cluster"
uint16 "FSInfo sector"
uint16 "Backup boot sector"
read-only hex 12 "(Reserved)"
endsection

hex 1 "BIOS drive (hex, HD=8x)"
read-only uint8 (Unused)
hex 1 "Ext. boot signature (29h)"
uint32 "Volume serial number (decimal)"
move -4
hex 4 "Volume serial number (hex)"
char[11] "Volume label"
char[8] "File system"
endsection

goto 0x1FE
read-only hex 2 "Signature (55 AA)"
end

GeneralRe: NTFS Pin
Mazdak25-May-02 3:35
Mazdak25-May-02 3:35 
GeneralRe: NTFS Pin
redeemer25-May-02 3:54
redeemer25-May-02 3:54 
GeneralRe: NTFS Pin
Mazdak25-May-02 4:06
Mazdak25-May-02 4:06 
GeneralRe: NTFS Pin
Renjith Ramachandran25-May-02 3:52
Renjith Ramachandran25-May-02 3:52 
GeneralRe: NTFS Pin
Mazdak25-May-02 4:07
Mazdak25-May-02 4:07 
GeneralRe: NTFS Pin
Renjith Ramachandran25-May-02 5:45
Renjith Ramachandran25-May-02 5:45 
General===rotation a window!!!=== Pin
tiaozi25-May-02 3:11
tiaozi25-May-02 3:11 
GeneralRe: ===rotation a window!!!=== Pin
redeemer25-May-02 3:35
redeemer25-May-02 3:35 
GeneralRe: ===rotation a window!!!=== Pin
tiaozi25-May-02 22:46
tiaozi25-May-02 22:46 
GeneralNew to the language and confused Pin
Dee25-May-02 2:57
Dee25-May-02 2:57 
GeneralRe: New to the language and confused Pin
Erik Funkenbusch25-May-02 3:12
Erik Funkenbusch25-May-02 3:12 
GeneralRe: New to the language and confused Pin
Dee25-May-02 3:38
Dee25-May-02 3:38 
GeneralRe: New to the language and confused Pin
Michael Dunn25-May-02 8:45
sitebuilderMichael Dunn25-May-02 8:45 
GeneralRe: New to the language and confused Pin
Nish Nishant25-May-02 4:03
sitebuilderNish Nishant25-May-02 4:03 
QuestionHow to create user in Active Dir on XP,2k Pin
Ibrar Ahmad25-May-02 2:56
Ibrar Ahmad25-May-02 2:56 
AnswerRe: How to create user in Active Dir on XP,2k Pin
Michael P Butler25-May-02 10:51
Michael P Butler25-May-02 10:51 
Generalwindow rect Pin
25-May-02 2:42
suss25-May-02 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.