Welcome to the Windows Programming Documentation. By accessing and using this documentation, you agree to be bound by the following terms and conditions. Please read them carefully.
Microsoft grants you a non-exclusive, royalty-free, limited license to use, reproduce, and display the content provided in this documentation solely for your internal, non-commercial use to develop, test, and operate software applications that run on or interact with Microsoft Windows operating systems. This license does not permit you to redistribute, modify, or create derivative works of the documentation, except as expressly permitted by applicable law or Microsoft's explicit written consent.
All intellectual property rights in the documentation, including but not limited to copyrights, trademarks, and patents, are owned by Microsoft or its licensors. Nothing in these terms grants you any rights to use any Microsoft trademarks or service marks.
This documentation may include sample code, code snippets, and application programming interfaces (APIs). You are granted a perpetual, non-exclusive, royalty-free right to use, modify, and distribute such sample code, code snippets, and APIs in your software applications, provided that you include appropriate attribution to Microsoft and do not misrepresent the origin of the software.
// Example of a permitted API usage
HRESULT hr = CoCreateInstance(CLSID_SomeComponent, NULL, CLSCTX_ALL, IID_ISomeInterface, (void**)&pSomeInterface);
if (SUCCEEDED(hr)) {
// Use the interface
pSomeInterface->DoSomething();
pSomeInterface->Release();
}
The documentation is provided "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. Microsoft does not warrant that the documentation will meet your requirements or that its operation will be uninterrupted or error-free.
To the maximum extent permitted by law, Microsoft shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (a) your access to or use of or inability to access or use the documentation; (b) any conduct or content of any third party on the documentation; or (c) unauthorized access, use, or alteration of your transmissions or content.
Microsoft reserves the right to modify these terms and conditions at any time. Any changes will be effective immediately upon posting the revised terms. Your continued use of the documentation after such changes constitutes your acceptance of the new terms.
These terms and conditions shall be governed by and construed in accordance with the laws of the State of Washington, without regard to its conflict of law principles.
If you have any questions about these terms and conditions, please refer to the About MSDN section for relevant contact information.