I'm converting the pascal interface into C#. What is the C# equivalent of the HGlobal
data type?
type
SomeFunction= function(var global : HGlobal) : integer; cdecl;
How would SomeFunction
be declared in C#?
What is the C# equivalent of the
HGlobal
data type?
The equivalent type is IntPtr
.
How would
SomeFunction
be declared in C#?
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int SomeFunction(ref IntPtr global);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.