pub(crate) fn init_window_class() -> Result<(), NwgError> {
    use winapi::um::libloaderapi::GetModuleHandleW;
    
    unsafe {
        let hmod = GetModuleHandleW(ptr::null_mut());
        if hmod.is_null() { return Err(NwgError::initialization("GetModuleHandleW failed")); }

        build_sysclass(hmod, "NativeWindowsGuiWindow", Some(blank_window_proc), None, None)?;
    }
    
    Ok(())
}
/// Create the window class for the base nwg window
Create the window class for the base nwg window
Create the window class for the base nwg window
pub(crate) fn init_window_class() -> Result<(), NwgError> {
    use winapi::um::libloaderapi::GetModuleHandleW;
    unsafe {
        let hmod = GetModuleHandleW(ptr::null_mut());
        if hmod.is_null() { return Err(NwgError::initialization("GetModuleHandleW failed")); }
        build_sysclass(hmod, "NativeWindowsGuiWindow", Some(blank_window_proc), None, None)?;
    }
    Ok(())
}
pub ( crate ) fn init_window_class ( ) -> Result < ( ) , NwgError > { use winapi :: um :: libloaderapi :: GetModuleHandleW ; unsafe { let hmod = GetModuleHandleW ( ptr :: null_mut ( ) ) ; if hmod . is_null ( ) { return Err ( NwgError :: initialization ( " " ) ) ; } build_sysclass ( hmod , " " , Some ( blank_window_proc ) , None , None ) ? ; } Ok ( ( ) ) }
Create the window class for the base nwg window
Create the window class for the base nwg window