Skip to content

Instantly share code, notes, and snippets.

use winapi::shared::minwindef::{ BOOL, LPARAM };
use winapi::shared::windef::{ HWND };
use winapi::um::winuser::{ EnumWindows, IsWindowVisible };
#[derive(Debug)]
struct Window {
h_wnd: HWND
}
fn main() {
extern crate futures;
extern crate tokio_core;
extern crate tokio;
use std::{env, io};
use std::net::SocketAddr;
use std::sync::mpsc::{ channel, Sender, Receiver };
use futures::{ Future, Poll };
use tokio_core::net::UdpSocket;