diff --git a/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectorya.md b/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectorya.md index cd79c8ab74f0..02fe93f92294 100644 --- a/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectorya.md +++ b/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectorya.md @@ -78,11 +78,15 @@ Specifies the size of the lpProfileDir buffer, in TCHARs. If the buffer specified by lpProfileDir is not large enough or lpProfileDir is NULL, the function fails and this parameter receives the necessary buffer size, including the terminating null character. +If the function succeeds then this parameter receives the number of TCHARs written to lpProfileDir, including the terminating null character. + ## -returns Type: BOOL -TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError. +If the function succeeds, the return value is nonzero. + +If the function fails, the return value is zero. To get extended error information, call GetLastError. ## -remarks diff --git a/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectoryw.md b/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectoryw.md index feafc09d3947..2191dd6f98ba 100644 --- a/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectoryw.md +++ b/sdk-api-src/content/userenv/nf-userenv-getuserprofiledirectoryw.md @@ -78,6 +78,8 @@ Specifies the size of the lpProfileDir buffer, in TCHARs. If the buffer specified by lpProfileDir is not large enough or lpProfileDir is NULL, the function fails and this parameter receives the necessary buffer size, including the terminating null character. +If the function succeeds then this parameter receives the number of TCHARs written to lpProfileDir, including the terminating null character. + ## -returns Type: BOOL