Leaked source code of windows server 2003
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.

82 lines
1.6 KiB

  1. /*
  2. File: user.h
  3. Utilities that directly affect users. The caching mechanism is made
  4. transparent through this interface.
  5. Paul Mayfield
  6. */
  7. //
  8. // This structure defines all that is needed to describe
  9. // a user with respect to ras.
  10. //
  11. typedef struct _RASUSER_DATA
  12. {
  13. PWCHAR pszUsername;
  14. PWCHAR pszFullname;
  15. PWCHAR pszPassword;
  16. RAS_USER_0 User0;
  17. } RASUSER_DATA, *PRASUSER_DATA;
  18. //
  19. // Defines a prototype for a callback function provided to
  20. // enumerate users (see UserEnumUsers)
  21. //
  22. // Return TRUE to continue enumeration, FALSE to stop it.
  23. //
  24. typedef BOOL (* PFN_RASUSER_ENUM_CB)(
  25. IN PRASUSER_DATA pUser,
  26. IN HANDLE hData);
  27. DWORD
  28. UserGetRasProperties (
  29. IN RASMON_SERVERINFO * pServerInfo,
  30. IN LPCWSTR pwszUser,
  31. IN RAS_USER_0* pUser0);
  32. DWORD
  33. UserSetRasProperties (
  34. IN RASMON_SERVERINFO * pServerInfo,
  35. IN LPCWSTR pwszUser,
  36. IN RAS_USER_0* pUser0);
  37. DWORD
  38. UserEnumUsers(
  39. IN RASMON_SERVERINFO* pServerInfo,
  40. IN PFN_RASUSER_ENUM_CB pEnumFn,
  41. IN HANDLE hData
  42. );
  43. DWORD
  44. UserDumpConfig(
  45. IN HANDLE hFile);
  46. BOOL
  47. UserShowSet(
  48. IN PRASUSER_DATA pUser,
  49. IN HANDLE hFile
  50. );
  51. BOOL
  52. UserShowReport(
  53. IN PRASUSER_DATA pUser,
  54. IN HANDLE hFile
  55. );
  56. BOOL
  57. UserShowPermit(
  58. IN PRASUSER_DATA pUser,
  59. IN HANDLE hFile
  60. );
  61. DWORD
  62. UserServerInfoInit(
  63. IN RASMON_SERVERINFO * pServerInfo
  64. );
  65. DWORD
  66. UserServerInfoUninit(
  67. IN RASMON_SERVERINFO * pServerInfo
  68. );