1 /* $Id: dosdev.c,v 1.5 2002/09/08 10:22:41 chorns Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/kernel32/file/dosdev.c
6 * PURPOSE: Dos device functions
7 * PROGRAMMER: Ariadne ( ariadne@xs4all.nl)
12 #include <ddk/ntddk.h>
26 WCHAR DeviceNameW
[MAX_PATH
];
27 WCHAR TargetPathW
[MAX_PATH
];
30 while ((*lpDeviceName
)!=0 && i
< MAX_PATH
)
32 DeviceNameW
[i
] = *lpDeviceName
;
39 while ((*lpTargetPath
)!=0 && i
< MAX_PATH
)
41 TargetPathW
[i
] = *lpTargetPath
;
46 return DefineDosDeviceW(dwFlags
,DeviceNameW
,TargetPathW
);
61 WCHAR DeviceNameW
[MAX_PATH
];
62 WCHAR TargetPathW
[MAX_PATH
];
67 while ((*lpDeviceName
)!=0 && i
< MAX_PATH
)
69 DeviceNameW
[i
] = *lpDeviceName
;
76 while ((*lpTargetPath
)!=0 && i
< MAX_PATH
)
78 TargetPathW
[i
] = *lpTargetPath
;
83 return QueryDosDeviceW(DeviceNameW
,TargetPathW
,ucchMax
);
101 LPCWSTR lpDeviceName
,