- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.1k
 
Update Windows API terms and examples #11450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| - Name of the DLL file in which the implementation can be found | ||
| 
               | 
          ||
| For example, specifying the **MessageBox** function in the User32.dll identifies the function (**MessageBox**) and its location (User32.dll, User32, or user32). The Microsoft Windows application programming interface (Win32 API) can contain two versions of each function that handles characters and strings: a 1-byte character ANSI version and a 2-byte character Unicode version. When unspecified, the character set, represented by the <xref:System.Runtime.InteropServices.DllImportAttribute.CharSet> field, defaults to ANSI. Some functions can have more than two versions. | ||
| For example, specifying the **MessageBox** function in the User32.dll identifies the function (**MessageBox**) and its location (User32.dll, User32, or user32). The Microsoft Windows application programming interface (Windows API) can contain two versions of each function that handles characters and strings: a 1-byte character ANSI version and a 2-byte character Unicode version. When unspecified, the character set, represented by the <xref:System.Runtime.InteropServices.DllImportAttribute.CharSet> field, defaults to ANSI. Some functions can have more than two versions. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesterday, you'd asked whether this was discussed in the docs, and I didn't think that it was. Here at least is a rudimentary discussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @NextTurn, not only for submitting this PR, but for taking the initiative to create it in the first place. When I commented in yesterday's PR that you should change Win32 to Windows, it didn't occur to me that Win32 was used extensively in our doc set. I've left a couple of suggestions and comments, largely for additional instances in which Win32 can be changed to Windows.
        
          
                docs/framework/wpf/advanced/walkthrough-hosting-a-win32-control-in-wpf.md
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Co-Authored-By: NextTurn <45985406+NextTurn@users.noreply.github.com>
dace12b    to
    072ff8d      
    Compare
  
    | 
           Thanks, @NextTurn, for making the additional changes. I'll merge your PR now.  | 
    
Contributes to #11396
Continued from #11439
Win32 API -> Windows API
https://docs.microsoft.com/windows/desktop/apiindex/windows-api-list