开发者

windows API function [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be rea开发者_开发知识库sonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜