70 lines
2.0 KiB
C++
70 lines
2.0 KiB
C++
//
|
|
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
// PARTICULAR PURPOSE.
|
|
//
|
|
|
|
using namespace System;
|
|
using namespace System::ComponentModel;
|
|
|
|
using namespace System::Management::Automation;
|
|
|
|
// Stop-Proc sample SnapIn functionality
|
|
namespace Microsoft
|
|
{
|
|
namespace Samples
|
|
{
|
|
namespace PowerShell
|
|
{
|
|
namespace Commands
|
|
{
|
|
/// <remarks>
|
|
/// PSSnapIn related information for Stop-Proc.
|
|
/// </remarks>
|
|
[RunInstaller(true)]
|
|
public ref class StopProcSnapIn : PSSnapIn
|
|
{
|
|
public:
|
|
#pragma region PSSnapIn overrides
|
|
/// <summary>
|
|
/// Get a name for this PowerShell snap-in. This name will be used in registering
|
|
/// this PowerShell snap-in.
|
|
/// </summary>
|
|
property String^ Name
|
|
{
|
|
virtual String^ get() override
|
|
{
|
|
return "StopProcMCPPPSSnapIn";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Vendor information for this PowerShell snap-in.
|
|
/// </summary>
|
|
property String^ Vendor
|
|
{
|
|
virtual String^ get() override
|
|
{
|
|
return "Microsoft";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Description of this PowerShell snap-in.
|
|
/// </summary>
|
|
property String^ Description
|
|
{
|
|
virtual String^ get() override
|
|
{
|
|
return "This is a PowerShell snap-in that includes the stop-proc cmdlet.";
|
|
}
|
|
}
|
|
#pragma endregion
|
|
};
|
|
}
|
|
}
|
|
}
|
|
} |