1. // hash.cpp : Defines the exported functions for the DLL application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <ntsecapi.h>
  6.  
  7. ////////////////////////////////////////////////////////////////////////////////
  8. // Exported function
  9. // -----------------
  10. // Initialization of Password filter. Returns to LSA the result of WriteToLog.
  11. // Will return FALSE if it encounters problems whilst trying to log.
  12. ////////////////////////////////////////////////////////////////////////////////
  13. BOOLEAN __stdcall InitializeChangeNotify(void)
  14. {
  15. //return WriteToLog("InitializeChangeNotify()");
  16. return 0;
  17. }
  18.  
  19. ////////////////////////////////////////////
  20. // Exported function
  21. // -----------------
  22. // This function is called by LSA when password
  23. // was successfully changed.
  24. //
  25. // This implementation just returns 0 (Success)
  26. NTSTATUS __stdcall PasswordChangeNotify(
  27. PUNICODE_STRING UserName,
  28. ULONG RelativeId,
  29. PUNICODE_STRING NewPassword
  30. )
  31. {
  32. return 0;
  33. }
  34.  
  35. BOOLEAN __stdcall PasswordFilter(
  36. PUNICODE_STRING AccountName,
  37. PUNICODE_STRING FullName,
  38. PUNICODE_STRING Password,
  39. BOOLEAN SetOperation
  40. )
  41. {
  42. return 1;
  43. }