public static unsafe void ProcessAppCommand(ref WindowMessage msg, EventedWindowCore window) { fixed(WindowMessage *ptr = &msg) { var packet = new AppCommandPacket(ptr); window.OnAppCommand(ref packet); } }
protected internal virtual void OnAppCommand(ref AppCommandPacket packet) { unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); } }