Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ WSManPluginSend
WSManPluginSignal
WSManPluginReceive
WSManPluginConnect
PerformWSManPluginReportCompletion
15 changes: 0 additions & 15 deletions 15 src/powershell-native/nativemsh/pwrshplugin/pwrshplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.