mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
10a923d083
svn path=/trunk/; revision=11364
52 lines
1 KiB
C
52 lines
1 KiB
C
#include <stdio.h>
|
|
#include <ntddk.h>
|
|
|
|
int main()
|
|
{
|
|
int i;
|
|
|
|
printf("TickCountLow: %lx\n",
|
|
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;
|
|
}
|