mirror of https://github.com/lianthony/NT4.0
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.
96 lines
2.8 KiB
96 lines
2.8 KiB
/*++
|
|
|
|
Copyright (c) 1990 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
samclip.h
|
|
|
|
Abstract:
|
|
|
|
This file contains definitions needed by SAM client stubs.
|
|
|
|
Author:
|
|
|
|
Jim Kelly (JimK) 4-July-1991
|
|
|
|
Environment:
|
|
|
|
User Mode - Win32
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
#ifndef _NTSAMP_CLIENT_
|
|
#define _NTSAMP_CLIENT_
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// Includes //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <nt.h>
|
|
#include <ntrtl.h> // DbgPrint prototype
|
|
#include <rpc.h> // DataTypes and runtime APIs
|
|
#include <nturtl.h> // needed for winbase.h
|
|
#include <windows.h> // LocalAlloc
|
|
//#include <winbase.h> // LocalAlloc
|
|
|
|
#include <string.h> // strlen
|
|
#include <stdio.h> // sprintf
|
|
//#include <tstring.h> // Unicode string macros
|
|
|
|
#include <ntrpcp.h> // prototypes for MIDL user functions
|
|
#include <samrpc_c.h> // midl generated client SAM RPC definitions
|
|
#include <lmcons.h> // To get LM password length
|
|
#include <ntsam.h>
|
|
#include <ntsamp.h>
|
|
#include <ntlsa.h> // for LsaOpenPolicy...
|
|
#include <rc4.h> // rc4, rc4_key
|
|
#include <rpcndr.h> // RpcSsDestroyContext
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// Defines //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// data types //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// Prototypes //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
void
|
|
SampSecureUnbind (
|
|
RPC_BINDING_HANDLE BindingHandle
|
|
);
|
|
|
|
RPC_BINDING_HANDLE
|
|
SampSecureBind(
|
|
LPWSTR ServerName,
|
|
ULONG AuthnLevel
|
|
);
|
|
|
|
#endif // _NTSAMP_CLIENT_
|