4 * AUTHOR: Emanuele ALIBERTI
6 * DESC : List DOS devices, i.e. symbolic links created
7 * in the \?? object manager's name space.
17 #include <reactos/buildno.h>
21 #define LINKS_SIZE 32768
22 #define DEVICE_SIZE 8192
24 static char SymbolicLinks
[LINKS_SIZE
];
25 static char DosDeviceName
[DEVICE_SIZE
];
27 static char DeviceNames
[DEVICE_SIZE
];
28 static char DeviceName
[DEVICE_SIZE
];
42 if ('\0' == *next
) return FALSE
;
57 main (int argc
, char * argv
[] )
60 "ReactOS %s - List DOS Devices Utility\n"
61 "Written by E.Aliberti (%s)\n\n",
66 if (0 != QueryDosDevice (
67 NULL
, /* dump full directory */
73 char * NextDosDevice
= SymbolicLinks
;
76 while (TRUE
== GetNextString (
83 printf ("%s\n", DosDeviceName
);
84 if (0 != QueryDosDevice (
91 NextDevice
= DeviceNames
;
92 while (TRUE
== GetNextString (
99 printf (" -> \"%s\"\n", DeviceName
);