2004-10-21 05:12:02 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <ntddk.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
2005-05-07 21:24:31 +00:00
|
|
|
printf("TickCountLow: %lx\n",
|
2004-10-21 05:12:02 +00:00
|
|
|
SharedUserData->TickCountLow);
|
|
|
|
printf("Drives: ");
|
|
|
|
for (i = 0; i < 26; i++)
|
|
|
|
{
|
|
|
|
printf("%c", (SharedUserData->DosDeviceMap & (1 << i))?'1':'0');
|
|
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
for (i = 0; i < 26; i++)
|
|
|
|
{
|
|
|
|
if (SharedUserData->DosDeviceMap & (1 << i))
|
|
|
|
{
|
|
|
|
printf("%c: ", 'A'+i);
|
|
|
|
switch(SharedUserData->DosDeviceDriveType[i])
|
|
|
|
{
|
|
|
|
case DOSDEVICE_DRIVE_UNKNOWN:
|
|
|
|
printf("Unknown\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_CALCULATE:
|
|
|
|
printf("No root\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_REMOVABLE:
|
|
|
|
printf("Removable\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_FIXED:
|
|
|
|
printf("Fixed\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_REMOTE:
|
|
|
|
printf("Remote\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_CDROM:
|
|
|
|
printf("CD-ROM\n");
|
|
|
|
break;
|
|
|
|
case DOSDEVICE_DRIVE_RAMDISK:
|
|
|
|
printf("Ram disk\n");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
printf("undefined type\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("\n\n");
|
|
|
|
return 0;
|
|
|
|
}
|