xref: /reactos/dll/np/nfs/nfs41_np.h (revision c2c66aff)
1 /* NFSv4.1 client for Windows
2  * Copyright � 2012 The Regents of the University of Michigan
3  *
4  * Olga Kornievskaia <aglo@umich.edu>
5  * Casey Bodley <cbodley@umich.edu>
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation; either version 2.1 of the License, or (at
10  * your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * without any warranty; without even the implied warranty of merchantability
14  * or fitness for a particular purpose.  See the GNU Lesser General Public
15  * License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  */
21 
22 #ifndef __NFS41_NP_H__
23 #define __NFS41_NP_H__
24 
25 #define NFS41NP_MUTEX_NAME  "NFS41NPMUTEX"
26 
27 #define NFS41NP_MAX_DEVICES 26
28 
29 typedef struct __NFS41NP_NETRESOURCE {
30     BOOL    InUse;
31     USHORT  LocalNameLength;
32     USHORT  RemoteNameLength;
33     USHORT  ConnectionNameLength;
34     DWORD   dwScope;
35     DWORD   dwType;
36     DWORD   dwDisplayType;
37     DWORD   dwUsage;
38     WCHAR   LocalName[MAX_PATH];
39     WCHAR   RemoteName[MAX_PATH];
40     WCHAR   ConnectionName[MAX_PATH];
41     WCHAR   Options[MAX_PATH];
42 } NFS41NP_NETRESOURCE, *PNFS41NP_NETRESOURCE;
43 
44 typedef struct __NFS41NP_SHARED_MEMORY {
45     INT                 NextAvailableIndex;
46     INT                 NumberOfResourcesInUse;
47     NFS41NP_NETRESOURCE NetResources[NFS41NP_MAX_DEVICES];
48 } NFS41NP_SHARED_MEMORY, *PNFS41NP_SHARED_MEMORY;
49 
50 #endif /* !__NFS41_NP_H__ */
51