private static IntPtr Create(Context context, string name) { IntPtr handle; UInt32 status = OpenNIImporter.xnCreateMockNode(context.InternalObject, NodeType.IR, name, out handle); WrapperUtils.CheckStatus(status); return(handle); }