Export (0) Print
Expand All

SetUserData

Windows CE .NET

This function is called to change the key that secret data associates with a user.

BOOL SetUserData( 
  LPBYTE lpbUserData, 
  DWORD dwDataSize 
);

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: Winbase.h.
Link Library: Coredll.lib.

See Also

SetCurrentUser | GetUserNameEx | Trusted APIs


Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.

Show:
© 2015 Microsoft