Taking Ownership of Firewall Policy Management error SEC_E_CANNOT_INSTALL

  • Thread starter Thread starter ibrahimmkhalid
  • Start date Start date
I

ibrahimmkhalid

Guest
I am writing a firewall program, and in it i need to be able to disable the windows firewall and also make sure that the user is unable to use it while my firewall is running.

The code that i think is what im looking for is on the page: Registering with Windows Firewall And Taking Ownership of Firewall Policy Management

When i run this however, as admin, i get the error SEC_E_CANNOT_INSTALL at the line

hr = products->Register(product, &registration);

How do i avoid this error, on another forum i was told to run it with the linker option '/integritycheck', but i currently cannot sign the exe, due to it being out of the scope of this project and also not knowing how to do it.

Also, slightly important question, is this even what i am looking for? Will this code prevent the user from using Windows firewall while my firewall is running? If this isnt it, can someone please point me to the right direction?

Thanks!!

Continue reading...
 
Back
Top