The unmanaged structure is declared as a class, instead of as a managed structure, to show how a class can be used when the unmanaged function expects a pointer to a structure.
非托管结构被声明为类而不是托管结构,以显示当非托管函数需要一个指向结构的指针时可以如何使用类。
Unmanaged APIs that take functions Pointers as arguments can be called from managed code with a managed delegate in place of the native function pointer.
可以使用托管委托取代本机函数指针来从托管代码中调用以函数指针作为参数的非托管api。
These interfaces commonly perform the same function, but are exposed differently to managed and unmanaged objects.
这些接口通常执行相同的功能,但以不同的方式向托管和非托管对象公开。
The following example demonstrates passing an unmanaged array to a managed function.
下面的示例演示如何向托管函数传递非托管数组。
The following example demonstrates passing an unmanaged array to a managed function.
下面的示例演示如何向托管函数传递非托管数组。
应用推荐