M
Matthew Wieder
I'm trying to implement uintMarshaler:ICustomMarshaler which will be
used to Marshal a uint as an integer. I have been unable to even find
any sample code anywhere that is helpful, so any help is appreciated. I
must implement:
class uintMarshaler : ICustomMarshaler
{
public static ICustomMarshaler GetInstance( string s )
{
return new uintMarshaler();
}
public object MarshalNativeToManaged(System.IntPtr pNativeData)
{
return null;
}
public System.IntPtr MarshalManagedToNative(object ManagedObj)
{
return new System.IntPtr ();
}
public void CleanUpManagedData(object ManagedObj)
{
}
public int GetNativeDataSize()
{
return 0;
}
public void CleanUpNativeData(System.IntPtr pNativeData)
{
}
}
used to Marshal a uint as an integer. I have been unable to even find
any sample code anywhere that is helpful, so any help is appreciated. I
must implement:
class uintMarshaler : ICustomMarshaler
{
public static ICustomMarshaler GetInstance( string s )
{
return new uintMarshaler();
}
public object MarshalNativeToManaged(System.IntPtr pNativeData)
{
return null;
}
public System.IntPtr MarshalManagedToNative(object ManagedObj)
{
return new System.IntPtr ();
}
public void CleanUpManagedData(object ManagedObj)
{
}
public int GetNativeDataSize()
{
return 0;
}
public void CleanUpNativeData(System.IntPtr pNativeData)
{
}
}