MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / initialize

Method initialize

src/helper/windows/fwpm_wrapper.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15bool FwpmWrapper::initialize()
16{
17 DWORD dwFwAPiRetCode = FwpmEngineOpen0(NULL, RPC_C_AUTHN_WINNT, NULL, NULL, &engineHandle_);
18 if (dwFwAPiRetCode != ERROR_SUCCESS) {
19 spdlog::error("EngineHandleWrapper::EngineHandleWrapper(), FwpmEngineOpen0 failed, {}", dwFwAPiRetCode);
20 engineHandle_ = nullptr;
21 }
22
23 return engineHandle_ != nullptr;
24}
25
26void FwpmWrapper::release()
27{

Callers 2

onInitMethod · 0.80
disableFirewallFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected