public unsafe static xcb_query_tree_reply_t?query_tree_reply (IntPtr Connection, xcb_query_tree_cookie_t Cookie, out xcb_generic_error_t?Error) { IntPtr err = IntPtr.Zero; var reply = xcb_query_tree_reply(Connection, Cookie, ref err); if (reply == IntPtr.Zero) { Error = Marshal.PtrToStructure <xcb_generic_error_t>(err); return(new xcb_query_tree_reply_t()); } else { Error = new xcb_generic_error_t(); return(Marshal.PtrToStructure <xcb_query_tree_reply_t>(reply)); } }
private static extern IntPtr xcb_query_tree_reply (IntPtr Connection, xcb_query_tree_cookie_t cookie, ref IntPtr error);