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