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.

131 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. autoentr.hxx
  5. Abstract:
  6. This module contains the declaration of the AUTOENTRY class.
  7. The AUTOENTRY class models an entry in the registry used to
  8. execute a program at boot time.
  9. Author:
  10. Ramon J. San Andres (ramonsa) 11 Mar 1991
  11. Environment:
  12. Ulib, User Mode
  13. --*/
  14. #if !defined( _AUTOENTRY_ )
  15. #define _AUTOENTRY_
  16. #include "wstring.hxx"
  17. DECLARE_CLASS( AUTOENTRY );
  18. class AUTOENTRY : public OBJECT {
  19. public:
  20. DECLARE_CONSTRUCTOR( AUTOENTRY );
  21. NONVIRTUAL
  22. VOID
  23. Construct (
  24. );
  25. VIRTUAL
  26. ~AUTOENTRY(
  27. );
  28. NONVIRTUAL
  29. BOOLEAN
  30. Initialize (
  31. IN PCWSTRING EntryName,
  32. IN PCWSTRING CommandLine
  33. );
  34. NONVIRTUAL
  35. PCWSTRING
  36. GetCommandLine (
  37. );
  38. NONVIRTUAL
  39. PCWSTRING
  40. GetEntryName (
  41. );
  42. private:
  43. NONVIRTUAL
  44. VOID
  45. Destroy (
  46. );
  47. DSTRING _EntryName;
  48. DSTRING _CommandLine;
  49. };
  50. INLINE
  51. PCWSTRING
  52. AUTOENTRY::GetCommandLine (
  53. )
  54. /*++
  55. Routine Description:
  56. Gets the command line
  57. Arguments:
  58. None
  59. Return Value:
  60. The command line
  61. --*/
  62. {
  63. return &_CommandLine;
  64. }
  65. INLINE
  66. PCWSTRING
  67. AUTOENTRY::GetEntryName (
  68. )
  69. /*++
  70. Routine Description:
  71. Gets the command line
  72. Arguments:
  73. None
  74. Return Value:
  75. The command line
  76. --*/
  77. {
  78. return &_EntryName;
  79. }
  80. #endif // _AUTOENTRY_