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.

125 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. ginacomn.h
  5. Abstract:
  6. This module contains the declarations shared between gina components.
  7. Author:
  8. Cenk Ergan (cenke) - 2001/05/07
  9. Environment:
  10. User Mode
  11. --*/
  12. #ifndef _GINACOMN_H
  13. #define _GINACOMN_H
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. //
  18. // Shared routines for optimized logon.
  19. //
  20. DWORD
  21. GcCheckIfProfileAllowsCachedLogon(
  22. PUNICODE_STRING HomeDirectory,
  23. PUNICODE_STRING ProfilePath,
  24. PWCHAR UserSidString,
  25. PDWORD NextLogonCacheable
  26. );
  27. BOOL
  28. GcCheckIfLogonScriptsRunSync(
  29. PWCHAR UserSidString
  30. );
  31. DWORD
  32. GcAccessProfileListUserSetting (
  33. PWCHAR UserSidString,
  34. BOOL SetValue,
  35. PWCHAR ValueName,
  36. PDWORD Value
  37. );
  38. DWORD
  39. GcGetNextLogonCacheable(
  40. PWCHAR UserSidString,
  41. PDWORD NextLogonCacheable
  42. );
  43. DWORD
  44. GcSetNextLogonCacheable(
  45. PWCHAR UserSidString,
  46. DWORD NextLogonCacheable
  47. );
  48. DWORD
  49. GcSetOptimizedLogonStatus(
  50. PWCHAR UserSidString,
  51. DWORD OptimizedLogonStatus
  52. );
  53. DWORD
  54. GcGetUserPreferenceValue(
  55. LPTSTR SidString
  56. );
  57. //
  58. // Shared routines for sid to string conversion.
  59. //
  60. PSID
  61. GcGetUserSid(
  62. HANDLE UserToken
  63. );
  64. LPWSTR
  65. GcGetSidString(
  66. HANDLE UserToken
  67. );
  68. VOID
  69. GcDeleteSidString(
  70. LPWSTR SidString
  71. );
  72. //
  73. // Shared routines for dealing with services.
  74. //
  75. BOOL
  76. GcWaitForServiceToStart (
  77. LPTSTR lpServiceName,
  78. DWORD dwMaxWait
  79. );
  80. //
  81. // Shared routines for dealing with paths.
  82. //
  83. LPTSTR
  84. GcCheckSlash (
  85. LPTSTR lpDir
  86. );
  87. BOOL
  88. GcIsUNCPath(
  89. LPTSTR lpPath
  90. );
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif // _GINACOMN_H