I have a C # application that uses rasapi32.dll to create remote access. When I create such a connection in Windows 7, the credentials are saved in the credential manager as an entry called *session .
This *session entry in the credential manager causes existing connections to other resources (network resources, database connections) to become invalid. Is there a way to tell Windows not to store credentials?
I already know the solution, but this disables the storage of credentials for the entire system: setting the registry value HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\DisableDomainCreds to 1 .
I would like to disable it only for my application.
source share