如何制作自己的winapi功能? [英] How to make your own winapi function?
本文介绍了如何制作自己的winapi功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以制作自己的winapi功能?
更具体地说,我想制作一个像GetPixel一样的函数,其参数相同(_In_ HDC hdc,_In_ int nXPos,_In_ int nYPos)。我应该知道什么样的信息来制作我自己的功能,它是windows或其他什么的秘密?
Thanx任何帮助:)
Is it possible to make your own winapi function?
To be more specific, I would like to make a function like GetPixel with identical parameters (_In_ HDC hdc,_In_ int nXPos, _In_ int nYPos). What information should I also know to make my own function, is it a secret of windows or something else?
Thanx for any help :)
推荐答案
当然你可以制作一个API
。
GetPixel-like 函数的代码可能会结束在调用实际的GetPixel
时,通常是API
利用现有的。
实现API
的秘诀是:使代码健壮,编写好文档(当然还有技术细节,比如创建一个DLL
或静态库)。
Of course you can make anAPI
.
The code for GetPixel-like function would probably end up in a call to the actualGetPixel
, that is often anAPI
leverages an existing one.
The secrets for implementing anAPI
are: make the code robust, write good documentation (there are technical details of course, like, for instance, creating aDLL
or a static library).
这篇关于如何制作自己的winapi功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文