diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.def b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.def index af45f5c785a..ef1208d3875 100644 --- a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.def +++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.def @@ -15,4 +15,3 @@ WSManPluginSend WSManPluginSignal WSManPluginReceive WSManPluginConnect -PerformWSManPluginReportCompletion diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.h b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.h index 7d2f25d94fe..5721e80ceaf 100644 --- a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.h +++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.h @@ -26,10 +26,6 @@ using namespace NativeMsh; // Forward declaration of class PwrshPlugIn class PwrshPlugIn; -// To report the plugin completion using WSManPluginReportCompletion API -// g_pPluginContext MUST be the same context that plugin provided to the WSManPluginStartup method -PwrshPlugIn* g_pPluginContext; - class PwrshPlugIn { private: @@ -230,7 +226,6 @@ class PwrshPlugInMediator // storing the extra info for plugin use later. VerifyAndStoreExtraInfo(extraInfo, &initParameters); PwrshPlugIn* result = new PwrshPlugIn(applicationIdentification, initParameters); - g_pPluginContext = result; return result; } @@ -1090,13 +1085,3 @@ class PwrshPlugInMediator return version; } }; - -extern "C" -void WINAPI PerformWSManPluginReportCompletion() -{ - // Now report the plugin completion, to indicate that plugin is ready to shutdown. - // This API is used by plugins to report completion - // - pluginContext MUST be the same context that plugin provided to the WSManPluginStartup method - // - flags are reserved, so 0 - WSManPluginReportCompletion(g_pPluginContext, 0); -}