Compartir a través de


GetUserDirectory (Windows CE 5.0)

Send Feedback

This function is called to retrieve user directory information.

BOOL GetUserDirectory( LPWSTRlpszBuffer, LPDWORDlpdwSize);

Parameters

  • lpszBuffer
    [in] Pointer to a string buffer that will receive the full path to the current user's profile directory.
  • lpdwSize
    [in] Size of the string buffer.

Return Values

If this function succeeds, it returns TRUE. If this function fails, it returns FALSE. If no user is currently logged in, this function will fail and GetLastError will return ERROR_PATH_NOT_FOUND.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pwinreg.h.
Link Library: Coredll.lib.

See Also

User Management | SetCurrentUser

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.