zastrowm / win32interop.winhandles Goto Github PK
View Code? Open in Web Editor NEWProvides an abstraction on-top of IntPtr for Win32 windows, and provides methods for interacting with Win32 windows
Provides an abstraction on-top of IntPtr for Win32 windows, and provides methods for interacting with Win32 windows
In my usage I need to lookup the process ID from the window handle, which I imagine might be a common task. It'd be cool if the WindowHandle already exposed that as a property. I use this to get it:
[DllImport("user32.dll", SetLastError = true)]
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint processId);
Hi,
how do I install the Nuget package? Nuget always throws this error for my .NET Framework 4.0 app:
PM> Install-Package Win32Interop.WinHandles
Es wird versucht, Abhängigkeitsinformationen für das Paket "Win32Interop.WinHandles.1.0.2" bezüglich des Projekts "MoreIntelligence" mit dem Ziel ".NETFramework,Version=v4.0" zu erfassen.
Es wird versucht, Abhängigkeiten für das Paket "Win32Interop.WinHandles.1.0.2" mit dem DependencyBehavior "Lowest" aufzulösen.
Aktionen zum Installieren des Pakets "Win32Interop.WinHandles.1.0.2" werden aufgelöst.
Aktionen zum Installieren des Pakets "Win32Interop.WinHandles.1.0.2" wurden aufgelöst.
Installationsfehler. Ein Rollback wird ausgeführt...
Das Paket "Win32Interop.WinHandles.1.0.2" ist im Projekt "MoreIntelligence" nicht vorhanden.
Das Paket "Win32Interop.WinHandles.1.0.2" ist im Ordner "C:\Users\ko110063\Documents\Visual Studio 2010\Projects\MoreIntelligence\packages" nicht vorhanden.
Install-Package : Das Paket "Win32Interop.WinHandles 1.0.2" konnte nicht installiert werden. Sie versuchen, dieses Paket in ein Projekt zu installieren, das sich auf
".NETFramework,Version=v4.0" bezieht, das Paket enthält aber keine Assemblyverweise oder Inhaltsdateien, die mit diesem Framework kompatibel sind. Wenden Sie sich an den
Paketersteller, um weitere Informationen zu erhalten.In Zeile:1 Zeichen:2
+ Install-Package Win32Interop.WinHandles
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
PM>
Sorry, the error message is German. It basically says that this package is not compatible with ".NETFramework,Version=v4.0"?
Would you be opposed to an extension method for finding child windows? e.g.
public static IEnumerable<WindowHandle> FindChildWindows(this WindowHandle parent, Predicate<WindowHandle> windowPredicate)
Looks like the package works with .NET Core, but generates warning messages since this targets .NET Framework. With .NET Framework deprecated, it'd be nice if this moved to .NET Core/.NET Standard.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.