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.

115 lines
1.4 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. );
  30. HINF
  31. GetComponentInfHandle(
  32. VOID
  33. );
  34. OCMANAGER_ROUTINES
  35. GetHelperRoutines(
  36. VOID
  37. );
  38. HINSTANCE
  39. GetInstance(
  40. VOID
  41. );
  42. PSETUP_INIT_COMPONENT
  43. GetSetupData(
  44. VOID
  45. );
  46. HINF
  47. GetUnAttendedInfHandle(
  48. VOID
  49. );
  50. VOID
  51. LogErrorToEventLog(
  52. WORD wType,
  53. WORD wCategory,
  54. DWORD dwEventId,
  55. WORD wNumStrings,
  56. DWORD dwDataSize,
  57. LPCTSTR *lpStrings,
  58. LPVOID lpRawData
  59. );
  60. VOID
  61. LogErrorToSetupLog(
  62. OcErrorLevel ErrorLevel,
  63. UINT uiMsg,
  64. ...
  65. );
  66. VOID
  67. SetInstance(
  68. HINSTANCE hInstance
  69. );
  70. VOID
  71. SetProgressText(
  72. UINT uiMsg
  73. );
  74. BOOL
  75. SetReboot(
  76. VOID
  77. );
  78. BOOL
  79. SetExtraRoutines(
  80. PEXTRA_ROUTINES pExtraRoutines
  81. );
  82. BOOL
  83. SetSetupData(
  84. PSETUP_INIT_COMPONENT pSetupData
  85. );
  86. BOOL Delnode( IN LPCTSTR Directory );
  87. DWORD StoreSecretKey(PWCHAR pwszKeyName, BYTE * pbKey, DWORD cbKey );
  88. DWORD OpenPolicy(LPWSTR ServerName,DWORD DesiredAccess,PLSA_HANDLE PolicyHandle );
  89. void InitLsaString(PLSA_UNICODE_STRING LsaString,LPWSTR String );
  90. #endif // __TSOC_UTIL_H__