/// Attempts to gracefully close the applications
Attempts to gracefully close the applications
Attempts to gracefully close the applications
pub fn close(&self) -> io::Result<()> {
        unsafe {
            if PostMessageW(self.hwnd, MessageType::Close as u32, 0, 0) {
                // Success!
                Ok(())
            } else {
                // PostMessageW() error
                Err(io::Error::last_os_error())
            }
        }
    }
pub fn close ( & self ) -> io :: Result < ( ) > { unsafe { if PostMessageW ( self . hwnd , MessageType :: Close as u32 , 0 , 0 ) { // Success! Ok ( ( ) ) } else { // PostMessageW() error Err ( io :: Error :: last_os_error ( ) ) } } }
Attempts to gracefully close the applications
Attempts to gracefully close the applications
&self