#![allow(non_camel_case_types, non_snake_case)]
use crate::co;
use crate::decl::*;
use crate::ole::privs::*;
use crate::prelude::*;
use crate::shell::vts::*;
com_interface! { IModalWindow: "b4db1657-70d7-485e-8e3e-6fcb5a5c1802";
}
impl shell_IModalWindow for IModalWindow {}
pub trait shell_IModalWindow: ole_IUnknown {
fn Show(&self, hwnd_owner: &HWND) -> HrResult<bool> {
const CANCELLED: co::HRESULT = co::ERROR::CANCELLED.to_hresult();
match unsafe {
co::HRESULT::from_raw((vt::<IModalWindowVT>(self).Show)(self.ptr(), hwnd_owner.ptr()))
} {
co::HRESULT::S_OK => Ok(true),
CANCELLED => Ok(false),
e => Err(e),
}
}
}