C# equivalent HGlobal Pascal

Miroslav Radojević

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#?

David Heffernan

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);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related