mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 21:55:12 +00:00
![Alexandre Julliard](/assets/img/avatar_default.png)
Sun Jun 15 10:30:35 1998 Andreas Mohr <100.30936@germany.net> * [files/dos_fs.c] [files/file.c] [if1632/wprocs.spec] [misc/aspi.c] Added support for scanners that need Adaptec's ASPI2DOS. * [graphics/env.c] [misc/printerdrv.c] [graphics/win16drv/init.c] [if1632/gdi.spec] [include/gdi.h] Enhanced printer support (especially Win95): Drv[GS]etPrinterData, [GS]etEnvironment; added AbortProc handling. * [misc/tapi32.c] [relay32/tapi32.spec] Added some stubs. * [configure.in] [graphics/fontengine.c] [include/windows.h] [misc/comm.c] [misc/w32skrnl.c] [misc/win32s16.c] Made Wine compile on HP-UX (just for fun ;) * [controls/menu.c] [include/windows.h] Complete rewrite of EnableMenuItem32. Free Agent 32 still doesn't work :( * [misc/version.c] [if1632/kernel.spec] [include/winbase.h] Implemented GetVersionEx16. * [misc/network.c] [if1632/user.spec] Fixed arguments of WNetGetPropertyText. * [misc/version.c] [relay32/comctl32.spec] [relay32/oleaut32.spec] Implemented COMCTL32_DllGetVersion, OaBuildVersion. * [win32/file.c] Fixed UNC handling of CreateFile32. Sat Jun 13 22:35:12 1998 Douglas Ridgway <ridgway@winehq.com> * [Makefile.in] [Make.rules.in] Added pattern for CVS merge files to 'make clean' * [ole/olecli.c] [windows/scroll.c] [windows/grahics.c] Add some DC handle unlocking. (When hdc's are always unlocked, they can be made moveable.) * [documentation/wine.texinfo] Started a Wine Design chapter with discussion of graphics driver model. Sat Jun 13 11:19:25 1998 David Luyer <luyer@ucs.uwa.edu.au> * [misc/main.c] [relay32/relay386.c] Added new option -debugmsg +relay=.... or -debugmsg -relay=... Fri Jun 12 22:56:09 1998 Marcus Meissner <marcus@jet.franken.de> * [relay32/snoop.c][relay32/builtin.c][loader/pe_image.c] Added inter win32 dll snooping. Use -debugmsg +snoop. Number of arguments and string references are autodetected. Some small bugfixes in the PE loader. * [misc/system.c] Disabled SystemTimers. They do not work with the current %fs handling in the 32->16 relaycode. (helps labview) * [msdos/dpmi.c][msdos/int2f.c][files/drive.c] Added a monoton linear increasing memory allocator for DPMI (required for LabView, HAFAS, ...) mscdex handling in emulated realmode interrupts (for mcicda.drv) allocate logical drives only once. (helps Myst) * [files/profile.c] Handle ^Z as space. Found on CDROMS (helps Myst Installer). * [multimedia/mmio.c] mmio* partially updated to win32. No funny additions. * [windows/driver.c] Added win32 driver handling (will be used for win32 multimedia/ msvideo drivers). * [win32/device.c] Added device handling (K32OBJ_DEVICE_IOCTL). Implemented VTDAPI.5 (used by win95' WINMM.timeGetTime()) Fri Jun 12 18:01:18 1998 Rein Klazes <rklazes@casema.net> * [ole/compobj.c relay32/ole32.spec] Add a stub for CoLockObjectExternal32. * [objects/clipping.c] Fix in IntersectClipRect(), when there is no initial clipping region. * [graphics/x11drv/graphics.c] Corrected several "one-off" errors for the Ellipse, Rectangle and RoundRectangle (especially small ones) draw routines. Arc and friends still have to be done. Fri Jun 12 06:23:19 1998 Matthew Becker <mbecker@glasscity.net> * [misc/ntdll.c] Fixed some of the parameter counts. * [misc/registry.c] General cleanup, documentation. Standard keys are allowed to be 'closed' and succeed. * [misc/shell.c] Check for correct return values from Reg* functions. * [win32/newfns.c] Added stubs for OpenDesktopA, SetThreadDesktop, and SetUserObjectInformationA. Wed Jun 10 20:28:08 1998 James Juran <jrj120@psu.edu> * [debugger/break.c] Fixed bug introduced in 980503 that broke the -debug command line option for PE executable files. * [configure.in] [include/acconfig.h] [include/debugtools.h] [documentation/debug-msgs] Added 'configure' options to compile out debugging messages. Use --disable-debug to disable all debugging messages, and --disable-trace to just disable TRACE messages. This results in a stripped executable that is 15-20% smaller. This option is very much untested--don't expect it to work. * [documentation/debug-msgs] [documentation/debugging] Minor updates. * [*/*.c] Fixed some compile warnings. This also includes the compile_warnings_trivial patch from WineHQ. Tue Jun 10 22:00:18 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de> * [windows/sysmetrics.c][include/sysmetrics.h] Fixed some Win95 values. * [windows/nonclient.c][include/windows.h] Fixed some Win95 drawing bugs. Added extended window style flags (WS_EX_xxx). * [misc/printdrv.c][relay32/winspool.spec] Added stubs for DeletePrinterDriver32A, DeleteMonitor32A and DeletePort32A. * [windows/mdi.c][include/windows.h][relay32/user32.spec] Added stubs for CascadeWindows and TileWindows. * [controls/toolbar.c][include/toolbar.h] Fixed a few bugs and implemented new features. * [misc/shellord.c][relay32/shell32.spec] Added stubs for SHELL32_60, SHELL32_61 and SHELL32_184. * [controls/comctl32undoc.c][relay32/comctl32.spec] New file comctl32undoc.c. Contains undocumented functions of COMCTL32.DLL. These functions are needed to run EXPLORER.EXE IEXPLORE.EXE and TASKMAN.EXE. * [controls/status.c] Added text alignment. Tue Jun 8 22:00:00 1998 Bertho Stultiens <bertho@akhphd.au.dk> * [programs/*/Makefile.in] Changed the rules to use wrc as resource compiler but passing the source through gcc first for macro expansion. * [programs/*/*.rc] Added #include "windows.h" for the resource compiler in the appropriate files. * [tools/wrc/wrc.[ch]] [tools/wrc/writeres.c] Added commandline option -A for autoregister code. Corrected the underscore problem by checking the proper define from config.h. Sun Jun 7 22:09:29 1998 Pascal Cuoq <pcuoq@ens-lyon.fr> * [ole/ole2nls.c] [memory/string.c] Improved LCMapString32A, and changed CompareString32A, lstrcmp, lstrcmpi to use it. Sat Jun 6 19:00:50 1998 Martin Strömberg <ams@ludd.luth.se> * [include/winnt.h] Added typedefs for security and tokens. Sat Jun 6 12:26:31 1998 Morten Welinder <terra@diku.dk> * [objects/text.c] Use debugstr_an in DrawText16. * [loader/resource.c] Use debugres_w in FindResourceEx32W. Avoid crashing during debug when wm is NULL. * [if1632/relay.c] In RELAY_DebugCallTo16, send output to the right place and avoid side effects in macro arguments. Wed Jun 3 20:56:03 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk> * [controls/scroll.c] [windows/nonclient.c] Fix several off by one errors in scrollbar painting. Tue Jun 2 23:58:59 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu> * [graphics/dsound.c] Rewrote mixer code to handle panning and volume for 16->16, 16->8, 8->16, and 8->8 bit mixes. Conforms to DirectX's "logarithmic hearing scale" as specified in M$VC docs. Still does not handle mixing of different frequencies (I am still working on that). Tested 16->16 extensively with StarCraft. Other mixing combinations untested but should work fine. Still kind of a work in progress, so be warned. Tue Jun 2 03:31:33 1998 Alexander V. Lukyanov <lav@long.yar.ru> * [tools/wrc/utils.c] dup_basename: fix to strip directory. Mon Jun 1 20:00:00 1998 Juergen Schmied <juergen.schmied@metronet.de> * [include/windows.h] [objects/cursoricon.c] [relay32/user32.spec] Added stubs LoadCursorFromFileW and LoadCursorFromFileA.
671 lines
19 KiB
C
671 lines
19 KiB
C
/*
|
|
* Network functions
|
|
*
|
|
* This is the MPR.DLL stuff from Win32, as well as the USER
|
|
* stuff by the same names in Win 3.x.
|
|
*
|
|
*/
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "windows.h"
|
|
#include "winerror.h"
|
|
#include "drive.h"
|
|
#include "wnet.h"
|
|
#include "debug.h"
|
|
#include "win.h"
|
|
|
|
/********************************************************************
|
|
* WNetAddConnection16 [USER.517] Directs a local device to net
|
|
*
|
|
* Redirects a local device (either a disk drive or printer port)
|
|
* to a shared device on a remote server.
|
|
*/
|
|
UINT16 WINAPI WNetAddConnection16(LPCSTR lpNetPath, LPCSTR lpPassWord,
|
|
LPCSTR lpLocalName)
|
|
{
|
|
return WNetAddConnection32A(lpNetPath, lpPassWord, lpLocalName);
|
|
}
|
|
|
|
/* [MPR.50] */
|
|
|
|
UINT32 WINAPI WNetAddConnection32A(LPCSTR NetPath, LPCSTR PassWord,
|
|
LPCSTR LocalName)
|
|
{
|
|
FIXME(wnet, "('%s', %p, '%s'): stub\n",
|
|
NetPath, PassWord, LocalName);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/* [MPR.51] */
|
|
|
|
UINT32 WINAPI WNetAddConnection32W(LPCWSTR NetPath,
|
|
LPCWSTR PassWord,
|
|
LPCWSTR LocalName)
|
|
{
|
|
FIXME(wnet, " stub!\n");
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/* ****************************************************************
|
|
* WNetAddConnection2_32A [MPR.46]
|
|
*/
|
|
|
|
UINT32 WINAPI
|
|
WNetAddConnection2_32A(LPNETRESOURCE32A netresource, /* [in] */
|
|
LPCSTR password, /* [in] */
|
|
LPCSTR username, /* [in] */
|
|
DWORD flags /* [in] */ )
|
|
{
|
|
FIXME(wnet, "(%p,%s,%s,0x%08lx), stub!\n", netresource,
|
|
password, username, (unsigned long) flags);
|
|
SetLastError(WN_NO_NETWORK);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/* ****************************************************************
|
|
* WNetAddConnection2W [MPR.47]
|
|
*/
|
|
|
|
UINT32 WINAPI
|
|
WNetAddConnection2_32W(LPNETRESOURCE32W netresource, /* [in] */
|
|
LPCWSTR password, /* [in] */
|
|
LPCWSTR username, /* [in] */
|
|
DWORD flags /* [in] */ )
|
|
{
|
|
FIXME(wnet, ", stub!\n");
|
|
SetLastError(WN_NO_NETWORK);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/* ****************************************************************
|
|
* WNetAddConnection3_32A [MPR.48]
|
|
*/
|
|
|
|
UINT32 WINAPI WNetAddConnection3_32A(HWND32 owner,
|
|
LPNETRESOURCE32A netresource,
|
|
LPCSTR password,
|
|
LPCSTR username,
|
|
DWORD flags)
|
|
{
|
|
TRACE(wnet, "owner = 0x%x\n", owner);
|
|
return WNetAddConnection2_32A(netresource,
|
|
password, username, flags);
|
|
}
|
|
|
|
/* ****************************************************************
|
|
* WNetAddConnection3W [MPR.49]
|
|
*/
|
|
|
|
UINT32 WINAPI WNetAddConnection3_32W(HWND32 owner,
|
|
LPNETRESOURCE32W netresource,
|
|
LPCWSTR username,
|
|
LPCWSTR password,
|
|
DWORD flags)
|
|
{
|
|
TRACE(wnet,"owner = 0x%x\n", owner);
|
|
return WNetAddConnection2_32W(netresource, username, password,
|
|
flags);
|
|
}
|
|
|
|
|
|
/********************************************************************
|
|
* WNetCancelConnection [USER.518] undirects a local device
|
|
*/
|
|
UINT16 WINAPI WNetCancelConnection(LPCSTR lpName, BOOL16 bForce)
|
|
{
|
|
FIXME(wnet, "('%s', %04X): stub\n", lpName, bForce);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
|
|
/**************************************************************************
|
|
* WNetErrorText16 [USER.499]
|
|
*/
|
|
int WINAPI WNetErrorText(WORD nError,LPSTR lpszText,WORD cbText)
|
|
{
|
|
FIXME(wnet, "(%x,%p,%x): stub\n",nError,lpszText,cbText);
|
|
return FALSE;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetOpenJob16 [USER.501]
|
|
*/
|
|
int WINAPI WNetOpenJob(LPSTR szQueue,LPSTR szJobTitle,WORD nCopies,LPWORD pfh)
|
|
{
|
|
FIXME(wnet, "('%s','%s',%x,%p): stub\n",
|
|
szQueue,szJobTitle,nCopies,pfh);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetCloseJob [USER.502]
|
|
*/
|
|
int WINAPI WNetCloseJob(WORD fh,LPWORD pidJob,LPSTR szQueue)
|
|
{
|
|
FIXME(wnet, "(%x,%p,'%s'): stub\n",fh,pidJob,szQueue);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetAbortJob [USER.503]
|
|
*/
|
|
int WINAPI WNetAbortJob(LPSTR szQueue,WORD wJobId)
|
|
{
|
|
FIXME(wnet, "('%s',%x): stub\n",szQueue,wJobId);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetHoldJob [USER.504]
|
|
*/
|
|
int WINAPI WNetHoldJob(LPSTR szQueue,WORD wJobId)
|
|
{
|
|
FIXME(wnet, "('%s',%x): stub\n",szQueue,wJobId);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetReleaseJob [USER.505]
|
|
*/
|
|
int WINAPI WNetReleaseJob(LPSTR szQueue,WORD wJobId)
|
|
{
|
|
FIXME(wnet, "('%s',%x): stub\n",szQueue,wJobId);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetCancelJob [USER.506]
|
|
*/
|
|
int WINAPI WNetCancelJob(LPSTR szQueue,WORD wJobId)
|
|
{
|
|
FIXME(wnet, "('%s',%x): stub\n",szQueue,wJobId);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetSetJobCopies [USER.507]
|
|
*/
|
|
int WINAPI WNetSetJobCopies(LPSTR szQueue,WORD wJobId,WORD nCopies)
|
|
{
|
|
FIXME(wnet, "('%s',%x,%x): stub\n",szQueue,wJobId,nCopies);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetWatchQueue [USER.508]
|
|
*/
|
|
int WINAPI WNetWatchQueue(HWND16 hWnd,LPSTR szLocal,LPSTR szUser,WORD nQueue)
|
|
{
|
|
FIXME(wnet, "(%04x,'%s','%s',%x): stub\n",hWnd,szLocal,szUser,nQueue);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetUnwatchQueue [USER.509]
|
|
*/
|
|
int WINAPI WNetUnwatchQueue(LPSTR szQueue)
|
|
{
|
|
FIXME(wnet, "('%s'): stub\n", szQueue);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetLockQueueData [USER.510]
|
|
*/
|
|
int WINAPI WNetLockQueueData(LPSTR szQueue,LPSTR szUser,void *lplpQueueStruct)
|
|
{
|
|
FIXME(wnet, "('%s','%s',%p): stub\n",szQueue,szUser,lplpQueueStruct);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetUnlockQueueData [USER.511]
|
|
*/
|
|
int WINAPI WNetUnlockQueueData(LPSTR szQueue)
|
|
{
|
|
FIXME(wnet, "('%s'): stub\n",szQueue);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
|
|
/********************************************************************
|
|
* WNetGetConnection16 [USER.512] reverse-resolves a local device
|
|
*
|
|
* RETURNS
|
|
* - WN_BAD_LOCALNAME lpLocalName makes no sense
|
|
* - WN_NOT_CONNECTED drive is a local drive
|
|
* - WN_MORE_DATA buffer isn't big enough
|
|
* - WN_SUCCESS success (net path in buffer)
|
|
*/
|
|
int WINAPI WNetGetConnection16(LPCSTR lpLocalName,
|
|
LPSTR lpRemoteName, UINT16 *cbRemoteName)
|
|
{
|
|
const char *path;
|
|
|
|
if (lpLocalName[1] == ':')
|
|
{
|
|
int drive = toupper(lpLocalName[0]) - 'A';
|
|
switch(GetDriveType16(drive))
|
|
{
|
|
case DRIVE_CANNOTDETERMINE:
|
|
case DRIVE_DOESNOTEXIST:
|
|
return WN_BAD_LOCALNAME;
|
|
case DRIVE_REMOVABLE:
|
|
case DRIVE_FIXED:
|
|
return WN_NOT_CONNECTED;
|
|
case DRIVE_REMOTE:
|
|
path = DRIVE_GetLabel(drive);
|
|
if (strlen(path) + 1 > *cbRemoteName)
|
|
{
|
|
*cbRemoteName = strlen(path) + 1;
|
|
return WN_MORE_DATA;
|
|
}
|
|
strcpy( lpRemoteName, path );
|
|
*cbRemoteName = strlen(lpRemoteName) + 1;
|
|
return WN_SUCCESS;
|
|
}
|
|
}
|
|
return WN_BAD_LOCALNAME;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetConnectionA [MPR.70]
|
|
*/
|
|
DWORD WINAPI
|
|
WNetGetConnection32A(LPCSTR localname,LPSTR remotename,LPDWORD buflen)
|
|
{
|
|
UINT16 x;
|
|
DWORD ret = WNetGetConnection16(localname,remotename,&x);
|
|
*buflen = x;
|
|
return ret;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetConnectionW [MPR.72]
|
|
*/
|
|
DWORD WINAPI
|
|
WNetGetConnection32W(LPCWSTR localnameW,LPSTR remotenameW,LPDWORD buflen)
|
|
{
|
|
UINT16 x;
|
|
CHAR buf[200];
|
|
LPSTR lnA = HEAP_strdupWtoA(GetProcessHeap(),0,localnameW);
|
|
DWORD ret = WNetGetConnection16(lnA,buf,&x);
|
|
|
|
*buflen = x; /* FIXME: *2 ? */
|
|
lstrcpyAtoW(remotenameW,buf);
|
|
HeapFree(GetProcessHeap(),0,lnA);
|
|
return ret;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetCaps [USER.513]
|
|
*/
|
|
int WINAPI WNetGetCaps(WORD capability)
|
|
{
|
|
switch (capability) {
|
|
case WNNC_SPEC_VERSION:
|
|
{
|
|
return 0x30a; /* WfW 3.11(and apparently other 3.1x) */
|
|
}
|
|
case WNNC_NET_TYPE:
|
|
/* hi byte = network type,
|
|
lo byte = network vendor (Netware = 0x03) [15 types] */
|
|
return WNNC_NET_MultiNet | WNNC_SUBNET_WinWorkgroups;
|
|
|
|
case WNNC_DRIVER_VERSION:
|
|
/* driver version of vendor */
|
|
return 0x100; /* WfW 3.11 */
|
|
|
|
case WNNC_USER:
|
|
/* 1 = WNetGetUser is supported */
|
|
return 1;
|
|
|
|
case WNNC_CONNECTION:
|
|
/* returns mask of the supported connection functions */
|
|
return WNNC_CON_AddConnection|WNNC_CON_CancelConnection
|
|
|WNNC_CON_GetConnections/*|WNNC_CON_AutoConnect*/
|
|
|WNNC_CON_BrowseDialog|WNNC_CON_RestoreConnection;
|
|
|
|
case WNNC_PRINTING:
|
|
/* returns mask of the supported printing functions */
|
|
return WNNC_PRT_OpenJob|WNNC_PRT_CloseJob|WNNC_PRT_HoldJob
|
|
|WNNC_PRT_ReleaseJob|WNNC_PRT_CancelJob
|
|
|WNNC_PRT_SetJobCopies|WNNC_PRT_WatchQueue
|
|
|WNNC_PRT_UnwatchQueue|WNNC_PRT_LockQueueData
|
|
|WNNC_PRT_UnlockQueueData|WNNC_PRT_AbortJob
|
|
|WNNC_PRT_WriteJob;
|
|
|
|
case WNNC_DIALOG:
|
|
/* returns mask of the supported dialog functions */
|
|
return WNNC_DLG_DeviceMode|WNNC_DLG_BrowseDialog
|
|
|WNNC_DLG_ConnectDialog|WNNC_DLG_DisconnectDialog
|
|
|WNNC_DLG_ViewQueueDialog|WNNC_DLG_PropertyDialog
|
|
|WNNC_DLG_ConnectionDialog
|
|
/*|WNNC_DLG_PrinterConnectDialog
|
|
|WNNC_DLG_SharesDialog|WNNC_DLG_ShareAsDialog*/;
|
|
|
|
case WNNC_ADMIN:
|
|
/* returns mask of the supported administration functions */
|
|
/* not sure if long file names is a good idea */
|
|
return WNNC_ADM_GetDirectoryType|WNNC_ADM_DirectoryNotify
|
|
|WNNC_ADM_LongNames/*|WNNC_ADM_SetDefaultDrive*/;
|
|
|
|
case WNNC_ERROR:
|
|
/* returns mask of the supported error functions */
|
|
return WNNC_ERR_GetError|WNNC_ERR_GetErrorText;
|
|
|
|
case WNNC_PRINTMGREXT:
|
|
/* returns the Print Manager version in major and
|
|
minor format if Print Manager functions are available */
|
|
return 0x30e; /* printman version of WfW 3.11 */
|
|
|
|
case 0xffff:
|
|
/* Win 3.11 returns HMODULE of network driver here
|
|
FIXME: what should we return ?
|
|
logonoff.exe needs it, msmail crashes with wrong value */
|
|
return 0;
|
|
|
|
default:
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetDeviceMode [USER.514]
|
|
*/
|
|
int WINAPI WNetDeviceMode(HWND16 hWndOwner)
|
|
{
|
|
FIXME(wnet, "(%04x): stub\n",hWndOwner);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetBrowseDialog [USER.515]
|
|
*/
|
|
int WINAPI WNetBrowseDialog(HWND16 hParent,WORD nType,LPSTR szPath)
|
|
{
|
|
FIXME(wnet, "(%04x,%x,'%s'): stub\n",hParent,nType,szPath);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetUser [USER.516]
|
|
*/
|
|
UINT16 WINAPI WNetGetUser(LPSTR lpLocalName, LPSTR lpUserName, DWORD *lpSize)
|
|
{
|
|
FIXME(wnet, "(%p, %p, %p): stub\n", lpLocalName, lpUserName, lpSize);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetError [USER.519]
|
|
*/
|
|
int WINAPI WNetGetError(LPWORD nError)
|
|
{
|
|
FIXME(wnet, "(%p): stub\n",nError);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetErrorText [USER.520]
|
|
*/
|
|
int WINAPI WNetGetErrorText(WORD nError, LPSTR lpBuffer, LPWORD nBufferSize)
|
|
{
|
|
FIXME(wnet, "(%x,%p,%p): stub\n",nError,lpBuffer,nBufferSize);
|
|
return WN_NET_ERROR;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetRestoreConnection [USER.523]
|
|
*/
|
|
int WINAPI WNetRestoreConnection(HWND16 hwndOwner,LPSTR lpszDevice)
|
|
{
|
|
FIXME(wnet, "(%04x,'%s'): stub\n",hwndOwner,lpszDevice);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetWriteJob [USER.524]
|
|
*/
|
|
int WINAPI WNetWriteJob(HANDLE16 hJob,void *lpData,LPWORD lpcbData)
|
|
{
|
|
FIXME(wnet, "(%04x,%p,%p): stub\n",hJob,lpData,lpcbData);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/********************************************************************
|
|
* WNetConnectDialog [USER.525]
|
|
*/
|
|
UINT16 WINAPI WNetConnectDialog(HWND16 hWndParent, WORD iType)
|
|
{
|
|
FIXME(wnet, "(%04x, %4X): stub\n", hWndParent, iType);
|
|
return WN_SUCCESS;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetDisconnectDialog [USER.526]
|
|
*/
|
|
int WINAPI WNetDisconnectDialog(HWND16 hwndOwner, WORD iType)
|
|
{
|
|
FIXME(wnet, "(%04x,%x): stub\n",hwndOwner,iType);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WnetConnectionDialog [USER.527]
|
|
*/
|
|
UINT16 WINAPI WNetConnectionDialog(HWND16 hWndParent, WORD iType)
|
|
{
|
|
FIXME(wnet, "(%04x, %4X): stub\n", hWndParent, iType);
|
|
return WN_SUCCESS;
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
* WNetViewQueueDialog [USER.528]
|
|
*/
|
|
int WINAPI WNetViewQueueDialog(HWND16 hwndOwner,LPSTR lpszQueue)
|
|
{
|
|
FIXME(wnet, "(%04x,'%s'): stub\n",hwndOwner,lpszQueue);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetPropertyDialog [USER.529]
|
|
*/
|
|
int WINAPI WNetPropertyDialog(HWND16 hwndParent,WORD iButton,
|
|
WORD nPropSel,LPSTR lpszName,WORD nType)
|
|
{
|
|
FIXME(wnet, "(%04x,%x,%x,'%s',%x): stub\n",
|
|
hwndParent,iButton,nPropSel,lpszName,nType);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/*********************************************************************
|
|
* WNetGetDirectoryType [USER.530] Decides whether resource is local
|
|
*
|
|
* RETURNS
|
|
* on success, puts one of the following in *lpType:
|
|
* - WNDT_NETWORK on a network
|
|
* - WNDT_LOCAL local
|
|
*/
|
|
int WINAPI WNetGetDirectoryType16(LPSTR lpName, LPINT16 lpType)
|
|
{
|
|
UINT32 type = GetDriveType32A(lpName);
|
|
|
|
if (type == DRIVE_DOESNOTEXIST)
|
|
type = GetDriveType32A(NULL);
|
|
*lpType = (type==DRIVE_REMOTE)?WNDT_NETWORK:WNDT_NORMAL;
|
|
TRACE(wnet,"%s is %s\n",lpName,(*lpType==WNDT_NETWORK)?
|
|
"WNDT_NETWORK":"WNDT_NORMAL");
|
|
return WN_SUCCESS;
|
|
}
|
|
|
|
/*****************************************************************
|
|
* WNetGetDirectoryTypeA [MPR.109]
|
|
*/
|
|
|
|
UINT32 WINAPI WNetGetDirectoryType32A(LPSTR lpName,void *lpType)
|
|
{
|
|
return WNetGetDirectoryType16(lpName, lpType);
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetDirectoryNotify [USER.531]
|
|
*/
|
|
int WINAPI WNetDirectoryNotify(HWND16 hwndOwner,void *lpDir,WORD wOper)
|
|
{
|
|
FIXME(wnet, "(%04x,%p,%x): stub\n",hwndOwner,lpDir,wOper);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetGetPropertyText [USER.532]
|
|
*/
|
|
int WINAPI WNetGetPropertyText(WORD iButton, WORD nPropSel, LPSTR lpszName,
|
|
LPSTR lpszButtonName, WORD cbButtonName, WORD nType)
|
|
{
|
|
FIXME(wnet, "(%04x,%04x,'%s','%s',%04x): stub\n",
|
|
iButton,nPropSel,lpszName,lpszButtonName, nType);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
|
|
/**************************************************************************
|
|
* WNetCloseEnum [USER.???]
|
|
*/
|
|
UINT16 WINAPI WNetCloseEnum(HANDLE16 hEnum)
|
|
{
|
|
FIXME(wnet, "(%04x): stub\n", hEnum);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetEnumResource [USER.???]
|
|
*/
|
|
UINT16 WINAPI WNetEnumResource(HANDLE16 hEnum, DWORD cRequ,
|
|
DWORD *lpCount, LPVOID lpBuf)
|
|
{
|
|
FIXME(wnet, "(%04x, %08lX, %p, %p): stub\n",
|
|
hEnum, cRequ, lpCount, lpBuf);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetOpenEnum [USER.???]
|
|
*/
|
|
UINT16 WINAPI WNetOpenEnum16(DWORD dwScope, DWORD dwType,
|
|
LPNETRESOURCE16 lpNet, HANDLE16 *lphEnum)
|
|
{
|
|
FIXME(wnet, "(%08lX, %08lX, %p, %p): stub\n",
|
|
dwScope, dwType, lpNet, lphEnum);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetOpenEnumA [MPR.92]
|
|
*/
|
|
UINT32 WINAPI WNetOpenEnum32A(DWORD dwScope, DWORD dwType, DWORD dwUsage,
|
|
LPNETRESOURCE32A lpNet, HANDLE32 *lphEnum)
|
|
{
|
|
FIXME(wnet, "(%08lX, %08lX, %08lX, %p, %p): stub\n",
|
|
dwScope, dwType, dwUsage, lpNet, lphEnum);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/* ****************************************************************
|
|
* WNetGetResourceInformationA [MPR.80]
|
|
* */
|
|
|
|
DWORD WINAPI
|
|
WNetGetResourceInformation32A(
|
|
LPNETRESOURCE32A netres,LPVOID buf,LPDWORD buflen,LPSTR systemstr
|
|
) {
|
|
FIXME(wnet,"(%p,%p,%p,%p): stub!\n",netres,buf,buflen,systemstr);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
/**************************************************************************
|
|
* WNetCachePassword [MPR.52] Saves password in cache
|
|
*
|
|
* RETURNS
|
|
* Success: WN_SUCCESS
|
|
* Failure: WNACCESS_DENIED, WN_BAD_PASSWORD, WN_BADVALUE, WN_NET_ERROR,
|
|
* WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
|
|
*/
|
|
DWORD WINAPI WNetCachePassword(
|
|
LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
|
|
WORD cbResource, /* [in] Size of name */
|
|
LPSTR pbPassword, /* [in] Buffer containing password */
|
|
WORD cbPassword, /* [in] Size of password */
|
|
BYTE nType) /* [in] Type of password to cache */
|
|
{
|
|
FIXME(mpr,"(%s,%d,%s,%d,%d): stub\n", pbResource,cbResource,
|
|
pbPassword,cbPassword,nType);
|
|
return WN_SUCCESS;
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
|
* WNetGetCachedPassword [MPR.69] Retrieves password from cache
|
|
*
|
|
* RETURNS
|
|
* Success: WN_SUCCESS
|
|
* Failure: WNACCESS_DENIED, WN_BAD_PASSWORD, WN_BAD_VALUE,
|
|
* WN_NET_ERROR, WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
|
|
*/
|
|
DWORD WINAPI WNetGetCachedPassword(
|
|
LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
|
|
WORD cbResource, /* [in] Size of name */
|
|
LPSTR pbPassword, /* [out] Buffer to receive password */
|
|
LPWORD pcbPassword, /* [out] Receives size of password */
|
|
BYTE nType) /* [in] Type of password to retrieve */
|
|
{
|
|
FIXME(mpr,"(%s,%d,%p,%d,%d): stub\n",
|
|
pbResource,cbResource,pbPassword,*pcbPassword,nType);
|
|
return WN_ACCESS_DENIED;
|
|
}
|
|
|
|
/*****************************************************************
|
|
* MultinetGetConnectionPerformanceA [MPR.25]
|
|
*
|
|
* RETURNS
|
|
* Success: NO_ERROR
|
|
* Failure: ERROR_NOT_SUPPORTED, ERROR_NOT_CONNECTED,
|
|
* ERROR_NO_NET_OR_BAD_PATH, ERROR_BAD_DEVICE,
|
|
* ERROR_BAD_NET_NAME, ERROR_INVALID_PARAMETER,
|
|
* ERROR_NO_NETWORK, ERROR_EXTENDED_ERROR
|
|
*/
|
|
DWORD WINAPI MultinetGetConnectionPerformance32A(
|
|
LPNETRESOURCE32A lpNetResource,
|
|
LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct
|
|
) {
|
|
FIXME(mpr,"(%p,%p): stub\n",lpNetResource,lpNetConnectInfoStruct);
|
|
return WN_NO_NETWORK;
|
|
}
|
|
|
|
|
|
/*****************************************************************
|
|
* [MPR.22]
|
|
*/
|
|
|
|
DWORD WINAPI _MPR_22(DWORD x)
|
|
{
|
|
FIXME(mpr,"(%lx): stub\n",x);
|
|
return 0;
|
|
}
|
|
|
|
/*****************************************************************
|
|
* [MPR.25]
|
|
*/
|
|
|
|
DWORD WINAPI _MPR_25(DWORD x, DWORD y)
|
|
{
|
|
FIXME(mpr,"(%lx,%lx): stub\n",x,y);
|
|
return 1;
|
|
}
|
|
|