2020-09-30 17:12:29 +02:00

97 lines
2.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
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_