This function is called to change the key that secret data associates with a user.
BOOL SetUserData( LPBYTE lpbUserData, DWORD dwDataSize );
- [in] Buffer of user-specific opaque secret data, such as a password.
- [in] Size of the user's secret data.
If this function succeeds, it returns TRUE. If this function fails, it returns FALSE.
SetUserData is accessible only to trusted applications.
The given data is passed to the security subsystem for encryption and decryption. If no user is currently logged on, the call fails with GetLastError returning ERROR_FILE_NOT_FOUND.
OS Versions: Windows CE .NET 4.0 and later.
Link Library: Coredll.lib.
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.