SetUserData

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function changes the key that encrypted data associates with a user.


BOOL SetUserData( 
  LPBYTE lpbUserData, 
  DWORD dwDataSize 
);

lpbUserData

[in] Buffer of user-specific encrypted data, such as a password.

dwDataSize

[in] Size of the user encrypted data.

TRUE indicates success. FALSE indicates failure.

This function is accessible only to privileged applications.

The specified data is passed to the security subsystem for encryption and decryption. If no user is currently logged on, the call fails, and GetLastError returns ERROR_FILE_NOT_FOUND.

Headerpwinreg.h
Librarycoredll.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: