Skip to content

Commit

Permalink
FindWindowA
Browse files Browse the repository at this point in the history
Function to find a window's handle by its title.
BTW, with `SW_HIDE` this is sometimes useful as a workaround for the lack of `-mwindows` in Cargo (rust-lang/cargo#544).
  • Loading branch information
ArtemGr committed Dec 15, 2014
1 parent af839d5 commit 89f67df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,12 @@ extern "system" {
lprc: *const RECT,
hbr: HBRUSH,
) -> c_int;
/// Retrieves a handle to the top-level window whose class name and window name match the specified strings.
/// cf. http://msdn.microsoft.com/library/windows/desktop/ms633499%28v=vs.85%29.aspx
pub fn FindWindowA (
lpClassName: LPCSTR,
lpWindowName: LPCSTR
) -> HWND;
pub fn GetClientRect(
hWnd: HWND,
lpRect: LPRECT,
Expand Down

0 comments on commit 89f67df

Please sign in to comment.