diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs index b2143f8f6..56fef4394 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs @@ -360,7 +360,7 @@ namespace System.Management.Automation.Remoting /// /// Structure definition to match the native one. - /// NOTE: The layout of this structure must be IDENTICAL between here and WSManPluginEntryDelegates in pwrshplugin.h! + /// NOTE: The layout of this structure must be IDENTICAL between here and PwrshPluginWkr_Ptrs in pwrshplugindefs.h! /// [StructLayout(LayoutKind.Sequential)] internal class WSManPluginEntryDelegatesInternal diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h index b34f6a6ee..aaea69d91 100644 --- a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h +++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h @@ -115,6 +115,9 @@ typedef void (WINAPI *WSManPluginSignalFuncPtr)( __in_opt PVOID commandContext, __in PCWSTR code); +typedef void (WINAPI *WSManPluginOperationShutdownFuncPtr)( + __in PVOID pluginContext); + typedef struct _PwrshPluginWkr_Ptrs { ShutdownPluginFuncPtr shutdownPluginFuncPtr; @@ -126,6 +129,7 @@ typedef struct _PwrshPluginWkr_Ptrs WSManPluginReceiveFuncPtr wsManPluginReceiveFuncPtr; WSManPluginSignalFuncPtr wsManPluginSignalFuncPtr; WSManPluginConnectFuncPtr wsManPluginConnectFuncPtr; + WSManPluginOperationShutdownFuncPtr wsmanPluingOperationShutdownFuncPtr; // This ptr is not used in this environment, but is required to keep the memory layout identical between unmanaged and managed code. } PwrshPluginWkr_Ptrs; class PlugInException