partition hiding program - program to read the partition...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /* program to read the partition table of hard disk and can hide and revele partitions*/ /* Release date: 1.1.2006 Author: Tapan Kumar Mishra 7th sem ,Electrical Engg. IGIT Sarang,Orissa mailid:[email protected] About the program: This program is a part of my project to read ext2 linux file system under dos or win98.This program read the partition table of ur hard disk and print the informations about those.And can hide and revele the partitions by changing the systemid of that partions. Caution: Modification of the code may lead yourdisk unusable. The author is not responsible for any damage or dataloss. This program is tested under win98. compile it by Turbo c3 Any comment,feedback,query mail to [email protected] */ #include<stdio.h> #include<bios.h> #include<dos.h> #include<stdlib.h> typedef unsigned char BYTE typedef unsigned int WORD typedef unsigned long DWORD enum BOOL {TRUE=0,FALSE=1} struct PARTITIONINFO { BYTE bootid BYTE beghead BYTE begsect BYTE begcyl BYTE systid BYTE endhead BYTE endsect BYTE endcyl DWORD relsect DWORD numsect } struct DISK_ADD_PACKET { BYTE recordsize
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sheet1 Page 2 BYTE reserved WORD count DWORD transferadd DWORD lowbits DWORD highbits } struct MBR{ BYTE codes[446] struct PARTITIONINFO partition[4] WORD mbrid } struct driveinfo{ DWORD startsect BYTE sysid } WORD ExtentionCheck (BYTE drive) { union REGS regs regs.h.ah = 0x41 regs.x.bx = 0x55aa regs.h.dl = drive
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern