-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '826d0959bc90c323a7acca5c814ed0a391be2a82' into dev
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
HawarqejeGemkowaheljaybege/HawarqejeGemkowaheljaybege/HawarqejeGemkowaheljaybege.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
31
HawarqejeGemkowaheljaybege/HawarqejeGemkowaheljaybege/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |