public static extern int UnmanagedRegisterEventHandler(IntPtr handle, uint type, UnmanagedHaggleCallback handler, IntPtr arg);