ECMA 234 VOL 2-1995 Application Programming Interface for Windows Volume 2 Section 4 - System Services Section 5 - Application Support Functions《窗口用应用编程接口 第2卷第4节 系统服务 第5节 应用支持功能》.pdf
《ECMA 234 VOL 2-1995 Application Programming Interface for Windows Volume 2 Section 4 - System Services Section 5 - Application Support Functions《窗口用应用编程接口 第2卷第4节 系统服务 第5节 应用支持功能》.pdf》由会员分享,可在线阅读,更多相关《ECMA 234 VOL 2-1995 Application Programming Interface for Windows Volume 2 Section 4 - System Services Section 5 - Application Support Functions《窗口用应用编程接口 第2卷第4节 系统服务 第5节 应用支持功能》.pdf(102页珍藏版)》请在麦多课文档分享上搜索。
1、Standard ECMA-234December 1995Standardizing Information and Communication SystemsPhone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chApplication ProgrammingInterface for WindowsVolume 2Section 4 - System ServicesSection 5 - Application Support Function
2、sStandard ECMA-234December 1995Standardizing Information and Communication SystemsPhone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chGL E-234-V2.DOC 07-03-96 15,54Application ProgrammingInterface for WindowsBrief HistoryThe APIW Standard is a function
3、al specification of the Microsoft Windows 3.1 application programming interface. It is basedon existing implementations (including Microsoft and others) and behavior. The goal of writing this specification is to define anenvironment in which: applications written to this baseline will be portable to
4、 all implementations of the APIW Standard. the interface can be enriched through open standards processes to meet current and future user needs in a timely fashion.APIW uses the current C language binding, and reflects existing coding practices to ensure that current applications willconform to this
5、 standard. The APIs documented in this standard shall accurately reflect existing implementations of thewindows APIs. If an application that runs with an existing implementation uses one or more APIs contrary to the way it isdescribed in the standard, the standard will be changed to accurately refle
6、ct the behavior.The APIW Standard defines a set of application programming interfaces that allow for the creation of graphical applicationsspanning a wide range of capabilities. The standard groups these APIs into major functional areas including a window managerinterface, a graphics device interfac
7、e and interfaces necessary for accessing system resources and capabilities. The APIrequirements of todays major desktop applications are reflected in this specification and are the criteria for determining theAPIW content.The APIW Standard focuses on providing the necessary APIs for writing applicat
8、ions for the desktop, and also allowsadditional APIs to be bound to an application. This feature enables services outside the scope of a standard desktop applicationto be provided, for example, database, networking or other system services.The APIW Standard defines the basic graphical use interface
9、objects, such as buttons, scrollbars, menus, static and editcontrols, and the painting functions to draw them, such as area fill, and line and rectangle drawing. Finally, a rich set of textroutines in defined, from simple text output to more complex text output routines using multiple founts and fon
10、t styles, allsupporting the use of color.The APIW Standard is documented in five sections, corresponding loosely to the four functional subsystems represented by theAPI and the conformance clause. The four APIW sections cover window management, graphical interface, system services andan application
11、support services section. These functions cover window creation and management, graphics routines to paint textand other graphics objects in those windows, functions to access system resources such as files and timers, and finally, commonsupport functions to accelerate the development of graphical w
12、indow-based applications.The APIW Window Subsystem section of the standard covers the creation, deletion and management of the window, includingwindow positioning and sizing and the sending and receiving of messages. Within each of these window managementsubsections are routines that significantly e
13、xtend the basic functions. With window creation, there are many types of windowsthat can be created including built-in classes and user-definable classes, that have the ability to modify the style of any one ofthe built-in classes. Additional functions are defined to affect the display of a window,
14、including functions to modify thewindows menu, scrollbars, and the display of carets or cursors within the window. With multiple overlapped windows beingdisplayed simultaneously, functions are defined to manage the position and size of those windows, as well as to control thevisibility of a window a
15、nd its associated icon when it is minimized.The APIW Window Subsystem section also defines a set of functions for managing a subset of the user interface, referred to asdialog boxes. These functions allow for the creation and management of the dialog box, as well as the user interaction with thedial
16、og box up to its closure. Utility functions are defined to make designing and using a dialog box easier. These utilitiesprovide common dialog box functions, such as group boxes and check boxes, as well as file interface functions to list files anddirectories. Each of these dialog boxes are controlle
17、d by the use of dialog box templates that are stored in resource files.The APIW Graphics Subsystem section covers all aspects of actually drawing in a window. These aspects include line drawing,text output, graphics primitives, such as rectangles and ellipses, as well as more sophisticated routines
18、such as floodfill(),bitblts() and stretchblt(). The Graphics Device Interface defines bitmaps, icons, cursors and carets, as well as functions toprovide for a portable graphics file format called metafiles. The Graphics Device Interface defines a logical coordinate space tofurther abstract the under
19、lying hardware and has functions to map between the logical and physical coordinate space. TheGraphics Device Interface defines utility functions for all drawing routines that use pens, brushes and regions to get precisecontrol over how graphical objects will be drawn.The APIW System Services sectio
20、n defines platform-independent routines for an application to query the system environmentand access system services. System services that may be accessed include memory, timers, the keyboard and the native filesystem. There are subsections that deal with resources, device I/O and system diagnostic
21、routines. Resource managementallows for the loading and unloading of user- and system-defined resources, such as icons, bitmaps and strings. Device I/Oincludes both parallel and serial port input and output operations. System diagnostic routines enable an application ordiagnostic tool to examine the
22、 state of an application, including memory utilization, task information and stack usage.The APIW Application Support Function section defines miscellaneous functions that can be used by a developer in anapplication. These utility functions define built-in services that a developer does not have to
23、rewrite with each application.These service functions include debugging routines and simple user interface routines to provide graphical feedback to a user.They also include routines for file compression and decompression, standardized routines to retrieve application versioninformation and routines
24、 to manage initialization files.Adopted as an ECMA Standard by the General Assembly of December 1995.- i -Table of contentsSection 4 - System Services 1305 GetFreeSystemResources 1306 SystemParametersInfo 1307 GetWinFlags 6308 GetSystemMetrics 7309 GetVersion 8310 SetTimer, TimerProc, KillTimer 9311
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ECMA234VOL21995APPLICATIONPROGRAMMINGINTERFACEFORWINDOWSVOLUME2SECTION4SYSTEMSERVICESSECTION5APPLICATIONSUPPORTFUNCTIONS

链接地址:http://www.mydoc123.com/p-704696.html