none
E_ACCESSDENIED RRS feed

  • Question

  • Hi all!!!

    I'm making some trials on my UPnP device. It works like wanted but a problem occurs.

    From non administrative accounts the RegisterRunningDevice method failed with

    E_ACCESSDENIED value. I think it's due to the access permission and if it is, I didn't use nicely

    CoInitializeSecurity function.  Here is the way I wrote the function :

     

      hr = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT,

                             RPC_C_IMP_LEVEL_IMPERSONATE, NULL,EOAC_SECURE_REFS,NULL);

     

    With this, there is no problem from administrative accounts but doesn't work from non administrative accounts.

    Does anyone know what parameters to set in CoInitializeSecurity function for working fine on both

    account types ?

     

    Thanks to all!  

    Friday, April 27, 2007 3:59 PM

Answers