title: Get the (resource) ID from hWnd
body: <p>In ResourceHacker, when you open an executable (windows), you can see identifiers associated with dialogs. Does anyone have an idea from where they come? I mean, how can I do the same in my C++ program to get the ID from a HWND?</p>
  
  <p>BTW, GetWindowLong(hwnd, GWL_ID) returns 0.</p>
  
  <p>Thanks</p>