coastline 0.0.4
Loading...
Searching...
No Matches
window.h File Reference
#include <windows.h>
Include dependency graph for window.h:

Go to the source code of this file.

Functions

void __stdcall ShowEarMessage (const char *message)
 Show a message over the window of the game.
BOOL __stdcall PostEarWindowMessage (WPARAM event, LPARAM notification)
 Post an asynchronous playback notification to the assigned Windows window.
BOOL __stdcall EarAssignHwndExportWrapper (HWND window)
 Forward notification-window assignment to EAR_DLL_AssignHwnd().
BOOL __stdcall EAR_DLL_AssignHwnd (HWND window)
 Assign a valid window handle or search for the first enumerated window of this process.

Function Documentation

◆ ShowEarMessage()

void __stdcall ShowEarMessage ( const char * message)

Show a message over the window of the game.

Parameters
messageA non-null terminated message string, borrowed until the modal dialog closes.
Ghidra address:
EAR: 0x10003cbc

◆ PostEarWindowMessage()

BOOL __stdcall PostEarWindowMessage ( WPARAM event,
LPARAM notification )

Post an asynchronous playback notification to the assigned Windows window.

Parameters
eventThe event handle passed as WPARAM.
notificationThe notification code passed as LPARAM, normally one for start or two for end.
Returns
Whether Windows queued the message.
Ghidra address:
EAR: 0x10004ae6

◆ EarAssignHwndExportWrapper()

BOOL __stdcall EarAssignHwndExportWrapper ( HWND window)

Forward notification-window assignment to EAR_DLL_AssignHwnd().

Parameters
windowA borrowed window handle, or an invalid handle to search this process's windows.
Returns
Whether a valid notification window is assigned after the attempt.
Ghidra address:
EAR: 0x1000baa0

◆ EAR_DLL_AssignHwnd()

BOOL __stdcall EAR_DLL_AssignHwnd ( HWND window)

Assign a valid window handle or search for the first enumerated window of this process.

An unsuccessful search preserves a previously assigned valid window. Failure clears the window and records EAR error 0x21; success clears the last EAR error.

Parameters
windowA borrowed handle, valid while assigned, or an invalid handle to request discovery.
Returns
Whether a valid notification window is assigned after the attempt.
Ghidra address:
EAR: 0x1000bae5