---
name: "al_win_remove_window_callback"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_win_remove_window_callback/3alleg5"
---

# al\_win\_remove\_window\_callback(3alleg5)

Allegro 5 API

## NAME

al\_win\_remove\_window\_callback - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_windows.h>
  bool al_win_remove_window_callback(ALLEGRO_DISPLAY *display,
     bool (*callback)(ALLEGRO_DISPLAY *display, UINT message, WPARAM wparam,
     LPARAM lparam, LRESULT *result, void *userdata), void *userdata)
  ```

## DESCRIPTION

Removes the callback that was previously registered with al\_win\_add\_window\_callback(3alleg5). The `userdata` pointer must be the same as what was used during the registration of the callback.

Returns true if the callback was removed.

## SINCE

5\.1.2
