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.

110 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. autoreg.hxx
  5. Abstract:
  6. This module contains the declaration of the AUTOREG class.
  7. The AUTOREG class contains methods for the registration and
  8. de-registration of those programs that are to be executed at
  9. boot time.
  10. Author:
  11. Ramon J. San Andres (ramonsa) 11 Mar 1991
  12. Environment:
  13. Ulib, User Mode
  14. --*/
  15. #if !defined( _AUTOREG_ )
  16. #define _AUTOREG_
  17. #include "ulib.hxx"
  18. #include "wstring.hxx"
  19. #if defined ( _AUTOCHECK_ )
  20. #define IFSUTIL_EXPORT
  21. #elif defined ( _IFSUTIL_MEMBER_ )
  22. #define IFSUTIL_EXPORT __declspec(dllexport)
  23. #else
  24. #define IFSUTIL_EXPORT __declspec(dllimport)
  25. #endif
  26. DECLARE_CLASS( AUTOREG );
  27. class AUTOREG : public OBJECT {
  28. public:
  29. STATIC
  30. IFSUTIL_EXPORT
  31. BOOLEAN
  32. AddEntry (
  33. IN PCWSTRING CommandLine
  34. );
  35. STATIC
  36. IFSUTIL_EXPORT
  37. BOOLEAN
  38. PushEntry (
  39. IN PCWSTRING CommandLine
  40. );
  41. STATIC
  42. IFSUTIL_EXPORT
  43. BOOLEAN
  44. DeleteEntry (
  45. IN PCWSTRING LineToMatch,
  46. IN BOOLEAN PrefixOnly DEFAULT FALSE
  47. );
  48. STATIC
  49. IFSUTIL_EXPORT
  50. BOOLEAN
  51. DeleteEntry (
  52. IN PCWSTRING PrefixToMatch,
  53. IN PCWSTRING ContainingString
  54. );
  55. STATIC
  56. IFSUTIL_EXPORT
  57. BOOLEAN
  58. IsEntryPresent (
  59. IN PCWSTRING LineToMatch
  60. );
  61. STATIC
  62. IFSUTIL_EXPORT
  63. BOOLEAN
  64. IsEntryPresent (
  65. IN PCWSTRING PrefixToMatch,
  66. IN PCWSTRING ContainingString
  67. );
  68. STATIC
  69. IFSUTIL_EXPORT
  70. BOOLEAN
  71. IsFrontEndPresent (
  72. IN PCWSTRING PrefixToMatch,
  73. IN PCWSTRING SuffixToMatch
  74. );
  75. };
  76. #endif // _AUTOREG_