Skip to content

Commit

Permalink
Merge commit '826d0959bc90c323a7acca5c814ed0a391be2a82' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Oct 31, 2023
2 parents 8da9c69 + 826d095 commit 849733b
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
25 changes: 25 additions & 0 deletions HawarqejeGemkowaheljaybege/HawarqejeGemkowaheljaybege.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33829.357
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HawarqejeGemkowaheljaybege", "HawarqejeGemkowaheljaybege\HawarqejeGemkowaheljaybege.csproj", "{2C5A9803-A1D1-4936-A173-A985C19CB04C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2C5A9803-A1D1-4936-A173-A985C19CB04C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2C5A9803-A1D1-4936-A173-A985C19CB04C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2C5A9803-A1D1-4936-A173-A985C19CB04C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2C5A9803-A1D1-4936-A173-A985C19CB04C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F8E1E373-62F3-49D4-BF56-74918576BBDE}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net45</TargetFramework>
<UseWpf>true</UseWpf>
</PropertyGroup>

</Project>
31 changes: 31 additions & 0 deletions HawarqejeGemkowaheljaybege/HawarqejeGemkowaheljaybege/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using System.Windows;

namespace HawarqejeGemkowaheljaybege
{
internal class Program
{
[STAThread]
static void Main(string[] args)
{
var application = new Application();
application.Startup += (sender, eventArgs) =>
{
var window = new Window();
window.Loaded += Window_Loaded;
window.Show();
};
application.Run();
}

private static void Window_Loaded(object sender, RoutedEventArgs e)
{
var hwnd = GetOpenClipboardWindow();
Console.WriteLine($"占用剪贴板 HWND={hwnd} LastError={Marshal.GetLastWin32Error()}");
}

[DllImport("User32", SetLastError = true)]
extern static int GetOpenClipboardWindow();
}
}

0 comments on commit 849733b

Please sign in to comment.