af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2007 Tim Schwartz
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync */
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef _LMUSE_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _LMUSE_H
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#include "lmcons.h"
af062818b47340eef15700d2f0211576ba3506eevboxsync#include "lmuseflg.h"
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _USE_INFO_1
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui1_local;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui1_remote;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui1_password;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui1_status;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui1_asg_type;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui1_refcount;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui1_usecount;
af062818b47340eef15700d2f0211576ba3506eevboxsync} USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _USE_INFO_2
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui2_local;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui2_remote;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui2_password;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui2_status;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui2_asg_type;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui2_refcount;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD ui2_usecount;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui2_username;
af062818b47340eef15700d2f0211576ba3506eevboxsync LMSTR ui2_domainname;
af062818b47340eef15700d2f0211576ba3506eevboxsync} USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncNET_API_STATUS WINAPI NetUseAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncNET_API_STATUS WINAPI NetUseDel(LMSTR,LMSTR,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncNET_API_STATUS WINAPI NetUseEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncNET_API_STATUS WINAPI NetUseGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* _LMUSE_H */