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.
 
 
 
 
 
 

106 lines
1.6 KiB

/*++
Copyright (c) 1996 Microsoft Corporation
This program is released into the public domain for any purpose.
Module Name:
authfilt.h
Abstract:
This module contains the common definitions for the authentication filter
sample
--*/
#ifndef _AUTHFILT_H_
#define _AUTHFILT_H_
//
// Constants
//
#define ISWHITE( ch ) ((ch) && ((ch) == ' ' || (ch) == '\t' || \
(ch) == '\n' || (ch) == '\r'))
#if DBG
#define DEST buff
#define DbgWrite( x ) { \
char buff[256]; \
wsprintf x; \
OutputDebugString( buff ); \
}
#else
#define DbgWrite
#endif
//
// Prototypes
//
//
// Database routines
//
BOOL
InitializeUserDatabase(
VOID
);
BOOL
ValidateUser(
CHAR * pszUserName,
CHAR * pszPassword,
BOOL * pfValid
);
BOOL
LookupUserInDb(
IN CHAR * pszUser,
OUT BOOL * pfFound,
OUT CHAR * pszPassword,
OUT CHAR * pszNTUser,
OUT CHAR * pszNTUserPassword
);
VOID
TerminateUserDatabase(
VOID
);
//
// Cache routines
//
BOOL
InitializeCache(
VOID
);
BOOL
LookupUserInCache(
CHAR * pszUserName,
BOOL * pfFound,
CHAR * pszPassword,
CHAR * pszNTUser,
CHAR * pszNTUserPassword
);
BOOL
AddUserToCache(
CHAR * pszUserName,
CHAR * pszPassword,
CHAR * pszNTUser,
CHAR * pszNTUserPassword
);
VOID
TerminateCache(
VOID
);
#endif //_AUTHFILT_H_