2010年1月8日

To consume exported DLL functions 之三 Creating Prototypes in Managed Code

摘要: Creating Prototypes in Managed CodeThis topic describes how to access unmanaged functions and introduces several attribute fields that annotate method definition in managed code. For examples that dem... 阅读全文

posted @ 2010-01-08 17:05 Acor 阅读(198) 评论(0) 推荐(0) 编辑

To consume exported DLL functions 之二 Create a class to hold DLL functions.

摘要: Creating a Class to Hold DLL FunctionsWrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality. Although it is not mandatory to do so i... 阅读全文

posted @ 2010-01-08 16:49 Acor 阅读(226) 评论(0) 推荐(0) 编辑

To consume exported DLL functions 之一 Identifying Functions in DLLs

摘要: Identifying Functions in DLLsThe identity of a DLL function consists of the following elements: Function name or ordinalName of the DLL file in which the implementation can be foundFor example, specif... 阅读全文

posted @ 2010-01-08 16:28 Acor 阅读(286) 评论(0) 推荐(0) 编辑

Consuming Unmanaged DLL Functions 之一初识示例

摘要: Platform invoke is a service that enables managed code to call unmanaged functions implemented in dynamic link libraries (DLLs), such as those in the Win32 API. It locates and invokes an exported func... 阅读全文

posted @ 2010-01-08 15:42 Acor 阅读(239) 评论(0) 推荐(0) 编辑

导航