Partager via


GetUserDirectory

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function obtains user directory information.

Syntax

BOOL GetUserDirectory( 
  LPWSTR lpszBuffer, 
  LPDWORD lpdwSize 
);

Parameters

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

Return Value

TRUE indicates success. FALSE indicates failure. If no user is currently logged on, this function fails, and GetLastError returns ERROR_PATH_NOT_FOUND.

Requirements

Header pwinreg.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

User Management Functions
SetCurrentUser

Other Resources