public static int XLookupString(ref XKeyEvent event_struct, byte[] buf, out KeySym keysym, IntPtr status) { unsafe { fixed(byte *p = buf) { return(XLookupString(ref event_struct, (IntPtr)p, buf.Length, out keysym, status)); } } }
public static extern int XLookupString(ref XKeyEvent event_struct, IntPtr buf, int bytes_buffer, out KeySym keysym, IntPtr status);