Reverted latest changes.
[reactos.git] / reactos / lib / kernel32 / file / dosdev.c
1 /* $Id: dosdev.c,v 1.5 2002/09/08 10:22:41 chorns Exp $
2 *
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)
8 * UPDATE HISTORY:
9 * Created 01/11/98
10 */
11
12 #include <ddk/ntddk.h>
13 #include <windows.h>
14
15
16 WINBOOL
17 STDCALL
18 DefineDosDeviceA(
19 DWORD dwFlags,
20 LPCSTR lpDeviceName,
21 LPCSTR lpTargetPath
22 )
23 {
24 ULONG i;
25
26 WCHAR DeviceNameW[MAX_PATH];
27 WCHAR TargetPathW[MAX_PATH];
28
29 i = 0;
30 while ((*lpDeviceName)!=0 && i < MAX_PATH)
31 {
32 DeviceNameW[i] = *lpDeviceName;
33 lpDeviceName++;
34 i++;
35 }
36 DeviceNameW[i] = 0;
37
38 i = 0;
39 while ((*lpTargetPath)!=0 && i < MAX_PATH)
40 {
41 TargetPathW[i] = *lpTargetPath;
42 lpTargetPath++;
43 i++;
44 }
45 TargetPathW[i] = 0;
46 return DefineDosDeviceW(dwFlags,DeviceNameW,TargetPathW);
47 }
48
49
50
51 DWORD
52 STDCALL
53 QueryDosDeviceA(
54 LPCSTR lpDeviceName,
55 LPSTR lpTargetPath,
56 DWORD ucchMax
57 )
58 {
59 ULONG i;
60
61 WCHAR DeviceNameW[MAX_PATH];
62 WCHAR TargetPathW[MAX_PATH];
63
64
65
66 i = 0;
67 while ((*lpDeviceName)!=0 && i < MAX_PATH)
68 {
69 DeviceNameW[i] = *lpDeviceName;
70 lpDeviceName++;
71 i++;
72 }
73 DeviceNameW[i] = 0;
74
75 i = 0;
76 while ((*lpTargetPath)!=0 && i < MAX_PATH)
77 {
78 TargetPathW[i] = *lpTargetPath;
79 lpTargetPath++;
80 i++;
81 }
82 TargetPathW[i] = 0;
83 return QueryDosDeviceW(DeviceNameW,TargetPathW,ucchMax);
84 }
85
86
87 WINBOOL
88 STDCALL
89 DefineDosDeviceW(
90 DWORD dwFlags,
91 LPCWSTR lpDeviceName,
92 LPCWSTR lpTargetPath
93 )
94 {
95 return FALSE;
96 }
97
98 DWORD
99 STDCALL
100 QueryDosDeviceW(
101 LPCWSTR lpDeviceName,
102 LPWSTR lpTargetPath,
103 DWORD ucchMax
104 )
105 {
106 return FALSE;
107 }
108
109 /* EOF */