From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/nw/svcdlls/nwwks/client/nwclient.h | 132 +++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 private/nw/svcdlls/nwwks/client/nwclient.h (limited to 'private/nw/svcdlls/nwwks/client/nwclient.h') diff --git a/private/nw/svcdlls/nwwks/client/nwclient.h b/private/nw/svcdlls/nwwks/client/nwclient.h new file mode 100644 index 000000000..5afc4b87e --- /dev/null +++ b/private/nw/svcdlls/nwwks/client/nwclient.h @@ -0,0 +1,132 @@ +/*++ + +Copyright (c) 1993 Microsoft Corporation + +Module Name: + + nwclient.h + +Abstract: + + Common header for Workstation client-side code. + +Author: + + Rita Wong (ritaw) 25-Feb-1993 + +Environment: + + User Mode - Win32 + +Revision History: + +--*/ + +#ifndef _NWCLIENT_INCLUDED_ +#define _NWCLIENT_INCLUDED_ + +#include + +#include +#include +#include +#include + +#include + +#include + +// +// Debug trace level bits for turning on/off trace statements in the +// Workstation service +// + +// +// Initialization and reading info from registry +// +#define NW_DEBUG_INIT 0x00000001 + +// +// Connection APIs +// +#define NW_DEBUG_CONNECT 0x00000002 + +// +// Logon APIs +// +#define NW_DEBUG_LOGON 0x00000004 + +// +// Enum APIs +// +#define NW_DEBUG_ENUM 0x00000008 + +// +// Other APIs +// +#define NW_DEBUG_OTHER 0x00000010 + +// +// Print APIs +// +#define NW_DEBUG_PRINT 0x00000020 + +// +// hInstance of the dll ( nwprovau.dll ) +// +extern HMODULE hmodNW; +extern BOOL fIsWinnt; + +// +// Debug stuff +// + +#if DBG + +extern DWORD NwProviderTrace; + +#define IF_DEBUG(DebugCode) if (NwProviderTrace & NW_DEBUG_ ## DebugCode) + +#define STATIC + +#else + +#define IF_DEBUG(DebugCode) if (FALSE) + +#define STATIC static + +#endif // DBG + +DWORD +NwpMapRpcError( + IN DWORD RpcError + ); + +DWORD +NwpConvertSid( + IN PSID Sid, + OUT LPWSTR *UserSidString + ); + +DWORD +NwpCacheCredentials( + IN LPWSTR RemoteName, + IN LPWSTR UserName, + IN LPWSTR Password + ); + +BOOL +NwpRetrieveCachedCredentials( + IN LPWSTR RemoteName, + OUT LPWSTR *UserName, + OUT LPWSTR *Password + ); + +#ifndef NT1057 +VOID +NwCleanupShellExtensions( + VOID + ); +#endif + +#endif // _NWCLIENT_INCLUDED_ -- cgit v1.2.3