Displaying 1 result from an estimated 1 matches for "extdiskinfo".
2008 Mar 25
3
Com32 api problem !
...ode.
Int 13h Read Drive Parameters (08h) work well.
*******************************************************************************************
struct params {
  unsigned short size,info;
  unsigned long cylinders,heads,sectors;
  unsigned long long int total;
  unsigned short bytes;
} disk;
void ExtDiskInfo(int n)
{
  printf("ExtDiskInfo entry.\n");
  com32sys_t regs;
  memset(®s,0,sizeof(regs));
  regs.eax.b[1] = 0x48;
  regs.edx.b[0] = 0x80 + n;
  regs.ds = SEG(__com32.cs_bounce);
  regs.esi.w[0]  = OFFS(__com32.cs_bounce);
  __intcall(0x13,®s,®s);
  if (regs.eax.b[...