Partager via


GetUserDirectory (Compact 2013)

3/26/2014

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

See Also

Reference

User Management Functions
SetCurrentUser