MCPcopy Create free account
hub / github.com/NetHack/NetHack / mswin_winid_from_handle

Function mswin_winid_from_handle

outdated/sys/wince/mswproc.c:831–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829}
830
831winid
832mswin_winid_from_handle(HWND hWnd)
833{
834 winid i = 0;
835
836 for (i = 1; i < MAXWINDOWS; i++)
837 if (GetNHApp()->windowlist[i].win == hWnd)
838 return i;
839 return -1;
840}
841
842winid
843mswin_winid_from_type(int type)

Callers 1

mswin_popup_destroyFunction · 0.70

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected