(releaseDLL bool)
| 306 | } |
| 307 | |
| 308 | func (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 | |
| 330 | func windowsHostCall(hostCtx uintptr, methodPtr uintptr, requestPtr uintptr, requestLen uintptr, responsePtr uintptr) uintptr { |
| 331 | if responsePtr != 0 { |
no test coverage detected