mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
3.1 KiB
203 lines
3.1 KiB
/*++
|
|
|
|
Copyright (c) 1993 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
api.h
|
|
|
|
Abstract:
|
|
|
|
This module contains exposed APIs that is used by the
|
|
NetWare Control Panel Applet.
|
|
|
|
Author:
|
|
|
|
Yi-Hsin Sung 15-Jul-1993
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _NWAPI_INCLUDED_
|
|
#define _NWAPI_INCLUDED_
|
|
|
|
#include <nwcons.h>
|
|
|
|
//
|
|
// Bitmask for print options
|
|
//
|
|
|
|
#define NW_PRINT_SUPPRESS_FORMFEED 0x08
|
|
#define NW_PRINT_PRINT_BANNER 0x80
|
|
#define NW_PRINT_PRINT_NOTIFY 0x10
|
|
|
|
//
|
|
// Flags for logon script support.
|
|
//
|
|
|
|
#define NW_LOGONSCRIPT_DISABLED 0x00000000
|
|
#define NW_LOGONSCRIPT_ENABLED 0x00000001
|
|
#define NW_LOGONSCRIPT_4X_ENABLED 0x00000002
|
|
#define NW_LOGONSCRIPT_DEFAULT NW_LOGONSCRIPT_DISABLED
|
|
#define NW_LOGONSCRIPT_DEBUG 0x00000800
|
|
|
|
//
|
|
// Values for turning on Sync login script flags.
|
|
//
|
|
|
|
#define SYNC_LOGONSCRIPT 0x1
|
|
#define RESET_SYNC_LOGONSCRIPT 0x2
|
|
|
|
//
|
|
// Bitmask for gateway redirections
|
|
//
|
|
#define NW_GW_UPDATE_REGISTRY 0x01
|
|
#define NW_GW_CLEANUP_DELETED 0x02
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
DWORD
|
|
NwQueryInfo(
|
|
OUT PDWORD pnPrintOption,
|
|
OUT LPWSTR *ppszPreferredSrv
|
|
);
|
|
|
|
DWORD
|
|
NwSetInfoInRegistry(
|
|
IN DWORD nPrintOption,
|
|
IN LPWSTR pszPreferredSrv
|
|
);
|
|
|
|
DWORD
|
|
NwSetLogonOptionsInRegistry(
|
|
IN DWORD nLogonScriptOptions
|
|
);
|
|
|
|
DWORD
|
|
NwQueryLogonOptions(
|
|
OUT PDWORD pnLogonScriptOptions
|
|
);
|
|
|
|
DWORD
|
|
NwSetInfoInWksta(
|
|
IN DWORD nPrintOption,
|
|
IN LPWSTR pszPreferredSrv
|
|
);
|
|
|
|
DWORD
|
|
NwSetLogonScript(
|
|
IN DWORD ScriptOptions
|
|
);
|
|
|
|
DWORD
|
|
NwValidateUser(
|
|
IN LPWSTR pszPreferredSrv
|
|
);
|
|
|
|
DWORD
|
|
NwEnumGWDevices(
|
|
LPDWORD Index,
|
|
LPBYTE Buffer,
|
|
DWORD BufferSize,
|
|
LPDWORD BytesNeeded,
|
|
LPDWORD EntriesRead
|
|
) ;
|
|
|
|
DWORD
|
|
NwAddGWDevice(
|
|
LPWSTR DeviceName,
|
|
LPWSTR RemoteName,
|
|
LPWSTR AccountName,
|
|
LPWSTR Password,
|
|
DWORD Flags
|
|
) ;
|
|
|
|
DWORD
|
|
NwDeleteGWDevice(
|
|
LPWSTR DeviceName,
|
|
DWORD Flags
|
|
) ;
|
|
|
|
DWORD
|
|
NwEnumConnections(
|
|
HANDLE hEnum,
|
|
LPDWORD lpcCount,
|
|
LPVOID lpBuffer,
|
|
LPDWORD lpBufferSize,
|
|
BOOL fImplicitConnections
|
|
);
|
|
|
|
DWORD
|
|
NwLibSetEverybodyPermission(
|
|
HKEY hKey,
|
|
DWORD dwAccessPermission
|
|
);
|
|
|
|
DWORD
|
|
NwQueryGatewayAccount(
|
|
LPWSTR AccountName,
|
|
DWORD AccountNameLen,
|
|
LPDWORD AccountCharsNeeded,
|
|
LPWSTR Password,
|
|
DWORD PasswordLen,
|
|
LPDWORD PasswordCharsNeeded
|
|
);
|
|
|
|
DWORD
|
|
NwSetGatewayAccount(
|
|
LPWSTR AccountName,
|
|
LPWSTR Password
|
|
);
|
|
|
|
DWORD
|
|
NwLogonGatewayAccount(
|
|
LPWSTR AccountName,
|
|
LPWSTR Password,
|
|
LPWSTR Server
|
|
);
|
|
|
|
DWORD
|
|
NwRegisterGatewayShare(
|
|
IN LPWSTR ShareName,
|
|
IN LPWSTR DriveName
|
|
);
|
|
|
|
DWORD
|
|
NwClearGatewayShare(
|
|
IN LPWSTR ShareName
|
|
);
|
|
|
|
DWORD
|
|
NwCleanupGatewayShares(
|
|
VOID
|
|
);
|
|
|
|
|
|
VOID
|
|
MapSpecialJapaneseChars(
|
|
LPSTR lpszA,
|
|
WORD length
|
|
);
|
|
|
|
VOID
|
|
UnmapSpecialJapaneseChars(
|
|
LPSTR lpszA,
|
|
WORD length
|
|
);
|
|
|
|
LPSTR
|
|
NwDupStringA(
|
|
const LPSTR lpszA,
|
|
WORD length
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#define NwFreeStringA(lp) if((lp) != NULL) { (void)LocalFree((lp)); }
|
|
|
|
#endif
|