svrapi: Added a stub svrapi.dll.
This commit is contained in:
parent
ec1c7cc0d3
commit
bb49763154
|
@ -1690,6 +1690,7 @@ dlls/stdole2.tlb/Makefile
|
||||||
dlls/stdole32.tlb/Makefile
|
dlls/stdole32.tlb/Makefile
|
||||||
dlls/sti/Makefile
|
dlls/sti/Makefile
|
||||||
dlls/strmiids/Makefile
|
dlls/strmiids/Makefile
|
||||||
|
dlls/svrapi/Makefile
|
||||||
dlls/tapi32/Makefile
|
dlls/tapi32/Makefile
|
||||||
dlls/twain_32/Makefile
|
dlls/twain_32/Makefile
|
||||||
dlls/unicows/Makefile
|
dlls/unicows/Makefile
|
||||||
|
|
|
@ -156,6 +156,7 @@ BASEDIRS = \
|
||||||
stdole2.tlb \
|
stdole2.tlb \
|
||||||
stdole32.tlb \
|
stdole32.tlb \
|
||||||
sti \
|
sti \
|
||||||
|
svrapi \
|
||||||
tapi32 \
|
tapi32 \
|
||||||
twain_32 \
|
twain_32 \
|
||||||
unicows \
|
unicows \
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
TOPSRCDIR = @top_srcdir@
|
||||||
|
TOPOBJDIR = ../..
|
||||||
|
SRCDIR = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
MODULE = svrapi.dll
|
||||||
|
IMPORTS = kernel32
|
||||||
|
|
||||||
|
C_SRCS = \
|
||||||
|
svrapi_main.c
|
||||||
|
|
||||||
|
@MAKE_DLL_RULES@
|
||||||
|
|
||||||
|
### Dependencies:
|
|
@ -0,0 +1,20 @@
|
||||||
|
@ stub NetAccessAdd
|
||||||
|
@ stub NetAccessCheck
|
||||||
|
@ stub NetAccessDel
|
||||||
|
@ stub NetAccessEnum
|
||||||
|
@ stub NetAccessGetInfo
|
||||||
|
@ stub NetAccessGetUserPerms
|
||||||
|
@ stub NetAccessSetInfo
|
||||||
|
@ stub NetConnectionEnum
|
||||||
|
@ stub NetFileClose
|
||||||
|
@ stub NetFileEnum
|
||||||
|
@ stub NetSecurityGetInfo
|
||||||
|
@ stub NetServerGetInfo
|
||||||
|
@ stub NetSessionDel
|
||||||
|
@ stub NetSessionEnum
|
||||||
|
@ stub NetSessionGetInfo
|
||||||
|
@ stub NetShareAdd
|
||||||
|
@ stub NetShareDel
|
||||||
|
@ stub NetShareEnum
|
||||||
|
@ stub NetShareGetInfo
|
||||||
|
@ stub NetShareSetInfo
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
* Part of NETAPI on Windows 9x
|
||||||
|
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netshareenum.asp
|
||||||
|
*
|
||||||
|
* Copyright 2006 Konstantin Petrov
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include "windef.h"
|
||||||
|
#include "winbase.h"
|
||||||
|
#include "winerror.h"
|
||||||
|
#include "svrapi.h"
|
||||||
|
#include "wine/debug.h"
|
||||||
|
|
||||||
|
WINE_DEFAULT_DEBUG_CHANNEL(svrapi);
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* DllMain (SVRAPI.init)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
||||||
|
{
|
||||||
|
TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
|
||||||
|
|
||||||
|
switch(fdwReason) {
|
||||||
|
case DLL_WINE_PREATTACH:
|
||||||
|
return FALSE; /*prefer native version*/
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
|
break;
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
|
@ -272,6 +272,7 @@ WINDOWS_INCLUDES = \
|
||||||
sqltypes.h \
|
sqltypes.h \
|
||||||
sspi.h \
|
sspi.h \
|
||||||
storage.h \
|
storage.h \
|
||||||
|
svrapi.h \
|
||||||
tapi.h \
|
tapi.h \
|
||||||
tchar.h \
|
tchar.h \
|
||||||
textserv.h \
|
textserv.h \
|
||||||
|
|
|
@ -29,32 +29,33 @@
|
||||||
|
|
||||||
/* Lan manager API defines */
|
/* Lan manager API defines */
|
||||||
|
|
||||||
#define UNLEN 256 /* Maximum user name length */
|
#define UNLEN 256
|
||||||
#define LM20_UNLEN 20
|
#define LM20_UNLEN 20
|
||||||
#define GNLEN UNLEN /* Maximum group name length */
|
#define GNLEN UNLEN
|
||||||
#define LM20_GNLEN LM20_UNLEN
|
#define LM20_GNLEN LM20_UNLEN
|
||||||
#define PWLEN 256 /* Maximum password length */
|
#define PWLEN 256
|
||||||
#define LM20_PWLEN 14
|
#define LM20_PWLEN 14
|
||||||
#define CNLEN 15 /* Computer name length */
|
#define SHPWLEN 8
|
||||||
|
#define CNLEN 15
|
||||||
#define LM20_CNLEN CNLEN
|
#define LM20_CNLEN CNLEN
|
||||||
#define DNLEN CNLEN /* Maximum domain name length */
|
#define DNLEN CNLEN
|
||||||
#define LM20_DNLEN DNLEN
|
#define LM20_DNLEN DNLEN
|
||||||
#define UNCLEN (CNLEN+2) /* UNC computer name length */
|
#define UNCLEN (CNLEN+2)
|
||||||
#define LM20_UNCLEN (LM20_CNLEN+2)
|
#define LM20_UNCLEN (LM20_CNLEN+2)
|
||||||
#define NNLEN 80 /* max share name length */
|
#define NNLEN 80
|
||||||
#define LM20_NNLEN 12 /* max LM 2.0 share name length */
|
#define LM20_NNLEN 12
|
||||||
#define RMLEN (UNCLEN+1+NNLEN)
|
#define RMLEN (UNCLEN+1+NNLEN)
|
||||||
#define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
|
#define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
|
||||||
#define SNLEN 80 /* max service name length */
|
#define SNLEN 80
|
||||||
#define LM20_SNLEN 15
|
#define LM20_SNLEN 15
|
||||||
#define STXTLEN 256 /* service text length */
|
#define STXTLEN 256
|
||||||
#define LM20_STXTLEN 63
|
#define LM20_STXTLEN 63
|
||||||
#define PATHLEN 256
|
#define PATHLEN 256
|
||||||
#define LM20_PATHLEN 256
|
#define LM20_PATHLEN 256
|
||||||
#define DEVLEN 80 /* max device name length */
|
#define DEVLEN 80
|
||||||
#define LM20_DEVLEN 8
|
#define LM20_DEVLEN 8
|
||||||
#define EVLEN 16 /* max event name length */
|
#define EVLEN 16
|
||||||
#define CLTYPE_LEN 12 /* max client type length */
|
#define CLTYPE_LEN 12
|
||||||
|
|
||||||
/* platform IDs */
|
/* platform IDs */
|
||||||
#define PLATFORM_ID_DOS 300
|
#define PLATFORM_ID_DOS 300
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2006 Konstantin Petrov
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SVRAPI_INCLUDED
|
||||||
|
#define SVRAPI_INCLUDED
|
||||||
|
|
||||||
|
#include <lmcons.h>
|
||||||
|
#include <lmerr.h>
|
||||||
|
|
||||||
|
#include <pshpack1.h>
|
||||||
|
|
||||||
|
typedef struct _share_info_1 {
|
||||||
|
char shi1_netname[LM20_NNLEN+1];
|
||||||
|
char shi1_pad1;
|
||||||
|
unsigned short shi1_type;
|
||||||
|
char* shi1_remark;
|
||||||
|
} share_info_1;
|
||||||
|
|
||||||
|
typedef struct _share_info_50 {
|
||||||
|
char shi50_netname[LM20_NNLEN+1];
|
||||||
|
unsigned char shi50_type;
|
||||||
|
unsigned short shi50_flags;
|
||||||
|
char* shi50_remark;
|
||||||
|
char* shi50_path;
|
||||||
|
char shi50_rw_password[SHPWLEN+1];
|
||||||
|
char shi50_ro_password[SHPWLEN+1];
|
||||||
|
} share_info_50;
|
||||||
|
|
||||||
|
#include <poppack.h>
|
||||||
|
|
||||||
|
#endif /* SVRAPI_INCLUDED */
|
Loading…
Reference in New Issue