WinAPI – Why does this function have a Unicode and ansi version?

Why does EndUpdateResource have both Unicode and ANSI versions?
because BeginUpdateResource has (due to its LPCTSTR parameter), and the handles generated by the two versions may require different internal cleanup . (Even if they don’t have it today, a prudent API designer will leave the possibility that they might be tomorrow).

Why EndUpdateResource has both Unicode and ANSI Version?

Because BeginUpdateResource has (due to its LPCTSTR parameter), and the handles generated by the two versions may require different internal cleanup. (Even if they don’t have it today, a prudent API design The teacher will also leave them with the possibility of tomorrow).

Leave a Comment

Your email address will not be published.