To consume exported DLL functions 之四 Call a DLL function

Calling a DLL Function

Although calling unmanaged DLL functions is nearly identical to calling other managed code, there are differences that can make DLL functions seem confusing at first. This section introduces topics that describe some of the unusual calling-related issues.

Passing Structures

Identifies the issues of passing data structures with a predefined layout.

Callback Functions

Provides basic information about callback functions.

How to: Implement Callback Functions

Describes how to implement callback functions in managed code.

Consuming Unmanaged DLL Functions

Describes how to call unmanaged DLL functions using platform invoke.

Marshaling Data with Platform Invoke

Describes how to declare method parameters and pass arguments to functions exported by unmanaged libraries.

posted on 2010-01-09 11:13  Acor  阅读(182)  评论(0编辑  收藏  举报

导航