的P / Invoke教程? [英] P/Invoke tutorials?

查看:200
本文介绍了的P / Invoke教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个很好的教程/电子书的推移纵深System.Runtime.InteropServices命名空间呢?我只是通过阅读关于如何使UAC盾牌按钮显示了这个教程了,现在我真的想了解这一点。

Does anyone know of a good tutorial/e-book that goes in depth on the System.Runtime.InteropServices namespace? I just got through reading this tutorial on how to make the UAC shield show up in a button and now I really want to learn this.

P.S。如何查找Windows系统文件要知道,一个方法存在显示一个按钮UAC盾牌?

P.S. How do look in the windows system files to know that a method exist to show a UAC shield in a button?

推荐答案

至于你的附注,你需要code为您提供的信息。您使用的SendMessage方法发送BCM_SETSHIELD消息到手柄(在此情况下,你的按钮的处理)应该显示它

As for your p.s., the code you need is in the information you provided. You use the SendMessage method to send the BCM_SETSHIELD message to a handle (in this case, the handle of your button) that should show it.

pinvoke.net是个好地方获得的本地函数的原型,但是如果你不知道你在找什么,这不是最好的。我建议MSDN的 Windows API的参考部分。您可以按字母顺序浏览功能,按类别,并通过Windows发行,全部用他们做什么的描述,它们返回什么,并控制他们的行动的标志选项。

pinvoke.net is a good place to get the prototypes of native functions, but if you don't know what you are looking for, it's not the best. I would suggest the Windows API reference section of MSDN. You can browse functions in alphabetical order, by category, and by Windows Release, all with descriptions of what they do, what they return and the flag options that control their actions.

这篇关于的P / Invoke教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆