public static extern int RunGnollHack( [MarshalAs(UnmanagedType.LPStr)] string gnhdir, [MarshalAs(UnmanagedType.LPStr)] string cmdlineargs, ulong runflags, ulong wincaps1, ulong wincaps2, VoidVoidCallback callback_init_nhwindows, IntVoidCallback callback_player_selection, CharVoidCallback callback_askname, VoidVoidCallback callback_get_nh_event, VoidConstCharCallback callback_exit_nhwindows, VoidConstCharCallback callback_suspend_nhwindows, VoidVoidCallback callback_resume_nhwindows, IntIntCallback callback_create_nhwindow, VoidIntCallback callback_clear_nhwindow, VoidIntBooleanCallback callback_display_nhwindow, VoidIntCallback callback_destroy_nhwindow, VoidIntIntIntCallback callback_curs, PutStrExColorCallback callback_putstr_ex, PutStrExColorCallback callback_putmixed_ex, VoidConstCharBooleanCallback callback_display_file, StartMenuCallback callback_start_menu_ex, AddMenuCallback callback_add_menu, AddExtendedMenuCallback callback_add_extended_menu, EndMenuCallback callback_end_menu_ex, IntIntIntOutIntCallback callback_select_menu, VoidIntCallback callback_message_menu, /* no need for X-specific handling */ VoidVoidCallback callback_update_inventory, VoidVoidCallback callback_mark_synch, VoidVoidCallback callback_wait_synch, /* If clipping is on */ VoidIntIntBooleanCallback callback_cliparound, /* If positionbar is on */ VoidCharCallback callback_update_positionbar, PrintGlyphCallback callback_print_glyph, VoidIntCallback callback_init_print_glyph, VoidConstCharCallback callback_raw_print, VoidConstCharCallback callback_raw_print_bold, IntVoidCallback callback_nhgetch, NhPosKeyCallback callback_nh_poskey, VoidVoidCallback callback_nhbell, IntVoidCallback callback_doprev_message, IntIntIntConstCharPtrConstCharPtrCharPtrCallback callback_yn_function_ex, GetLineCallback callback_getlin_ex, IntVoidCallback callback_get_ext_cmd, VoidIntCallback callback_number_pad, VoidVoidCallback callback_delay_output, VoidIntCallback callback_delay_output_milliseconds, VoidIntCallback callback_delay_output_intervals, VoidVoidCallback callback_change_color, VoidIntCallback callback_change_background, VoidIntCallback callback_set_font_name, CharVoidCallback callback_get_color_string, VoidVoidCallback callback_start_screen, VoidVoidCallback callback_end_screen, VoidIntCallback callback_outrip, VoidConstCharCallback callback_preference_update, CharPtrBooleanCallback callback_getmsghistory, VoidConstCharBooleanCallback callback_putmsghistory, VoidVoidCallback callback_status_init, VoidVoidCallback callback_status_finish, VoidIntConstCharPtrConstCharPtrBooleanCallback callback_status_enablefield, StatusUpdateCallback callback_status_update, BooleanVoidCallback callback_can_suspend_yes, VoidVoidCallback callback_stretch_window, VoidUlongCallback callback_set_animation_timer_interval, VoidIntCallback callback_open_special_view, StopAllSoundsCallback callback_stop_all_sounds, PlayImmediateSoundCallback callback_play_immediate_ghsound, BooleanIntDoubleCallback callback_play_ghsound_occupation_ambient, BooleanIntDoubleCallback callback_play_ghsound_effect_ambient, BooleanDoubleCallback callback_set_effect_ambient_volume, PlayMusicCallback callback_play_ghsound_music, BooleanDoubleCallback callback_play_ghsound_level_ambient, BooleanDoubleCallback callback_play_ghsound_environment_ambient, BooleanDoubleDoubleDoubleDoubleDoubleCallback callback_adjust_ghsound_general_volumes, BooleanIntDoubleVoidPtrCallback callback_add_ambient_ghsound, BooleanVoidPtrCallback callback_delete_ambient_ghsound, BooleanDoubleVoidPtrCallback callback_set_ambient_ghsound_volume, VoidVoidCallback callback_clear_context_menu, AddContextMenuCallback callback_add_context_menu, ToggleAnimationTimerCallback callback_toggle_animation_timer, DisplayFloatingTextCallback callback_display_floating_text, DisplayScreenTextCallback callback_display_screen_text, UpdateCursorCallback callback_update_cursor, VoidIntCallback callback_exit_hack, CharVoidCallback callback_getcwd, IntCharCharUintCallback callback_messagebox, VoidIntCallback callback_outrip_begin, VoidIntCallback callback_outrip_end, FreeMemoryCallback callback_free_memory, SendObjectDataCallback callback_send_object_data );
public static extern int RunGnollHackSimple2( ulong wincaps1, ulong wincaps2, VoidVoidCallback callback_init_nhwindows);