1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
wine/misc/network.c
Alexandre Julliard dadf78ffa9 Release 980517
Sun May 17 16:23:56 1998  Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>

	* [file/profile.c]
	Fix the return value of PROFILE_GetSection

	* [misc/crtdll.c]
	Do _getdrive, fix _chdrive.

	* [misc/commdlg.c]
	First cut at ChooseColor[WA].

	* [misc/network.c]
	Do something sensible for WNetGetDirectoryType16.

Sun May 17 10:21:35 1998  Andreas Mohr <100.30936@germany.net>

	* [controls/menu.c]
	Fixed disabled sub menus with MF_BYPOSITION that were not disabled.

	* [misc/crtdll.c] [relay32/crtdll.spec] [include/winerror.h]
	Implemented fscanf, fsetpos, _access, _fpreset (thanks to Uwe Bonnes),
	and _ltoa. 

	* [loader/task.c]
	MakeProcInstance: must use CURRENT_DS if hInst == NULL.

	* [misc/shell.c]
	SHELL_GetResourceTable, InternalExtractIcon: fixed broken .ICO handling

	* [windows/winpos.c]
	DeferWindowPos: removed "same parent" requirement.
	Which doc states that this is required ?

Sat May 16 20:08:11 1998  Alexandre Julliard  <julliard@lrc.epfl.ch>

	* [loader/module.c] [loader/ne/module.c]
	More NE module cleanups.

	* [loader/task.c]
	Fixed SwitchStackBack().

Fri May 15 10:04:27 1998  Marcus Meissner <marcus@jet.franken.de>

	* [configure.in][inlcude/acconfig.h]
	Fixed broken OSS check, added check for working sigaltstack,
	fixed broken statfs checks on some linux systems.

	* [files/directory.c][loader/pe_image.c][relay32/builtin.c]
	  [loader/module.c]
	Added handling of win32 module pathnames.

	* [relay32/wnaspi32.spec]
	New file.

	* [misc/lzexpand.c]
	LZCopy auto-decompresses LZ compressed files, even if they are not
	specially flagged. Fixes some InstallShield problems.

	* [misc/registry.c]
	Some fixes for RegQueryInfoKey (reference program monkey.exe
	from Win32 SDK works now better). Probably still has faults.

Fri May 15 08:58:58 1998  Martin Boehme <boehme@informatik.mu-luebeck.de>

	* [graphics/mapping.c] [include/dc.h] [include/gdi.h] [objects/dc.c]
	Reworked the way world transformations and mapping modes are handled
	so that both of these transformations can be computed in a single
	step.

	* [graphics/painting.c] [graphics/path.c] [include/path.h]
	More GDI path support.

	* [graphics/x11drv/graphics.c]
	Fixed the return value of GRAPH_DrawArc for the zero height /
	zero width case to reflect Windows' behaviour.

	* [include/windows.h] [relay32/gdi32.spec] [objects/dc.c]
	Implemented ModifyWorldTransform and CombineTransform.

Tue May 14 18:03:46 1998  Eric Kohl <ekohl@abo.rhein-zeitung.de>

	* [controls/commctrl.c][relay32/comctl32.spec]
	  [controls/*.c][include/*.h]
	Implemented InitCommonControlsEx (dll version 4.72 compatible).
	InitCommonControls calls ImageCommonControlsEx.
	Registering code of the common controls had to be changed
	(see XXXX_Register functions).

	* [controls/status.c][include/commctrl.h][include/status.h]
	Implemented most new features and fixed the look and feel.

	* [contols/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
	Implemented MenuHelp (incomplete).

	* [controls/status.c][controls/progress.c]
	Changed allocation strategy for control specific memory.

	* [controls/header.c][include/header.h][include/commctrl.h]
	First implementation of header control.

	* [windows/defwnd.c][windows/syscolors.c]
	Fixed default control colors for Win95 look.

	* [windows/nonclient.c]
	Fixed off by one error for Win95 look. Top border of child windows
	should be visible.

	* [misc/imagelist.h]
	Improved documentation and fixed some bugs.

Thu May 14 15:42:21 1998  Robert Wilhelm  <robert@physiol.med.tu-muenchen.de>

	* [relay32/crtdll.spec]
	Added hypot,j0,j1,jn and ceil.

Wed May 13 19:10:10 1998  Pascal Cuoq <pcuoq@ens-lyon.fr>

	* [controls/listbox.c]
	Item height is now exactly font height.
	Wine listboxes now behave like Windows' when they are 
	created without WS_VSCROLL but the program subsequently 
	calls ShowScrollBar or SetScrollInfo.

Wed May 13 18:33:01 1998  Ulrich Weigand <weigand@informatik.uni-erlangen.de>

	* [relay32/relay386.c]
	Restore ES also in the non-debug case.

	* [windows/event.c]
	Bugfix: Blocking TSXNextEvent could deadlock Wine.

	* [win32/process.c] [windows/message.c]
	Silly stubs for MsgWaitForMultipleObjects / PostThreadMessage
	that make some programs run better.

	* [windows/winproc.c]
	WINPROC_MapMsg32Ato16/16To32A: added WM_NOTIFY.  

        * [win32/kernel32.c]
	Added 16->32 thunking and improved 32->16 thunking functions.

	* [tools/build.c]
	Added new variant of CallFrom16 stub for use with Win95 thunks.

	* [if1632/kernel.spec] [if1632/builtin.c] [win32/kernel32.c]
	Added a few undocumented KERNEL functions.

	* [loader/ne/module.c] [loader/ne/segment.c]
	Call DllEntryPoint for 16-bit DLLs with subsystem >= 4.0.

	* [win32/kernel32.spec] [win32/wow32.spec] [win32/ordinals.c]
	Use names from the Oct 94 beta release for undoc. functions.

Wed May 13 14:18:26 1998  Matthew Becker <mbecker@glasscity.net>

	* [misc/registry.c]
	Code cleanup.

	* [misc/cpu.c]
	Commented out the registry puts temporarily.

	* [programs/regtest/*]
	New registry testing program.

Tue May 12 22:54:03 1998  Michael Mess <michael@kawo2.rwth-aachen.de>

	* [multimedia/audio.c]
	ioctl's do not commute in /dev/dsp initialization.

Tue May 12 20:11:42 1998  Karl Garrison <karlos@eznet.net>

	* [win32/console.c]
	Implemented SetConsoleTextAttribute, FillConsoleOutputCharacter.
	Improved cursor positioning.
	This allows for text colors in an xterm, rxvt, or console.

Tue May 12 17:57:52 1998  Petter Reinholdtsen <pere@td.org.uit.no>

	* [Makefile.in]
	Create prefix/{bin|lib} directories if missing during install.

Sun May 10 19:37:51 1998  Jan Willamowius <jan@janhh.shnet.org>

	* [multimedia/mmio.c]
	Have mmioSetBuffer return success (0), so Corel Draw 4
	keeps working. (IO is still unbuffered)

Wed May  6 16:57:55 1998  James Juran <jrj120@psu.edu>

        * [Makefile.in] [Make.rules.in]
	Changed "make clean" to remove `textedit` backup files (*%)

	* [controls/menu.c][graphics/x11drv/xfont.c][include/libres.h]
	  [loader/main.c][loader/ne/module.c][scheduler/synchro.c]
	  [win32/time.c][windows/winpos.c][include/windows.h]
	Fixed miscellaneous compilation warnings.

	* [misc/main.c][miscemu/main.c][include/main.h]
	Moved prototypes to new include file main.h, various cleanups.

Tue May  5 21:05:06 1998  Morten Welinder  <terra@diku.dk>

	* [misc/winsock.c]
	Don't refer to __FreeBSD__ when HAVE_STRERROR is meant.

	* [misc/debugstr.c]
	For debug_dumpstrSend, send strings to stderr.

Tue May  5 21:47:40 1998  Huw D M Davies <h.davies1@physics.oxford.ac.uk>

	* [objects/region.c]
	Fix for REGION_RegionOp() if newReg is one of the source regions.

Tue May  5 18:27:32 1998  Jim Peterson <jspeter@roanoke.infi.net>

	* [misc/main.c]
	Add '-h/-help' option and print WINE_RELEASE_INFO with usage message.

	* [misc/spy.c]
	Realign trace messages.

Tue May  5 15:46:47 1998  Donnie V. Savage <dsavage@cisco.com>

	* [graphics/ddraw.c]
	Fixed compile warnings

	* [misc/winsock.c]
	Warnings should not be errors.

Tue May  5 13:40:42 1998  Jim Peterson <jspeter@roanoke.infi.net>

	* [*/*]
	Remove many warnings through explicit casts, added #include's,
	and corrected printf formats.

Tue May  5 05:18:12 1998  Insomnia (Stea Greene) <insomnia@core.binghamton.edu>

	* [graphics/ddraw.c]
	Kept unchanged portion of old palette when changing only a few
	palette entries.  Really should only deallocate the changed cells.
	This make StarCraft work almost perfectly (sound overflows still
	cause static).

Mon May  4 15:04:57 1998  Alexander V. Lukyanov <lav@long.yar.ru>

	* [misc/lstr.c]
	FormatMessage: terminate string on %0, undo linefeed strip.
1998-05-17 17:13:43 +00:00

633 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 <stdio.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(LPSTR lpNetPath, LPSTR lpPassWord,
LPSTR lpLocalName)
{
return WNetAddConnection32A(lpNetPath, lpPassWord, lpLocalName);
}
/* [MPR.50] */
UINT32 WNetAddConnection32A(LPSTR NetPath, LPSTR PassWord,
LPSTR LocalName)
{
FIXME(wnet, "('%s', %p, '%s'): stub\n",
NetPath, PassWord, LocalName);
return WN_NO_NETWORK;
}
/* [MPR.51] */
UINT32 WNetAddConnection32W(LPWSTR NetPath,
LPWSTR PassWord,
LPWSTR LocalName)
{
FIXME(wnet, " stub!\n");
return WN_NO_NETWORK;
}
/* ****************************************************************
* WNetAddConnection2_32A [MPR.46]
*/
UINT32
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
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 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 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(LPSTR 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;
}
/**************************************************************************
* 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(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;
}
/**************************************************************************
* 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,
LPNETRESOURCE32A lpNet, HANDLE32 *lphEnum)
{
FIXME(wnet, "(%08lX, %08lX, %p, %p): stub\n",
dwScope, dwType, 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 1;
}