SetUserData (Windows CE 5.0)
This function is called to change the key that secret data associates with a user.
BOOL SetUserData( LPBYTElpbUserData, DWORDdwDataSize);
Parameters
- lpbUserData
[in] Buffer of user-specific opaque secret data, such as a password. - dwDataSize
[in] Size of the user's secret data.
Return Values
If this function succeeds, it returns TRUE. If this function fails, it returns FALSE.
Remarks
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.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Pwinreg.h.
Link Library: Coredll.lib.
See Also
SetCurrentUser | GetUserNameEx | Trusted APIs
Send Feedback on this topic to the authors