37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
|
/*++
|
||
|
Copyright (c) Microsoft Corporation
|
||
|
Licensed under the MIT license.
|
||
|
|
||
|
Class Name:
|
||
|
- ProposeCommandlineResult.h
|
||
|
|
||
|
Abstract:
|
||
|
- This is a helper class for encapsulating the result of a
|
||
|
Monarch::ProposeCommandline call. The monarch will be telling the new process
|
||
|
whether it should create a new window or not. If the value of
|
||
|
ShouldCreateWindow is false, that implies that some other window process was
|
||
|
given the commandline for handling, and the caller should just exit.
|
||
|
- If ShouldCreateWindow is true, the Id property may or may not contain an ID
|
||
|
that the new window should use as it's ID.
|
||
|
|
||
|
--*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "ProposeCommandlineResult.g.h"
|
||
|
#include "../cascadia/inc/cppwinrt_utils.h"
|
||
|
|
||
|
namespace winrt::Microsoft::Terminal::Remoting::implementation
|
||
|
{
|
||
|
struct ProposeCommandlineResult : public ProposeCommandlineResultT<ProposeCommandlineResult>
|
||
|
{
|
||
|
public:
|
||
|
GETSET_PROPERTY(Windows::Foundation::IReference<uint64_t>, Id);
|
||
|
GETSET_PROPERTY(bool, ShouldCreateWindow, true);
|
||
|
|
||
|
public:
|
||
|
ProposeCommandlineResult(bool shouldCreateWindow) :
|
||
|
_ShouldCreateWindow{ shouldCreateWindow } {};
|
||
|
};
|
||
|
}
|