| [21368] | 1 | /* | 
|---|
|  | 2 | * Copyright (C) 2007 Tim Schwartz | 
|---|
|  | 3 | * | 
|---|
|  | 4 | * This library is free software; you can redistribute it and/or | 
|---|
|  | 5 | * modify it under the terms of the GNU Lesser General Public | 
|---|
|  | 6 | * License as published by the Free Software Foundation; either | 
|---|
|  | 7 | * version 2.1 of the License, or (at your option) any later version. | 
|---|
|  | 8 | * | 
|---|
|  | 9 | * This library is distributed in the hope that it will be useful, | 
|---|
|  | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
|  | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|---|
|  | 12 | * Lesser General Public License for more details. | 
|---|
|  | 13 | * | 
|---|
|  | 14 | * You should have received a copy of the GNU Lesser General Public | 
|---|
|  | 15 | * License along with this library; if not, write to the Free Software | 
|---|
|  | 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA | 
|---|
|  | 17 | */ | 
|---|
|  | 18 | #ifndef _LMUSE_H | 
|---|
|  | 19 | #define _LMUSE_H | 
|---|
|  | 20 |  | 
|---|
|  | 21 | #ifdef __cplusplus | 
|---|
|  | 22 | extern "C" { | 
|---|
|  | 23 | #endif | 
|---|
|  | 24 |  | 
|---|
|  | 25 | #include "lmcons.h" | 
|---|
|  | 26 | #include "lmuseflg.h" | 
|---|
|  | 27 |  | 
|---|
|  | 28 | typedef struct _USE_INFO_1 | 
|---|
|  | 29 | { | 
|---|
|  | 30 | LMSTR ui1_local; | 
|---|
|  | 31 | LMSTR ui1_remote; | 
|---|
|  | 32 | LMSTR ui1_password; | 
|---|
|  | 33 | DWORD ui1_status; | 
|---|
|  | 34 | DWORD ui1_asg_type; | 
|---|
|  | 35 | DWORD ui1_refcount; | 
|---|
|  | 36 | DWORD ui1_usecount; | 
|---|
|  | 37 | } USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1; | 
|---|
|  | 38 |  | 
|---|
|  | 39 | typedef struct _USE_INFO_2 | 
|---|
|  | 40 | { | 
|---|
|  | 41 | LMSTR ui2_local; | 
|---|
|  | 42 | LMSTR ui2_remote; | 
|---|
|  | 43 | LMSTR ui2_password; | 
|---|
|  | 44 | DWORD ui2_status; | 
|---|
|  | 45 | DWORD ui2_asg_type; | 
|---|
|  | 46 | DWORD ui2_refcount; | 
|---|
|  | 47 | DWORD ui2_usecount; | 
|---|
|  | 48 | LMSTR ui2_username; | 
|---|
|  | 49 | LMSTR ui2_domainname; | 
|---|
|  | 50 | } USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2; | 
|---|
|  | 51 |  | 
|---|
|  | 52 | NET_API_STATUS WINAPI NetUseAdd(LMSTR,DWORD,LPBYTE,LPDWORD); | 
|---|
|  | 53 | NET_API_STATUS WINAPI NetUseDel(LMSTR,LMSTR,DWORD); | 
|---|
|  | 54 | NET_API_STATUS WINAPI NetUseEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD); | 
|---|
|  | 55 | NET_API_STATUS WINAPI NetUseGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*); | 
|---|
|  | 56 |  | 
|---|
|  | 57 | #ifdef __cplusplus | 
|---|
|  | 58 | } | 
|---|
|  | 59 | #endif | 
|---|
|  | 60 |  | 
|---|
|  | 61 | #endif /* _LMUSE_H */ | 
|---|