public ErrorCode(IntPtr h) { handle = new HandleRef(this, h); ErrorCode_Message_Get(handle, sb, sb.Capacity); message = sb.ToString(); Value = ErrorCode_Value_Get(handle); }
private void CleanUp() { ErrorCode_Destroy(handle); handle = new HandleRef(this, IntPtr.Zero); }
public static extern void ErrorCode_Message_Get(ErrorCodeHandle handle, StringBuilder str, int size);
public static extern int ErrorCode_Value_Get(ErrorCodeHandle handle);
public static extern IntPtr ErrorCode_Destroy(ErrorCodeHandle handle);