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.

105 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. tslogon.hxx
  5. Abstract:
  6. This file declares logon related functions
  7. Environment:
  8. Win32 User Mode
  9. Project:
  10. Internet Services Common DLL
  11. --*/
  12. #ifndef _TSLOGON_HXX_
  13. #define _TSLOGON_HXX_
  14. #ifndef dllexp
  15. #define dllexp __declspec( dllexport )
  16. #endif
  17. BOOL
  18. Logon32Initialize(
  19. IN PVOID hMod,
  20. IN ULONG Reason,
  21. IN PCONTEXT Context);
  22. dllexp
  23. BOOL
  24. WINAPI
  25. LogonNetUserW(
  26. PWSTR lpszUsername,
  27. PWSTR lpszDomain,
  28. PSTR lpszPassword,
  29. PWSTR lpszWorkstation,
  30. DWORD dwSubAuth,
  31. DWORD dwLogonType,
  32. DWORD dwLogonProvider,
  33. HANDLE * phToken,
  34. LARGE_INTEGER * pExpiry
  35. );
  36. dllexp
  37. BOOL
  38. WINAPI
  39. LogonNetUserA(
  40. PSTR lpszUsername,
  41. PSTR lpszDomain,
  42. PSTR lpszPassword,
  43. PSTR lpszWorkstation,
  44. DWORD dwSubAuth,
  45. DWORD dwLogonType,
  46. DWORD dwLogonProvider,
  47. HANDLE * phToken,
  48. LARGE_INTEGER * pExpiry
  49. );
  50. dllexp
  51. BOOL
  52. WINAPI
  53. NetUserCookieA(
  54. LPSTR lpszUsername,
  55. DWORD dwSeed,
  56. LPSTR lpszCookieBuff,
  57. DWORD dwBuffSize
  58. );
  59. //
  60. // define algorithm to be used for password validation
  61. //
  62. #define IISSUBA_COOKIE 0
  63. #define IISSUBA_NT_DIGEST 1
  64. #define IISSUBA_DIGEST 2
  65. dllexp
  66. BOOL
  67. WINAPI
  68. LogonDigestUserA(
  69. VOID * pDigestBuffer,
  70. DWORD dwAlgo,
  71. HANDLE * phToken
  72. );
  73. #define IIS_SUBAUTH_ID 132
  74. #define IIS_SUBAUTH_SEED 0x8467fd31
  75. #ifndef LOGON32_LOGON_NETWORK
  76. #define LOGON32_LOGON_NETWORK 3
  77. #endif
  78. #define LOGON32_LOGON_IIS_NETWORK 128
  79. #define IIS_Network 128
  80. #define BOGUS_WIN95_TOKEN 0x77777777
  81. #endif // _TSLOGON_HXX_