public static int XGetClassHint(IntPtr x11display, IntPtr x11window, out XClassHint classHint) { _XClassHint _classHint = _XClassHint.Zero; if (_XGetClassHint(x11display, x11window, ref _classHint) == (TInt)0) { XFree(_classHint.res_name); classHint = XClassHint.Zero; return(0); } else { classHint = new XClassHint(); classHint.res_name = (string)Marshal.PtrToStringAnsi(_classHint.res_name); classHint.res_class = (string)Marshal.PtrToStringAnsi(_classHint.res_class); XFree(_classHint.res_name); XFree(_classHint.res_class); return(1); } }
extern private static TInt _XGetClassHint(IntPtr x11display, IntPtr x11window, ref _XClassHint classHint);