- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Windows API simple entry(Windows API简单入门).doc
Windows API simple entry(Windows API简单入门)
Windows API simple entry
Dont be surprised, although we have many WYSIWYG programming methods to develop many beautiful interfaces
With programs, these visual programming environments provide a large number of library classes and controls, but at the same time developers enjoy the convenience,
Their hands and feet have unwittingly been limited, and there are many operations that go deep into the Windows, they cant do it,
Why? Because the class library used does not support it.
In fact, these libraries and controls are built on top of the Window API, API, or Application
Programming Interface -- acronym for application programming interfaces, called not only for applications, but also for applications
As part of Windows, the Windows itself also calls these API functions. To understand how to use API, you have to
Explain some Windows operating mechanisms.
Simply put, Windows is an event driven preemptive multitasking operating system. Event driven is relative to process flooding
In dynamic terms, it changes the order of execution of the original file; since Windows is a multitasking system, it must be able to do both
To handle multiple events, the system generates a message queue for the application, which is posted and sent on top of the message, and the application only
It is possible to extract messages from their message queues and then execute them one by one.
Now, I will use the most basic example program, HelloWin, to illustrate the running mechanism of WIN32 API
First, a program must have access points. The entry point function of Win32 App is WinMain, and its prototype is as follows
Int, APIENTRY, WinMain (HINSTANCE, hInstance, HINSTANCE, hPrevInstance),
LPSTR, lpCmdLine, int, nCmdShow)
HInstance is the so-called instance handle, which is a numeric value that is used when the program is running under Windows
To uniquely indicate this program, although the user may run multiple programs at once, that is, running multipl
您可能关注的文档
- 竣工环境保护验收报告公示:氯化铵废水资源化回收再利用项目自主验收监测调查报告.doc
- 【其次看】听力一级重点【小卒过河】.doc
- 电子密码锁电路程序设计毕业论文(Electronic code lock circuit programming).doc
- 新视野大学英语综合教程 课文及课文翻译Unit.doc
- 申论热点剖析如何看待人肉搜索现象(Analysis on hothow to treat the human flesh search phenomenon).doc
- 天津年自考“工程图学及计算机绘图”课程考试大纲.doc
- 展会与电子商务的研究.doc
- 外贸英语句之 保险 Insurance.doc
- 自身免疫性甲状腺疾病的免疫学研究进展.doc
- 日语专业、年级精读课程教学法的改善.doc
文档评论(0)