See the question and my original answer on StackOverflow

This online tool MagnumDb as "Magic Number Database" (disclaimer: I wrote it) is a totally free seach engine that contains 99% of Windows SDK constants (around 380000 integers, enums, guids, interface ids, clsids, etc.).

You can query it by name or by value, using wildcards, etc., for example:

will get you this (name, type, value, hex value, SDK header file location):

MF_REMOVE   Int32   4096    0x00001000  %ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\winuser.rh(1213,0)