/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/common/ManagedCsWin32/Shell32.cs
36 строк
1 KB
Yu Leng
[AOT] move some LibraryImport define to common to avoid dup code (#40006)
19 июн 2025, 08:45
Не верифицирован
19 июн 2025, 08:45
1020c5a
Код
Авторство
О чём код?
// 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 ManagedCsWin32; public static partial class Shell32 { [LibraryImport("SHELL32.dll", EntryPoint = "ShellExecuteExW", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static partial bool ShellExecuteEx(ref SHELLEXECUTEINFOW lpExecInfo); [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct SHELLEXECUTEINFOW { public uint CbSize; public uint FMask; public IntPtr Hwnd; public IntPtr LpVerb; public IntPtr LpFile; public IntPtr LpParameters; public IntPtr LpDirectory; public int Show; public IntPtr HInstApp; public IntPtr LpIDList; public IntPtr LpClass; public IntPtr HkeyClass; public uint DwHotKey; public IntPtr HIconOrMonitor; public IntPtr Process; } }