/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/previewpane/common/cominterop/IInitializeWithFile.cs
25 строк
1015 B
Clint Rutkas
whitespace forced changes (#6002)
17 авг 2020, 20:00
Не верифицирован
17 авг 2020, 20:00
d055ba1
Код
Авторство
О чём код?
// 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; namespace Common.Cominterop { /// <summary> /// Exposes a method to initialize a handler, such as a property handler, thumbnail handler, or preview handler, with a file path. /// </summary> [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("b7d14566-0509-4cce-a71f-0a554233bd9b")] public interface IInitializeWithFile { /// <summary> /// Initializes a handler with a file path. /// </summary> /// <param name="pszFilePath">File Path.</param> /// <param name="grfMode">Indicate the Access Mode either STGM_READ (Read Only Access) or STGM_READWRITE (Read and Write Access).</param> void Initialize([MarshalAs(UnmanagedType.LPWStr)] string pszFilePath, uint grfMode); } }