//+----------------------------------------------------------------------- // // Microsoft Windows // // Copyright (c) Microsoft Corporation 1992 - 1996 // // File: global.h // // Contents: global include file for NTDigest security package // // // History: KDamour 15Mar00 Stolen from msv_sspi\global.h // //------------------------------------------------------------------------ #ifndef NTDIGEST_GLOBAL_H #define NTDIGEST_GLOBAL_H #ifndef UNICODE #define UNICODE #endif // UNICODE #ifdef __cplusplus extern "C" { #endif // __cplusplus #include #include #include #include #include #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif // WIN32_LEAN_AND_MEAN #include #ifndef RPC_NO_WINDOWS_H #define RPC_NO_WINDOWS_H #endif // RPC_NO_WINDOWS_H #include #ifndef SECURITY_WIN32 #define SECURITY_WIN32 #endif // SECURITY_WIN32 #define SECURITY_PACKAGE #define SECURITY_NTLM #include #include // #include #include #include #include #include #include #include #include #include // Local includes for NT Digest Access SSP #include "wdigest.h" /* Prototype functions for package */ // // Macros for manipulating globals // #ifdef EXTERN #undef EXTERN #endif #ifdef NTDIGEST_GLOBAL #define EXTERN #else #define EXTERN extern #endif // NTDIGEST_GLOBAL // Copies a CzString to a String (memory alloc and copy) NTSTATUS StringCharDuplicate( OUT PSTRING DestinationString, IN OPTIONAL char *czSource); // Allocates cb bytes to STRING Buffer NTSTATUS StringAllocate(IN PSTRING pString, IN USHORT cb); // Clears a String and releases the memory NTSTATUS StringFree(IN PSTRING pString); // Allocate memory in LSA or user mode PVOID DigestAllocateMemory(IN ULONG BufferSize); // De-allocate memory from DigestAllocateMemory VOID DigestFreeMemory(IN PVOID Buffer); #ifdef __cplusplus } #endif // __cplusplus #endif // NTDIGEST_GLOBAL_H