GetDlgCtrlID

[DllImport("user32.dll", SetLastError = true)]
public static extern int GetDlgCtrlID(
   IntPtr hwndCtl
);

Microsoft documentation: Link

Last updated