Is there a way in ghidra to change decompiled switch statement case values to their names?
I'm looking at a WndProc function, with a prototype of
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam). Inside the function are a number of switch statements based on the
msg UINT, which ghidra calls
param_2. The uint values are defined in
winuser.h. I want to change all the spots
param_2 is compared in the decompilation so it uses the winuser.h names instead of the uint values, for example, change
if (param_2 != 0x100) to
if (param_2 != WM_KEYDOWN), for all the
param_2 checks in a given function.