// hash.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include <ntsecapi.h>
////////////////////////////////////////////////////////////////////////////////
// Exported function
// -----------------
// Initialization of Password filter. Returns to LSA the result of WriteToLog.
// Will return FALSE if it encounters problems whilst trying to log.
////////////////////////////////////////////////////////////////////////////////
BOOLEAN __stdcall InitializeChangeNotify(void)
{
//return WriteToLog("InitializeChangeNotify()");
return 0;
}
////////////////////////////////////////////
// Exported function
// -----------------
// This function is called by LSA when password
// was successfully changed.
//
// This implementation just returns 0 (Success)
NTSTATUS __stdcall PasswordChangeNotify(
PUNICODE_STRING UserName,
ULONG RelativeId,
PUNICODE_STRING NewPassword
)
{
return 0;
}
BOOLEAN __stdcall PasswordFilter(
PUNICODE_STRING AccountName,
PUNICODE_STRING FullName,
PUNICODE_STRING Password,
BOOLEAN SetOperation
)
{
return 1;
}