Source code of Windows XP (NT5)
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.

70 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1993-1995, Microsoft Corp. All rights reserved.
  3. Module Name:
  4. nwsutil.h
  5. Abstract:
  6. This is the public include file for some of the functions used by
  7. User Manager and Server Manager.
  8. Author:
  9. Congpa You 02-Dec-1993 Created.
  10. Revision History:
  11. --*/
  12. #ifndef _NWSUTIL_H_
  13. #define _NWSUTIL_H_
  14. #include <crypt.h>
  15. #include <fpnwname.h>
  16. /** Function Prototypes **/
  17. NTSTATUS GetNcpSecretKey( CHAR *pchNWSecretKey );
  18. NTSTATUS
  19. GetRemoteNcpSecretKey (
  20. PUNICODE_STRING SystemName,
  21. CHAR *pchNWSecretKey
  22. );
  23. BOOL IsNetWareInstalled( VOID );
  24. ULONG
  25. MapRidToObjectId(
  26. DWORD dwRid,
  27. LPWSTR pszUserName,
  28. BOOL fNTAS,
  29. BOOL fBuiltin
  30. );
  31. ULONG
  32. SwapObjectId(
  33. ULONG ulObjectId
  34. ) ;
  35. NTSTATUS InstallNetWare( LPWSTR lpNcpSecretKey );
  36. VOID
  37. Shuffle(
  38. UCHAR *achObjectId,
  39. UCHAR *szUpperPassword,
  40. int iPasswordLen,
  41. UCHAR *achOutputBuffer
  42. );
  43. //Encryption function
  44. NTSTATUS ReturnNetwareForm (const char * pszSecretValue,
  45. DWORD dwUserId,
  46. const WCHAR * pchNWPassword,
  47. UCHAR * pchEncryptedNWPassword);
  48. #endif // _NWSUTIL_H_