windows API function [closed]
I want to use the windows API function- findwindowex
Can a breakdown of the types of class-s function can have, and what things belong to a class. Thanks, Ariel
PInvoke.net will show you how to setup your P/Invoke so that you can call the method from managed code (assuming that's what you want to know.)
pinvoke.net is a great site for familiarizing yourself with WIN32 APIs, or for reference, complete with sample usages.
http://www.pinvoke.net/default.aspx/user32.findwindowex
It's hard to understand your question, but this link shows how it is possible to call FindWindowEx
from C# application.
Basically, you declare it like that:
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
and then call it:
handle = FindWindowEx(hwnd, IntPtr.Zero, "WindowName", IntPtr.Zero);
A great source of information for calling windows APIs from c# is the pinvoke site.
It has a list of the api's, examples of how to use most. And it also has other options in .net for several APIs
精彩评论