March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,9 +1,8 @@
|
|||
// rust 0.9-pre
|
||||
// rustc 0.9 (7613b15 2014-01-08 18:04:43 -0800)
|
||||
|
||||
use std::libc::types::os::arch::extra::{BOOL, HANDLE};
|
||||
use std::libc::{BOOL, HANDLE, LONG};
|
||||
use std::ptr::mut_null;
|
||||
|
||||
type LONG = i32;
|
||||
type HWND = HANDLE;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
@ -14,9 +13,9 @@ struct POINT {
|
|||
|
||||
#[link_name = "user32"]
|
||||
extern "system" {
|
||||
pub fn GetCursorPos(lpPoint:&mut POINT) -> BOOL;
|
||||
pub fn GetForegroundWindow() -> HWND;
|
||||
pub fn ScreenToClient(hWnd:HWND, lpPoint:&mut POINT);
|
||||
fn GetCursorPos(lpPoint:&mut POINT) -> BOOL;
|
||||
fn GetForegroundWindow() -> HWND;
|
||||
fn ScreenToClient(hWnd:HWND, lpPoint:&mut POINT);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue