GithubHelp home page GithubHelp logo

zastrowm / win32interop.winhandles Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 14.0 15 KB

Provides an abstraction on-top of IntPtr for Win32 windows, and provides methods for interacting with Win32 windows

C# 100.00%

win32interop.winhandles's People

Contributors

zastrowm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

win32interop.winhandles's Issues

Exposed ProcessId on WindowHandle

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);

How to install Nuget package?

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"?

Feature Request: FindChildWindows extension method

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)

Add .NET Standard/.NET Core support

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.