locked
How to get user personnal data folder on "Credential Provider"... RRS feed

  • Question

  • Hello there!

    I need to have access to a user's personnal data folder while handling methods "GetSerialization" and "ReportResult" of a Credential Provider at "password change scenario".

    The only way I know is to use "SHGetFolderPath" method informing the user token (I need the user token on this case because the Credential Provider is running on SYSTEM user context).

    After trying to get the user token inside the Credential Provider without success I've used MMF (memory mapped file) to share the handle retrieved by a Windows Service with the Credential Provider.

    I know that share handles between processes is not recomended, but I thought that user token would be an exception. Something like a global handle.

    The problem is that I get an invalid handle error when calling "SHGetFolderPath" with the shared user token handle.

    So, can anyone give me some idea how to get the personnal user data folder without the user token or another way to get the user token on a Credential Provider?

    Thanks and best regards,

    Mauro.

     

    Thursday, September 8, 2011 12:13 PM