]> git.proxmox.com Git - rustc.git/blame - vendor/winapi/src/shared/windowsx.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / winapi / src / shared / windowsx.rs
CommitLineData
ff7c6d11
XL
1// Licensed under the Apache License, Version 2.0
2// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4// All files in the project carrying such notice may not be copied, modified, or distributed
5// except according to those terms.
6//! Macro APIs, window message crackers, and control APIs
7use ctypes::{c_int, c_short};
8use shared::minwindef::{DWORD, HIWORD, LOWORD, LPARAM};
9//1233
10#[inline]
11pub fn GET_X_LPARAM(lp: LPARAM) -> c_int {
12 LOWORD(lp as DWORD) as c_short as c_int
13}
14#[inline]
15pub fn GET_Y_LPARAM(lp: LPARAM) -> c_int {
16 HIWORD(lp as DWORD) as c_short as c_int
17}