I am working on a project and i want to determine the size(memory) of the flash on which i am supposed to restore . is there anyway by which i can determine it
How is this memory presenting itself to the OS? If it looks like a storage device, you just query for the characteristics of the device itself (“how big is a disk drive.”) If it is something else, you’ll either have to use the query method for that other class OR you will need to do it via the brute force approach (e.g., read from the device until it fails and then you know how big it is.)
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
actually i wanted to know how to work on the int13h commands for identifying device parameters like
C,H,S ,total sectors etc.
i tried using 0x25 for int13h ; But couldnt get the parameters.
http://support.microsoft.com/kb/102058/en-us
wrote news:xxxxx@ntfsd…
> actually i wanted to know how to work on the int13h commands for
> identifying device parameters like
> C,H,S ,total sectors etc.
> i tried using 0x25 for int13h ; But couldnt get the parameters.
>
>
int 13h and int 25h do not work under Windows NT OS, neither in kernel nor
in user mode.
Use the proper IOCTLs or - for the formatted volume with valid FS -
GetDiskFreeSpace(Ex) - to size the volume.
Internally, GetDiskFreeSpace(Ex) is
IRP_MJ_QUERY_VOLUME_INFORMATION/FileFsSizeInformation, you can use the latter
in kernel mode.
Also, usually under Windows H = 256 S = 64, this is so for all BIOSless
disks (USB-attached, 1394-attached, SCSI-without-BIOS) and for all ATA/SATA
disks in LBA mode. I think these cover 99.9% of disks for now.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> actually i wanted to know how to work on the int13h commands for identifying
device parameters like
> C,H,S ,total sectors etc.
> i tried using 0x25 for int13h ; But couldnt get the parameters.
>
>