/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/previewpane/common/cominterop/IInitializeWithStream.cs
26 строк
1 KB
Aaron Junker
[Docs]Replace docs.micrososft.com with learn.microsoft.com (#20662)
28 сен 2022, 19:18
Не верифицирован
28 сен 2022, 19:18
4e202e4
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace Common.ComInterlop { /// <summary> /// Exposes a method that initializes a handler, such as a property handler, thumbnail handler, or preview handler, with a stream. /// </summary> [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("b824b49d-22ac-4161-ac8a-9916e8fa3f7f")] public interface IInitializeWithStream { /// <summary> /// Initializes a handler with a stream. /// </summary> /// <param name="pstream">A pointer to an <see cref="IStream" /> interface that represents the stream source.</param> /// <param name="grfMode">One of the <see href="https://learn.microsoft.com/windows/win32/stg/stgm-constants" >STGM</see> values that indicates the access mode for <paramref name="pstream"/>.</param> void Initialize(IStream pstream, uint grfMode); } }