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.

116 lines
1.5 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*
  3. *
  4. * Util.h
  5. *
  6. * Utility routines.
  7. *
  8. */
  9. #ifndef __TSOC_UTIL_H__
  10. #define __TSOC_UTIL_H__
  11. //
  12. // Includes
  13. //
  14. #include "stdafx.h"
  15. //
  16. // Function prototypes
  17. //
  18. VOID
  19. DestroyExtraRoutines(
  20. VOID
  21. );
  22. VOID
  23. DestroySetupData(
  24. VOID
  25. );
  26. BOOL
  27. DoMessageBox(
  28. UINT uiMsg,
  29. UINT uiCaption,
  30. UINT Style
  31. );
  32. HINF
  33. GetComponentInfHandle(
  34. VOID
  35. );
  36. OCMANAGER_ROUTINES
  37. GetHelperRoutines(
  38. VOID
  39. );
  40. HINSTANCE
  41. GetInstance(
  42. VOID
  43. );
  44. PSETUP_INIT_COMPONENT
  45. GetSetupData(
  46. VOID
  47. );
  48. HINF
  49. GetUnAttendedInfHandle(
  50. VOID
  51. );
  52. VOID
  53. LogErrorToEventLog(
  54. WORD wType,
  55. WORD wCategory,
  56. DWORD dwEventId,
  57. WORD wNumStrings,
  58. DWORD dwDataSize,
  59. LPCTSTR *lpStrings,
  60. LPVOID lpRawData
  61. );
  62. VOID
  63. LogErrorToSetupLog(
  64. OcErrorLevel ErrorLevel,
  65. UINT uiMsg
  66. );
  67. VOID
  68. SetInstance(
  69. HINSTANCE hInstance
  70. );
  71. VOID
  72. SetProgressText(
  73. UINT uiMsg
  74. );
  75. BOOL
  76. SetReboot(
  77. VOID
  78. );
  79. BOOL
  80. SetExtraRoutines(
  81. PEXTRA_ROUTINES pExtraRoutines
  82. );
  83. BOOL
  84. SetSetupData(
  85. PSETUP_INIT_COMPONENT pSetupData
  86. );
  87. BOOL Delnode( IN LPCTSTR Directory );
  88. DWORD StoreSecretKey(PWCHAR pwszKeyName, BYTE * pbKey, DWORD cbKey );
  89. DWORD OpenPolicy(LPWSTR ServerName,DWORD DesiredAccess,PLSA_HANDLE PolicyHandle );
  90. void InitLsaString(PLSA_UNICODE_STRING LsaString,LPWSTR String );
  91. #endif // __TSOC_UTIL_H__