Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

102 lines
1.9 KiB

//+-----------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (c) Microsoft Corporation 1991 - 1992
//
// File: KSECDD.H
//
// Contents: Structures and defines for the security device driver
//
//
// History: 19 May 92, RichardW Created
//
//------------------------------------------------------------------------
#ifndef __KSECDD_H__
#define __KSECDD_H__
#include <ntos.h>
#include <spseal.h> // prototypes for seal & unseal
SECURITY_STATUS SEC_ENTRY
DeleteUserModeContext(
PCtxtHandle phContext // Contxt to delete
);
SECURITY_STATUS SEC_ENTRY
InitUserModeContext(
PCtxtHandle phContext, // Contxt to init
PSecBuffer pContextBuffer
);
SECURITY_STATUS
InitializePackages(void);
VOID * SEC_ENTRY
SecAllocate(ULONG cbMemory);
void SEC_ENTRY
SecFree(PVOID pvMemory);
SECURITY_STATUS SEC_ENTRY
IsOkayToExec(PClient * ppClient);
BOOLEAN
GetTokenBuffer(
IN PSecBufferDesc TokenDescriptor OPTIONAL,
IN ULONG BufferIndex,
OUT PVOID * TokenBuffer,
OUT PULONG TokenSize,
IN BOOLEAN ReadonlyOK
);
BOOLEAN
GetSecurityToken(
IN PSecBufferDesc TokenDescriptor OPTIONAL,
IN ULONG BufferIndex,
OUT PSecBuffer * TokenBuffer
);
// Global Variables:
extern KSPIN_LOCK ConnectSpinLock;
extern BOOLEAN fInitialized;
#define DEB_ERROR 0x1
#define DEB_WARN 0x2
#define DEB_TRACE 0x4
#ifdef POOL_TAGGING
#define ExAllocatePool(a,b) ExAllocatePoolWithTag(a, b, 'cesK')
#define ExAllocatePoolWithQuota(a,b) ExAllocatePoolWithQuotaTag(a, b, 'cesK')
#endif
#if DBG
void
KsecDebugOut(unsigned long Mask,
const char * Format,
...);
#define DebugStmt(x) x
#define DebugLog(x) KsecDebugOut x
#else
#define DebugStmt(x)
#define DebugLog(x)
#endif
#endif // __KSECDD_H__