MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / close

Method close

internal/pluginhost/loader_windows.go:308–328  ·  view source on GitHub ↗
(releaseDLL bool)

Source from the content-addressed store, hash-verified

306}
307
308func (c *dynamicLibraryClient) close(releaseDLL bool) {
309 if c == nil {
310 return
311 }
312 if c.api.shutdown != 0 {
313 _, _, _ = syscall.SyscallN(c.api.shutdown)
314 c.api.shutdown = 0
315 }
316 if c.hostCtx != nil {
317 windowsHostCallbackEntries.Delete(*c.hostCtx)
318 c.hostCtx = nil
319 }
320 if c.dll != nil {
321 if releaseDLL {
322 _ = c.dll.Release()
323 }
324 c.dll = nil
325 }
326 removeShadowPlugin(c.tempPath)
327 c.tempPath = ""
328}
329
330func windowsHostCall(hostCtx uintptr, methodPtr uintptr, requestPtr uintptr, requestLen uintptr, responsePtr uintptr) uintptr {
331 if responsePtr != 0 {

Callers 2

ShutdownMethod · 0.95
closeAfterOpenFailureMethod · 0.95

Calls 2

removeShadowPluginFunction · 0.85
DeleteMethod · 0.65

Tested by

no test coverage detected