Error:SEC_E_CANNOT_INSTALL when running code on msdn "Registering with Windows Firewall And Taking Ownership of Firewall Policy Management"

0

I am setting up a firewall program, and i need it to 'seize' control from Windows Firewall. The code on this page is what i am trying to run:

https://docs.microsoft.com/en-gb/previous-versions/windows/desktop/ics/c-registering-with-windows-firewall-ownership

Using visual studio 2013

I have tried running visual studio as administrator and not, with /integritycheck and not, so a total of 4 different settings

non admin and no integrity check gives output:INetFwProducts_Count returned 0.

admin and no integrity check gives output: Register failed: 0x80090307

integrity check does not let the program run, with the error:Windows cannot verify the digital signature for this file

the code on the website provided returns a fail at the line

products->Register(product, &registration);

The program should be able 'Register with Windows Firewall And Take Ownership of Firewall Policy Management' but there is no indication of that happening.

c++
windows-firewall
asked on Stack Overflow Jul 10, 2019 by ikhalid45

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0