Skip to content

Conversation

@sylveon
Copy link
Contributor

@sylveon sylveon commented Jan 22, 2020

I've recently hit that undocumented case myself, so I thought it would be great to add them to the docs to make the behavior of the function less confusing.

I've recently hit that undocumented case myself, so I thought it would be great to add them to the docs to make the behavior of the function less confusing.
@PRMerger9
Copy link

@sylveon : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Collaborator

@Karl-Bridge-Microsoft Karl-Bridge-Microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @sylveon

@Karl-Bridge-Microsoft
Copy link
Collaborator

#sign-off

@Karl-Bridge-Microsoft Karl-Bridge-Microsoft merged commit 1286d02 into MicrosoftDocs:docs Jan 22, 2020
@sylveon
Copy link
Contributor Author

sylveon commented Jan 22, 2020

This function does not clear the most recent error information. To determine success or failure, clear the most recent error information by calling SetLastError with 0, then call GetLastError.

This might be a bit confusing, I think that it should be pointed out that SetLastError must be called before GetWindowTextLength and that GetLastError should called after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants