摘要:
_hread_hwrite_lclose_lcreat_llseek_lopen_lread_lwriteActivateActCtxAddAtomAAddAtomWAddConsoleAliasAAddConsoleAliasWAddLocalAlternateComputerNameAAddLocalAlternateComputerNameWAddRefActCtxAddVectoredExceptionHandlerAllocateUserPhysicalPagesAllocConsoleAreFileApisANSIAssignProcessToJobObjectAttachCons 阅读全文
posted @ 2010-07-09 16:07
cpcpc
阅读(1877)
评论(0)
推荐(0)
摘要:
API函数是构筑Windows应用程序的基石,是Windows编程的必备利器。每一种Windows应用程序开发工具都提供了间接或直接调用了WindowsAPI函数的方法,或者是调用WindowsAPI函数的接口,也就是说具备调用动态连接库的能力。VisualC#和其它开发工具一样也能够调用动态链接库的API函数。本文中笔者就结合实例向大家介绍在VisualC#中如何调用各种返回值的API,该实例就是一个通过API函数调用获取系统信息的程序。 在Visual C#中调用API的基本过程: 首先,在调用API之前,你必须先导入System.Runtime.InteropServices这个名称空间 阅读全文
posted @ 2010-07-09 09:50
cpcpc
阅读(341)
评论(0)
推荐(0)