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>
19 #include "../win32err.h"
21 #define LINKS_SIZE 32768
22 #define DEVICE_SIZE 8192
24 static const LPWSTR error_prefix
= L
"lsdd: ";
26 static char SymbolicLinks
[LINKS_SIZE
];
27 static char DosDeviceName
[DEVICE_SIZE
];
29 static char DeviceNames
[DEVICE_SIZE
];
30 static char DeviceName
[DEVICE_SIZE
];
44 if ('\0' == *next
) return FALSE
;
59 main (int argc
, char * argv
[] )
62 "ReactOS/Win32 %s - List DOS Devices Utility\n"
63 "Written by E.Aliberti (%s)\n\n",
68 if (0 != QueryDosDevice (
69 NULL
, /* dump full directory */
75 char * NextDosDevice
= SymbolicLinks
;
78 while (TRUE
== GetNextString (
85 printf ("%s\n", DosDeviceName
);
86 if (0 != QueryDosDevice (
93 NextDevice
= DeviceNames
;
94 while (TRUE
== GetNextString (
101 printf (" -> \"%s\"\n", DeviceName
);