Windows code api pack
Windows API Code Pack v1.1
NOTE: I do not own this code. This is an archive of the orignal Microsoft code.
Windows® API Code Pack for Microsoft® .NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code. These Windows features are not available to developers today in the .NET Framework.
The individual features supported in this version (v1.1) of the library are: Windows 7 Taskbar Jump Lists, Icon Overlay, Progress Bar, Tabbed Thumbnails, and Thumbnail Toolbars Windows Shell Windows 7 Libraries Windows Shell Search API support Explorer Browser Control A hierarchy of Shell Namespace entities Windows Shell property system Drag and Drop for Shell Objects Windows Vista and Windows 7 Common File Dialogs, including custom controls Known Folders and non-file system containers Shell Object Watcher Shell Extensions API support DirectX Direct3D 11.0, Direct3D 10.1/10.0, DXGI 1.0/1.1, Direct2D 1.0, DirectWrite, Windows Imaging Component (WIC) APIs Windows Vista and Windows 7 Task Dialogs Sensor Platform APIs Extended Linguistic Services APIs Power Management APIs Application Restart and Recovery APIs Network List Manager APIs Command Link control and System defined Shell icons
What’s New in this update (v1.1):
The enhancements in this update of Code Pack are: Many FxCop violations and PREfast warnings have been addressed Bug fixes across various features and samples Includes many API improvements New features Shell Object Watcher Preview Handler APIs Thumbnail Handler APIs New samples for the new features Visual Studio 2010 compliance Initial xUnit test coverage String localization Signed assemblies
Requirements: Minimum .NET Framework version required to use this library is 3.5 SP1. The APIs for Shell Extensions require .NET 4. This library targets the Windows 7 RTM version, though many of the features will work on Windows Vista as well. DirectX features require Windows SDK for Windows 7 RTM. Additionally, some Direct3D samples require the August 2009 release of DirectX SDK.
Building and using the Library: To build the library (except the DirectX related features) in Visual Studio 2008, execute ‘Windows API Code Pack Self Extractor.exe’ and extract the contents of the ‘Windows API Code Pack 1.1.zip’ file. Build the included ‘WindowsAPICodePack.sln’ file located in the ‘WindowsAPICodePack’ directory (within the ‘source’ directory). To build the DirectX features, build the ‘DirectX.sln’ file inside the DirectX directory. Additional information on using the DirectX features of the Code Pack can be found in the ‘DirectXCodePack_Requirements.htm’ document available as a separate download.
Samples: The Code Pack also contains sample applications built using this library. Most samples are available in C# and VB.NET version and can found found in the ‘Samples’ directory (within the ‘source_’ directory).
Documentation: The Code Pack also includes the following documentation: API References Windows API Code Pack Help.chm Windows API Code Pack DirectX Help.chm API Changes since the previous release Windows API Code Pack API Changes.html Overview of the release (including new features) Windows API Code Pack Release Notes.htm All documentation is located in the ‘documentation’ directory.
Some relevant blog entries: Windows Shell programming with Windows API Code Pack Introducing DirectX features of Windows API Code Pack Direct2D and DirectWrite with Windows API Code Pack
Videos: Two minute videos demonstrating some features in the previous release: Explorer Browser Common File Dialog
Note: Some users may experience a security related issue when opening the help files or the Visual Studio solution. Contents of help files may not be visible or a security warning similar to “Unknown Publisher” or “This file came from another computer and might be blocked” may pop up. If that happens, the user won’t be able to load the solution projects because Windows will block it.
To fix this error, please unblock the help files and zip file before extracting it (right click the file | select properties | click Unblock button).
Windows API Code Pack для .NET Framework
Недавно вышла библиотека Windows API Code Pack 1.0.1. Это не крупное обновление с множеством новых функций, а, скорее, версия, направленная на исправление ошибок, повышение производительности, добавление примеров и обновление нескольких функций (новые оболочки и т.д).
Но прежде чем углубиться в новую версию Windows Code Pack, давайте рассмотрим, что же он из себя представляет.
Windows 7 предлагает такие новые функции, как, например, панель задач, библиотеки, платформа Sensor and Location. Эти функции предполагают новые сценарии и предоставляют разработчикам новые возможности, чтобы лучшим образом адаптировать свои приложения для Windows 7. Все эти функции доступны через Win32 API. На данный момент в .NET Framework нет пространства имен «Windows 7», и также нет простого способа использовать эти функции из приложений, написанных на управляемом коде. Чтобы упростить доступ к ним разработчикам, использующим управляемый код, в августе мы выпустили 1.0 версию Windows API Code Pack for .NET Framework (сразу после Windows 7 RTM).
Windows API Code Pack – это бесплатная библиотека управляемых исходных кодов, поставляемая Microsoft как есть. Вы должны относиться к ней, как если бы сами написали ее, как если бы это был ваш собственный код. Она охватывает множество новых функций Windows 7, а также некоторые из наиболее важных функций Windows Vista. Можете считать Windows API Code Pack вещью наиболее близкой к «официальному» управляемому API для Windows. Но следует помнить, что служба поддержки Microsoft не обеспечивает этому продукту 24х7 поддержку. Мы верим, что это – замечательное решение и что база кода является очень надежной и высококачественной.
Наша цель, которую мы ставим, выпуская Code Pack, заключается в том, чтобы позволить разработчикам, использующим управляемый код, использовать преимущества программируемых интерфейсов Windows, не являющихся частью .NET Framework. Нам кажется, что в качестве общедоступного исходного кода Windows API Code Pack, отделенный от библиотек среды исполнения .NET, дает оптимальный компромисс между Microsoft Win32 и управляемой оболочкой. Следует отметить короткий цикл разработки – мы выпустили Windows API Code Pack всего через месяц после Win7 RTM; кроме того, мы выпускаем полные исходные коды библиотеки.
В состав Windows API Code Pack входит большое число управляемых API для Windows (7). Например:
- Тесная интеграция с пространством имен Windows Shell, включая поддержку набора свойств Windows Shell, предоставляющего такие элементы управления, как обозреватель проводника, и доступ к Windows Libraries.
- Полное соответствие функций с неуправляемым Taskbar API (программируемым интерфейсом панели задач), включая (но не ограничиваясь) списки переходов (Jump Lists), дополнительные значки (Icon Overlay), индикатор выполнения (Progress bar), эскизы (Thumbnail), настраиваемый переключатель, кнопка эскизов (Thumbnail Button) и т.д.
- Windows Task Dialog, другие элементы управления
- Поддержка API Direct3D 11.0 и DXGI 1.0/1.1
- Поддержка API Sensor Platform
- API Extended Linguistic Services
- Windows Restart Manager
- API электропитания
- И многие другие функции
Каждая технология, представленная в Windows API Code Pack, сопровождается рядом демонстраций и примеров (включая исходные коды) на C# и VB. Мы планируем выпускать обновления для Windows API Code Pack приблизительно каждые три месяца. Мы будем работать над стабильностью (то есть исправлением ошибок), ядром пакета, тестированием и документацией, а также над поддержкой новых функций (ориентируясь на обратную связь клиентов).
Вы можете задаться вопросом: «Почему Windows API Code Pack не входит в состав .NET Framework?»
Мы выпускаем открытый код, который можем включить в среду исполнения в будущем, если дальнейший рост ее размера окажется оправданным. Не забывайте, что .NET Framework работает как на Windows Vista, так и на Windows XP. Однако Windows 7 уже здесь, и мы хотим предоставить доступ к этому бесплатному, открытому набору исходных кодов раньше, а не позже. Мы выпускаем библиотеку в том виде, в каком она требуется сообществу и, как можете видеть, намереваемся обновлять ее в дальнейшем. В то время как эта версия (1.0.1) – небольшое обновление, в течение следующих нескольких месяцев мы планируем новый выпуск. Тем временем, вы пользуетесь преимуществами обоих измерений в пакете, который можете использовать целиком или частично без любых ограничений.
Другой вопрос, который можно задать: «Отпадет ли с появлением .NET 4 необходимость использования Windows API Code Pack?»
Когда выйдет .NET 4, вы сможете использовать его функции, связанные с Windows 7, в таких областях как панель задач, интеграция мультисенсорных устройств с WPF, поддержка DirectWrite и API местоположения посредством пространства имен Devices. Доступ к другим функциям, таким как библиотеки, Restart Manager и Sensors, будет и далее осуществляться посредством Windows API Code Pack.
Наконец, мы ожидаем откликов от сообщества – от вас, разработчиков на .NET, использующих эту библиотеку для написания на управляемом коде приложений для Windows 7. На веб-узле Windows API Code Pack вы можете задать вопрос, оставить отзыв, сообщить об ошибках и проследить за открытыми ошибками. Ваше участие очень важно для продолжения существования этой библиотеки, так что, пожалуйста, отправляйте нам свои отклики и вопросы.
Чтобы больше узнать о том, как использовать Windows API Code Pack, ознакомьтесь с тренингом по Windows 7 на Channel 9.
Windows code api pack
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Windows-API-Code-Pack-1.1 / LICENCE
1 contributor
Users who have contributed to this file
License: Custom License |
MICROSOFT SOFTWARE LICENSE TERMS |
MICROSOFT WINDOWS API CODE PACK FOR MICROSOFT .NET FRAMEWORK |
___________________________________________________ |
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft |
• updates, |
• supplements, |
• Internet-based services, and |
• support services |
for this software, unless other terms accompany those items. If so, those terms apply. |
_______________________________________________________________________________________ |
BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. |
If you comply with these license terms, you have the rights below. |
1. INSTALLATION AND USE RIGHTS. |
• You may use any number of copies of the software to design, develop and test your programs that run on a Microsoft Windows operating system. |
• This agreement gives you rights to the software only. Any rights to a Microsoft Windows operating system (such as testing pre-release versions of Windows in a live operating environment) are provided separately by the license terms for Windows. |
2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. |
a. Distributable Code. You may modify, copy, and distribute the software, in source or compiled form, to run on a Microsoft Windows operating system. |
ii. Distribution Requirements. If you distribute the software, you must |
• require distributors and external end users to agree to terms that protect it at least as much as this agreement; |
• if you modify the software and distribute such modified files, include prominent notices in such modified files so that recipients know that they are not receiving the original software; |
• display your valid copyright notice on your programs; and |
• indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs or to your modifications to the software. |
iii. Distribution Restrictions. You may not |
• alter any copyright, trademark or patent notice in the software; |
• use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; |
• include the software in malicious, deceptive or unlawful programs; or |
• modify or distribute the source code of the software so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that |
• the code be disclosed or distributed in source code form; or |
• others have the right to modify it. |
3. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. |
4. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see . |
5. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. |
6. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. |
7. APPLICABLE LAW. |
a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. |
b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. |
8. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. |
9. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
10. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. |
This limitation applies to |
• anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and |
• claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. |
It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. |
Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French. |
Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français. |
EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues. |
LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. |
Cette limitation concerne : |
• tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et |
• les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur. |
Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. |
EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas. |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.