[INFO] crate wcolor 0.1.1 is already in cache
[INFO] checking wcolor-0.1.1 against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] extracting crate wcolor 0.1.1 into /workspace/builds/worker-14/source
[INFO] validating manifest of crates.io crate wcolor 0.1.1 on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking crates.io crate wcolor 0.1.1
[INFO] finished tweaking crates.io crate wcolor 0.1.1
[INFO] tweaked toml for crates.io crate wcolor 0.1.1 written to /workspace/builds/worker-14/source/Cargo.toml
[INFO] crate crates.io crate wcolor 0.1.1 already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 56807c9b56fbcc605de89541f2290acf191035d5f7052bcc19361489b487bd22
[INFO] running `"docker" "start" "-a" "56807c9b56fbcc605de89541f2290acf191035d5f7052bcc19361489b487bd22"`
[INFO] [stderr]    Compiling syn v1.0.14
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]     Checking wio v0.2.2
[INFO] [stderr]    Compiling syn-mid v0.5.0
[INFO] [stderr]    Compiling rustversion v1.0.2
[INFO] [stderr]    Compiling proc-macro-error v0.4.9
[INFO] [stderr]    Compiling proc-macro-error-attr v0.4.9
[INFO] [stderr]    Compiling structopt-derive v0.4.2
[INFO] [stderr]     Checking structopt v0.3.9
[INFO] [stderr]     Checking wcolor v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::um::wingdi::GetPixel;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::um::winnt::HRESULT;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::um::winuser::*;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::shared::minwindef::{LPARAM, LRESULT, WPARAM};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::shared::windef::{HDC, COLORREF};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::winerror::S_OK;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/color.rs:1:13
[INFO] [stderr]   |
[INFO] [stderr] 1 | use winapi::shared::d3d9types::D3DCOLORVALUE;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::wide`
[INFO] [stderr]   --> src/win.rs:14:10
[INFO] [stderr]    |
[INFO] [stderr] 14 | use wio::wide::ToWide;
[INFO] [stderr]    |          ^^^^ could not find `wide` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::com`
[INFO] [stderr]  --> src/preview.rs:8:10
[INFO] [stderr]   |
[INFO] [stderr] 8 | use wio::com::ComPtr;
[INFO] [stderr]   |          ^^^ could not find `com` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::wide`
[INFO] [stderr]  --> src/preview.rs:9:10
[INFO] [stderr]   |
[INFO] [stderr] 9 | use wio::wide::ToWide;
[INFO] [stderr]   |          ^^^^ could not find `wide` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::um::dcommon::{D2D1_PIXEL_FORMAT, D2D1_ALPHA_MODE_PREMULTIPLIED};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::dcomp::{DCompositionCreateDevice, IDCompositionDevice, IDCompositionTarget, IDCompositionVisual};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::d3dcommon::D3D_DRIVER_TYPE_HARDWARE;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::um::winuser::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::d2d1::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:18:13
[INFO] [stderr]    |
[INFO] [stderr] 18 | use winapi::um::d2d1_1::{ID2D1Bitmap1, D2D1_BITMAP_PROPERTIES1, D2D1_DEVICE_CONTEXT_OPTIONS_NONE, D2D1_BITMAP_OPTIONS_TARGET, D2D1_BITMAP_OPTIONS_CANNOT_DRAW};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:19:13
[INFO] [stderr]    |
[INFO] [stderr] 19 | use winapi::um::d2d1_2::{ID2D1Device1, ID2D1Factory2, ID2D1DeviceContext1, ID2D1GeometryRealization};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:20:13
[INFO] [stderr]    |
[INFO] [stderr] 20 | use winapi::um::d3d11::{D3D11CreateDevice, ID3D11Device, D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:22:13
[INFO] [stderr]    |
[INFO] [stderr] 22 | use winapi::shared::winerror::HRESULT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:23:13
[INFO] [stderr]    |
[INFO] [stderr] 23 | use winapi::shared::windef::{HWND, RECT, POINT};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:24:13
[INFO] [stderr]    |
[INFO] [stderr] 24 | use winapi::shared::minwindef::LRESULT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 | use winapi::shared::dxgi::*;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:26:13
[INFO] [stderr]    |
[INFO] [stderr] 26 | use winapi::shared::dxgi1_2::*;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:27:13
[INFO] [stderr]    |
[INFO] [stderr] 27 | use winapi::shared::dxgi1_3::{CreateDXGIFactory2, DXGI_CREATE_FACTORY_DEBUG};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:28:13
[INFO] [stderr]    |
[INFO] [stderr] 28 | use winapi::shared::dxgiformat::DXGI_FORMAT_B8G8R8A8_UNORM;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 | use winapi::shared::d3d9types::D3DCOLORVALUE;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:30:13
[INFO] [stderr]    |
[INFO] [stderr] 30 | use winapi::shared::dxgitype::{DXGI_SAMPLE_DESC, DXGI_USAGE_RENDER_TARGET_OUTPUT};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/main.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::shared::windef::POINT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/main.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::winuser::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/main.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::processthreadsapi::GetCurrentThreadId;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::Interface`
[INFO] [stderr]   --> src/preview.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::Interface;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^ no `Interface` in the root
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `D3DCOLORVALUE`
[INFO] [stderr]   --> src/preview.rs:47:25
[INFO] [stderr]    |
[INFO] [stderr] 47 |         let d3d_color = D3DCOLORVALUE::from(color);
[INFO] [stderr]    |                         ^^^^^^^^^^^^^ use of undeclared type or module `D3DCOLORVALUE`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `WNDCLASSW`
[INFO] [stderr]    --> src/preview.rs:118:15
[INFO] [stderr]     |
[INFO] [stderr] 118 |             ..WNDCLASSW::default()
[INFO] [stderr]     |               ^^^^^^^^^ use of undeclared type or module `WNDCLASSW`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]    --> src/preview.rs:123:21
[INFO] [stderr]     |
[INFO] [stderr] 123 |         let mut p = POINT::default();
[INFO] [stderr]     |                     ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::um::wingdi::GetPixel;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::um::winnt::HRESULT;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/win.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::um::winuser::*;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::shared::minwindef::{LPARAM, LRESULT, WPARAM};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::shared::windef::{HDC, COLORREF};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/win.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::winerror::S_OK;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/color.rs:1:13
[INFO] [stderr]   |
[INFO] [stderr] 1 | use winapi::shared::d3d9types::D3DCOLORVALUE;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::wide`
[INFO] [stderr]   --> src/win.rs:14:10
[INFO] [stderr]    |
[INFO] [stderr] 14 | use wio::wide::ToWide;
[INFO] [stderr]    |          ^^^^ could not find `wide` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::com`
[INFO] [stderr]  --> src/preview.rs:8:10
[INFO] [stderr]   |
[INFO] [stderr] 8 | use wio::com::ComPtr;
[INFO] [stderr]   |          ^^^ could not find `com` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `wio::wide`
[INFO] [stderr]  --> src/preview.rs:9:10
[INFO] [stderr]   |
[INFO] [stderr] 9 | use wio::wide::ToWide;
[INFO] [stderr]   |          ^^^^ could not find `wide` in `wio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::um::dcommon::{D2D1_PIXEL_FORMAT, D2D1_ALPHA_MODE_PREMULTIPLIED};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::dcomp::{DCompositionCreateDevice, IDCompositionDevice, IDCompositionTarget, IDCompositionVisual};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::d3dcommon::D3D_DRIVER_TYPE_HARDWARE;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::um::winuser::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::d2d1::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:18:13
[INFO] [stderr]    |
[INFO] [stderr] 18 | use winapi::um::d2d1_1::{ID2D1Bitmap1, D2D1_BITMAP_PROPERTIES1, D2D1_DEVICE_CONTEXT_OPTIONS_NONE, D2D1_BITMAP_OPTIONS_TARGET, D2D1_BITMAP_OPTIONS_CANNOT_DRAW};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:19:13
[INFO] [stderr]    |
[INFO] [stderr] 19 | use winapi::um::d2d1_2::{ID2D1Device1, ID2D1Factory2, ID2D1DeviceContext1, ID2D1GeometryRealization};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/preview.rs:20:13
[INFO] [stderr]    |
[INFO] [stderr] 20 | use winapi::um::d3d11::{D3D11CreateDevice, ID3D11Device, D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:22:13
[INFO] [stderr]    |
[INFO] [stderr] 22 | use winapi::shared::winerror::HRESULT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:23:13
[INFO] [stderr]    |
[INFO] [stderr] 23 | use winapi::shared::windef::{HWND, RECT, POINT};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:24:13
[INFO] [stderr]    |
[INFO] [stderr] 24 | use winapi::shared::minwindef::LRESULT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 | use winapi::shared::dxgi::*;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:26:13
[INFO] [stderr]    |
[INFO] [stderr] 26 | use winapi::shared::dxgi1_2::*;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:27:13
[INFO] [stderr]    |
[INFO] [stderr] 27 | use winapi::shared::dxgi1_3::{CreateDXGIFactory2, DXGI_CREATE_FACTORY_DEBUG};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:28:13
[INFO] [stderr]    |
[INFO] [stderr] 28 | use winapi::shared::dxgiformat::DXGI_FORMAT_B8G8R8A8_UNORM;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 | use winapi::shared::d3d9types::D3DCOLORVALUE;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/preview.rs:30:13
[INFO] [stderr]    |
[INFO] [stderr] 30 | use winapi::shared::dxgitype::{DXGI_SAMPLE_DESC, DXGI_USAGE_RENDER_TARGET_OUTPUT};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/main.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::shared::windef::POINT;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/main.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::winuser::*;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/main.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::processthreadsapi::GetCurrentThreadId;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::Interface`
[INFO] [stderr]   --> src/preview.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::Interface;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^ no `Interface` in the root
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ID2D1Factory2`
[INFO] [stderr]    --> src/preview.rs:203:66
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                                                                  ^^^^^^^^^^^^^ use of undeclared type or module `ID2D1Factory2`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDXGIFactory2`
[INFO] [stderr]    --> src/preview.rs:224:100
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                                                                    ^^^^^^^^^^^^^ use of undeclared type or module `IDXGIFactory2`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `D3DCOLORVALUE`
[INFO] [stderr]   --> src/preview.rs:47:25
[INFO] [stderr]    |
[INFO] [stderr] 47 |         let d3d_color = D3DCOLORVALUE::from(color);
[INFO] [stderr]    |                         ^^^^^^^^^^^^^ use of undeclared type or module `D3DCOLORVALUE`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDXGISurface2`
[INFO] [stderr]    --> src/preview.rs:255:40
[INFO] [stderr]     |
[INFO] [stderr] 255 |         hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?;
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^ use of undeclared type or module `IDXGISurface2`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `WNDCLASSW`
[INFO] [stderr]    --> src/preview.rs:118:15
[INFO] [stderr]     |
[INFO] [stderr] 118 |             ..WNDCLASSW::default()
[INFO] [stderr]     |               ^^^^^^^^^ use of undeclared type or module `WNDCLASSW`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]    --> src/preview.rs:123:21
[INFO] [stderr]     |
[INFO] [stderr] 123 |         let mut p = POINT::default();
[INFO] [stderr]     |                     ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDCompositionDevice`
[INFO] [stderr]    --> src/preview.rs:277:55
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |                                                       ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `IDCompositionDevice`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `MSG`
[INFO] [stderr]   --> src/main.rs:41:23
[INFO] [stderr]    |
[INFO] [stderr] 41 |         let mut msg = MSG::default();
[INFO] [stderr]    |                       ^^^ use of undeclared type or module `MSG`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]   --> src/main.rs:46:21
[INFO] [stderr]    |
[INFO] [stderr] 46 |         let mut p = POINT::default();
[INFO] [stderr]    |                     ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]   --> src/main.rs:84:26
[INFO] [stderr]    |
[INFO] [stderr] 84 |             let mut pt = POINT::default();
[INFO] [stderr]    |                          ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `MSG`
[INFO] [stderr]    --> src/main.rs:102:19
[INFO] [stderr]     |
[INFO] [stderr] 102 |     let mut msg = MSG::default();
[INFO] [stderr]     |                   ^^^ use of undeclared type or module `MSG`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:18:17
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> {
[INFO] [stderr]    |                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:18:40
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> {
[INFO] [stderr]    |          -                             ^^^^^^^ not found in this scope
[INFO] [stderr]    |          |
[INFO] [stderr]    |          help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/win.rs:32:66
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/win.rs:32:83
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:32:94
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stderr]   --> src/win.rs:34:16
[INFO] [stderr]    |
[INFO] [stderr] 34 |         return CallNextHookEx(null_mut(), code, w_param, l_param);
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/win.rs:39:13
[INFO] [stderr]    |
[INFO] [stderr] 39 |             PostQuitMessage(0);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stderr]   --> src/win.rs:45:12
[INFO] [stderr]    |
[INFO] [stderr] 45 |     return CallNextHookEx(null_mut(), code, w_param, l_param);
[INFO] [stderr]    |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]   --> src/win.rs:48:22
[INFO] [stderr]    |
[INFO] [stderr] 48 | pub fn color_at(hdc: HDC, x: i32, y: i32) -> Color {
[INFO] [stderr]    |                      ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `COLORREF` in this scope
[INFO] [stderr]   --> src/win.rs:49:16
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let color: COLORREF = unsafe { GetPixel(hdc, x, y) };
[INFO] [stderr]    |                ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetPixel` in this scope
[INFO] [stderr]   --> src/win.rs:49:36
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let color: COLORREF = unsafe { GetPixel(hdc, x, y) };
[INFO] [stderr]    |                                    ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:58:9
[INFO] [stderr]    |
[INFO] [stderr] 58 |         OpenClipboard(null_mut());
[INFO] [stderr]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:59:9
[INFO] [stderr]    |
[INFO] [stderr] 59 |         EmptyClipboard();
[INFO] [stderr]    |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in this scope
[INFO] [stderr]   --> src/win.rs:60:9
[INFO] [stderr]    |
[INFO] [stderr] 60 |         SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CF_UNICODETEXT` in this scope
[INFO] [stderr]   --> src/win.rs:60:26
[INFO] [stderr]    |
[INFO] [stderr] 60 |         SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _);
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:61:9
[INFO] [stderr]    |
[INFO] [stderr] 61 |         CloseClipboard();
[INFO] [stderr]    |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:14:22
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl From<Color> for D3DCOLORVALUE {
[INFO] [stderr]    |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:21:9
[INFO] [stderr]    |
[INFO] [stderr] 21 |         D3DCOLORVALUE { r, g, b, a: 1.0 }
[INFO] [stderr]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:25:11
[INFO] [stderr]    |
[INFO] [stderr] 25 | impl From<D3DCOLORVALUE> for Color {
[INFO] [stderr]    |     -     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]    |     |
[INFO] [stderr]    |     help: you might be missing a type parameter: `<D3DCOLORVALUE>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:26:20
[INFO] [stderr]    |
[INFO] [stderr] 26 |     fn from(color: D3DCOLORVALUE) -> Self {
[INFO] [stderr]    |                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/preview.rs:33:18
[INFO] [stderr]    |
[INFO] [stderr] 33 |     pub hwnd:    HWND,
[INFO] [stderr]    |                  ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]   --> src/preview.rs:34:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1DeviceContext1>`
[INFO] [stderr] 33 |     pub hwnd:    HWND,
[INFO] [stderr] 34 |     context:     ComPtr<ID2D1DeviceContext1>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]   --> src/preview.rs:35:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] ...
[INFO] [stderr] 35 |     swap_chain:  ComPtr<IDXGISwapChain1>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]   --> src/preview.rs:36:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<IDCompositionTarget>`
[INFO] [stderr] ...
[INFO] [stderr] 36 |     _target:     ComPtr<IDCompositionTarget>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]   --> src/preview.rs:37:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1SolidColorBrush>`
[INFO] [stderr] ...
[INFO] [stderr] 37 |     brush:       ComPtr<ID2D1SolidColorBrush>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]   --> src/preview.rs:38:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1GeometryRealization>`
[INFO] [stderr] ...
[INFO] [stderr] 38 |     ellipse:     ComPtr<ID2D1GeometryRealization>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]   --> src/preview.rs:39:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1GeometryRealization>`
[INFO] [stderr] ...
[INFO] [stderr] 39 |     stroke:      ComPtr<ID2D1GeometryRealization>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/preview.rs:58:31
[INFO] [stderr]    |
[INFO] [stderr] 58 |     pub fn draw(&mut self) -> HRESULT {
[INFO] [stderr]    |                               ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stderr]   --> src/preview.rs:68:28
[INFO] [stderr]    |
[INFO] [stderr] 68 |             let negative = D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 1.0 };
[INFO] [stderr]    |                            ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/preview.rs:82:45
[INFO] [stderr]    |
[INFO] [stderr] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT {
[INFO] [stderr]    |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]   --> src/preview.rs:82:94
[INFO] [stderr]    |
[INFO] [stderr] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT {
[INFO] [stderr]    |                                                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope
[INFO] [stderr]   --> src/preview.rs:83:40
[INFO] [stderr]    |
[INFO] [stderr] 83 |     let preview: &mut Preview = &mut *(GetWindowLongPtrW(hwnd, 0) as *mut Preview);
[INFO] [stderr]    |                                        ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope
[INFO] [stderr]   --> src/preview.rs:87:26
[INFO] [stderr]    |
[INFO] [stderr] 87 |             let ps: *mut PAINTSTRUCT = null_mut();
[INFO] [stderr]    |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope
[INFO] [stderr]   --> src/preview.rs:88:13
[INFO] [stderr]    |
[INFO] [stderr] 88 |             BeginPaint(hwnd, ps);
[INFO] [stderr]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope
[INFO] [stderr]   --> src/preview.rs:92:13
[INFO] [stderr]    |
[INFO] [stderr] 92 |             EndPaint(hwnd, ps);
[INFO] [stderr]    |             ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/preview.rs:96:13
[INFO] [stderr]    |
[INFO] [stderr] 96 |             PostQuitMessage(0);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stderr]    --> src/preview.rs:102:12
[INFO] [stderr]     |
[INFO] [stderr] 102 |     return DefWindowProcW(hwnd, msg, wparam, lparam);
[INFO] [stderr]     |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:108:15
[INFO] [stderr]     |
[INFO] [stderr] 108 |     let hwnd: HWND;
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]    --> src/preview.rs:111:25
[INFO] [stderr]     |
[INFO] [stderr] 111 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]    --> src/preview.rs:113:25
[INFO] [stderr]     |
[INFO] [stderr] 113 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]    --> src/preview.rs:121:9
[INFO] [stderr]     |
[INFO] [stderr] 121 |         RegisterClassW(&wnd_class);
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]    --> src/preview.rs:124:9
[INFO] [stderr]     |
[INFO] [stderr] 124 |         GetCursorPos(&mut p);
[INFO] [stderr]     |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stderr]    --> src/preview.rs:126:16
[INFO] [stderr]     |
[INFO] [stderr] 126 |         hwnd = CreateWindowExW(
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_NOREDIRECTIONBITMAP` in this scope
[INFO] [stderr]    --> src/preview.rs:127:13
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stderr]    --> src/preview.rs:127:41
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |                                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope
[INFO] [stderr]    --> src/preview.rs:127:60
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |                                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_POPUP` in this scope
[INFO] [stderr]    --> src/preview.rs:130:13
[INFO] [stderr]     |
[INFO] [stderr] 130 |             WS_POPUP | WS_VISIBLE,
[INFO] [stderr]     |             ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]    --> src/preview.rs:130:24
[INFO] [stderr]     |
[INFO] [stderr] 130 |             WS_POPUP | WS_VISIBLE,
[INFO] [stderr]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]    --> src/preview.rs:153:29
[INFO] [stderr]     |
[INFO] [stderr] 153 |         let mut brush: *mut ID2D1SolidColorBrush = null_mut();
[INFO] [stderr]     |                             ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stderr]    --> src/preview.rs:154:43
[INFO] [stderr]     |
[INFO] [stderr] 154 |         (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush));
[INFO] [stderr]     |                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]    --> src/preview.rs:154:117
[INFO] [stderr]     |
[INFO] [stderr] 154 |         (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush));
[INFO] [stderr]     |                                                                                                                     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope
[INFO] [stderr]    --> src/preview.rs:157:22
[INFO] [stderr]     |
[INFO] [stderr] 157 |         let center = D2D1_POINT_2F { x: radius + 2.0, y: radius + 2.0 };
[INFO] [stderr]     |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_ELLIPSE` in this scope
[INFO] [stderr]    --> src/preview.rs:158:23
[INFO] [stderr]     |
[INFO] [stderr] 158 |         let ellipse = D2D1_ELLIPSE { point: center, radiusX: radius, radiusY: radius };
[INFO] [stderr]     |                       ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1EllipseGeometry` in this scope
[INFO] [stderr]    --> src/preview.rs:160:40
[INFO] [stderr]     |
[INFO] [stderr] 160 |         let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut();
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]    --> src/preview.rs:163:43
[INFO] [stderr]     |
[INFO] [stderr] 163 |         let mut ellipse_realization: *mut ID2D1GeometryRealization = null_mut();
[INFO] [stderr]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope
[INFO] [stderr]    --> src/preview.rs:164:75
[INFO] [stderr]     |
[INFO] [stderr] 164 |         (*context).CreateFilledGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, &mut ellipse_realization);
[INFO] [stderr]     |                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]    --> src/preview.rs:166:42
[INFO] [stderr]     |
[INFO] [stderr] 166 |         let mut stroke_realization: *mut ID2D1GeometryRealization = null_mut();
[INFO] [stderr]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope
[INFO] [stderr]    --> src/preview.rs:167:76
[INFO] [stderr]     |
[INFO] [stderr] 167 |         (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 0.75, null_mut(), &mut stroke_realization);
[INFO] [stderr]     |                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:183:42
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      -                   ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:183:56
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      -                                 ^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID3D11Device` in this scope
[INFO] [stderr]    --> src/preview.rs:185:30
[INFO] [stderr]     |
[INFO] [stderr] 185 |         let mut device: *mut ID3D11Device = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `D3D11CreateDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:186:12
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D_DRIVER_TYPE_HARDWARE` in this scope
[INFO] [stderr]    --> src/preview.rs:186:42
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D11_CREATE_DEVICE_BGRA_SUPPORT` in this scope
[INFO] [stderr]    --> src/preview.rs:186:80
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D11_SDK_VERSION` in this scope
[INFO] [stderr]    --> src/preview.rs:186:125
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                                                                                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:189:41
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] ...
[INFO] [stderr] 189 |         let dxgi_device = device.cast::<IDXGIDevice>()?;
[INFO] [stderr]     |                                         ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:195:38
[INFO] [stderr]     |
[INFO] [stderr] 195 | fn create_factory() -> Result<ComPtr<ID2D1Factory2>, HRESULT> {
[INFO] [stderr]     |                  -                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: you might be missing a type parameter: `<ID2D1Factory2>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:195:54
[INFO] [stderr]     |
[INFO] [stderr] 195 | fn create_factory() -> Result<ComPtr<ID2D1Factory2>, HRESULT> {
[INFO] [stderr]     |                  -                                   ^^^^^^^ not found in this scope
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:196:31
[INFO] [stderr]     |
[INFO] [stderr] 196 |     let mut d2d_factory: *mut ID2D1Factory2 = null_mut();
[INFO] [stderr]     |                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope
[INFO] [stderr]    --> src/preview.rs:198:19
[INFO] [stderr]     |
[INFO] [stderr] 198 |     let options = D2D1_FACTORY_OPTIONS {
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_INFORMATION` in this scope
[INFO] [stderr]    --> src/preview.rs:199:49
[INFO] [stderr]     |
[INFO] [stderr] 199 |         debugLevel: if cfg!(debug_assertions) { D2D1_DEBUG_LEVEL_INFORMATION } else { 0 }
[INFO] [stderr]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope
[INFO] [stderr]    --> src/preview.rs:203:12
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope
[INFO] [stderr]    --> src/preview.rs:203:30
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:203:120
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                                                                                                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:209:47
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         -                     ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                         |
[INFO] [stderr]     |                         help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:209:78
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         -                                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                         |
[INFO] [stderr]     |                         help: you might be missing a type parameter: `<ID2D1Factory2>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:209:111
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<ID2D1DeviceContext1>`                ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:209:133
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<HRESULT>`                                                  ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Device1` in this scope
[INFO] [stderr]    --> src/preview.rs:211:34
[INFO] [stderr]     |
[INFO] [stderr] 211 |         let mut d2d_device: *mut ID2D1Device1 = null_mut();
[INFO] [stderr]     |                                  ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:214:26
[INFO] [stderr]     |
[INFO] [stderr] 214 |         let mut dc: *mut ID2D1DeviceContext1 = null_mut();
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEVICE_CONTEXT_OPTIONS_NONE` in this scope
[INFO] [stderr]    --> src/preview.rs:215:43
[INFO] [stderr]     |
[INFO] [stderr] 215 |         (*d2d_device).CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &mut dc);
[INFO] [stderr]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:221:28
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:221:50
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     -                            ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:221:81
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     -                                                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:221:99
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     - help: you might be missing a type parameter: `<HRESULT>`                    ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:223:36
[INFO] [stderr]     |
[INFO] [stderr] 223 |         let mut dxgi_factory: *mut IDXGIFactory2 = null_mut();
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:224:12
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_CREATE_FACTORY_DEBUG` in this scope
[INFO] [stderr]    --> src/preview.rs:224:59
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:224:145
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                                                                                                                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope
[INFO] [stderr]    --> src/preview.rs:226:24
[INFO] [stderr]     |
[INFO] [stderr] 226 |         let mut rect = RECT { left: 0, top: 0, right: 0, bottom: 0 };
[INFO] [stderr]     |                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stderr]    --> src/preview.rs:227:9
[INFO] [stderr]     |
[INFO] [stderr] 227 |         GetClientRect(hwnd, &mut rect);
[INFO] [stderr]     |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `DXGI_SWAP_CHAIN_DESC1` in this scope
[INFO] [stderr]    --> src/preview.rs:229:31
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let swap_chain_desc = DXGI_SWAP_CHAIN_DESC1 {
[INFO] [stderr]     |                               ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stderr]    --> src/preview.rs:232:21
[INFO] [stderr]     |
[INFO] [stderr] 232 |             Format: DXGI_FORMAT_B8G8R8A8_UNORM,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `DXGI_SAMPLE_DESC` in this scope
[INFO] [stderr]    --> src/preview.rs:234:25
[INFO] [stderr]     |
[INFO] [stderr] 234 |             SampleDesc: DXGI_SAMPLE_DESC { Count: 1, Quality: 0, },
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_USAGE_RENDER_TARGET_OUTPUT` in this scope
[INFO] [stderr]    --> src/preview.rs:235:26
[INFO] [stderr]     |
[INFO] [stderr] 235 |             BufferUsage: DXGI_USAGE_RENDER_TARGET_OUTPUT,
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_SCALING_STRETCH` in this scope
[INFO] [stderr]    --> src/preview.rs:237:22
[INFO] [stderr]     |
[INFO] [stderr] 237 |             Scaling: DXGI_SCALING_STRETCH,
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL` in this scope
[INFO] [stderr]    --> src/preview.rs:238:25
[INFO] [stderr]     |
[INFO] [stderr] 238 |             SwapEffect: DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL,
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stderr]    --> src/preview.rs:239:24
[INFO] [stderr]     |
[INFO] [stderr] 239 |             AlphaMode: DXGI_ALPHA_MODE_PREMULTIPLIED,
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:243:34
[INFO] [stderr]     |
[INFO] [stderr] 243 |         let mut swap_chain: *mut IDXGISwapChain1 = null_mut();
[INFO] [stderr]     |                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:30
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 -            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                 |
[INFO] [stderr]     |                 help: you might be missing a type parameter: `<ID2D1DeviceContext1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:72
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 -                                                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                 |
[INFO] [stderr]     |                 help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:107
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 - help: you might be missing a type parameter: `<ID2D1Bitmap1>`                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:252:122
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 - help: you might be missing a type parameter: `<HRESULT>`                                               ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ID2D1Factory2`
[INFO] [stderr]    --> src/preview.rs:203:66
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                                                                  ^^^^^^^^^^^^^ use of undeclared type or module `ID2D1Factory2`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISurface2` in this scope
[INFO] [stderr]    --> src/preview.rs:254:35
[INFO] [stderr]     |
[INFO] [stderr] 254 |         let mut dxgi_buffer: *mut IDXGISurface2 = null_mut();
[INFO] [stderr]     |                                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISurface2` in this scope
[INFO] [stderr]    --> src/preview.rs:255:84
[INFO] [stderr]     |
[INFO] [stderr] 255 |         hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?;
[INFO] [stderr]     |                                                                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_BITMAP_PROPERTIES1` in this scope
[INFO] [stderr]    --> src/preview.rs:257:26
[INFO] [stderr]     |
[INFO] [stderr] 257 |         let properties = D2D1_BITMAP_PROPERTIES1 {
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope
[INFO] [stderr]    --> src/preview.rs:258:26
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stderr]    --> src/preview.rs:258:54
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stderr]    --> src/preview.rs:258:93
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_TARGET` in this scope
[INFO] [stderr]    --> src/preview.rs:261:28
[INFO] [stderr]     |
[INFO] [stderr] 261 |             bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW,
[INFO] [stderr]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_CANNOT_DRAW` in this scope
[INFO] [stderr]    --> src/preview.rs:261:57
[INFO] [stderr]     |
[INFO] [stderr] 261 |             bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW,
[INFO] [stderr]     |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope
[INFO] [stderr]    --> src/preview.rs:265:30
[INFO] [stderr]     |
[INFO] [stderr] 265 |         let mut bitmap: *mut ID2D1Bitmap1 = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:274:29
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:274:51
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      -                            ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:274:85
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      -                                                              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]    --> src/preview.rs:274:120
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<IDCompositionTarget>`                            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:274:142
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<HRESULT>`                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:276:36
[INFO] [stderr]     |
[INFO] [stderr] 276 |         let mut dcomp_device: *mut IDCompositionDevice = null_mut();
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DCompositionCreateDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:277:12
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:277:106
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |                                                                                                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]    --> src/preview.rs:279:30
[INFO] [stderr]     |
[INFO] [stderr] 279 |         let mut target: *mut IDCompositionTarget = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionVisual` in this scope
[INFO] [stderr]    --> src/preview.rs:282:30
[INFO] [stderr]     |
[INFO] [stderr] 282 |         let mut visual: *mut IDCompositionVisual = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThreadId` in this scope
[INFO] [stderr]   --> src/main.rs:36:30
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let thread_id = unsafe { GetCurrentThreadId() };
[INFO] [stderr]    |                              ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope
[INFO] [stderr]   --> src/main.rs:39:20
[INFO] [stderr]    |
[INFO] [stderr] 39 |         let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0);
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope
[INFO] [stderr]   --> src/main.rs:39:38
[INFO] [stderr]    |
[INFO] [stderr] 39 |         let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0);
[INFO] [stderr]    |                                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]   --> src/main.rs:42:9
[INFO] [stderr]    |
[INFO] [stderr] 42 |         GetMessageW(&mut msg, null_mut(), 0, 0);
[INFO] [stderr]    |         ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope
[INFO] [stderr]   --> src/main.rs:44:9
[INFO] [stderr]    |
[INFO] [stderr] 44 |         UnhookWindowsHookEx(hook);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]   --> src/main.rs:47:9
[INFO] [stderr]    |
[INFO] [stderr] 47 |         GetCursorPos(&mut p);
[INFO] [stderr]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/main.rs:49:18
[INFO] [stderr]    |
[INFO] [stderr] 49 |         let dc = GetDC(null_mut());
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope
[INFO] [stderr]   --> src/main.rs:51:9
[INFO] [stderr]    |
[INFO] [stderr] 51 |         ReleaseDC(null_mut(), dc);
[INFO] [stderr]    |         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope
[INFO] [stderr]   --> src/main.rs:69:9
[INFO] [stderr]    |
[INFO] [stderr] 69 |         PostThreadMessageW(thread_id, WM_QUIT, 0,0);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope
[INFO] [stderr]   --> src/main.rs:69:39
[INFO] [stderr]    |
[INFO] [stderr] 69 |         PostThreadMessageW(thread_id, WM_QUIT, 0,0);
[INFO] [stderr]    |                                       ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope
[INFO] [stderr]   --> src/main.rs:77:13
[INFO] [stderr]    |
[INFO] [stderr] 77 |             SetWindowLongPtrW(preview.hwnd, 0 , &mut preview as *mut Preview as _);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/main.rs:83:31
[INFO] [stderr]    |
[INFO] [stderr] 83 |             let dc = unsafe { GetDC(null_mut()) };
[INFO] [stderr]    |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]   --> src/main.rs:88:21
[INFO] [stderr]    |
[INFO] [stderr] 88 |                     GetCursorPos(&mut pt);
[INFO] [stderr]    |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stderr]   --> src/main.rs:89:21
[INFO] [stderr]    |
[INFO] [stderr] 89 |                     SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE);
[INFO] [stderr]    |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SWP_NOSIZE` in this scope
[INFO] [stderr]   --> src/main.rs:89:88
[INFO] [stderr]    |
[INFO] [stderr] 89 |                     SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE);
[INFO] [stderr]    |                                                                                        ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]    --> src/main.rs:105:15
[INFO] [stderr]     |
[INFO] [stderr] 105 |         while GetMessageW(&mut msg, null_mut(), 0, 0) != 0 {
[INFO] [stderr]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stderr]    --> src/main.rs:106:13
[INFO] [stderr]     |
[INFO] [stderr] 106 |             DispatchMessageW(&msg);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDXGIFactory2`
[INFO] [stderr]    --> src/preview.rs:224:100
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                                                                    ^^^^^^^^^^^^^ use of undeclared type or module `IDXGIFactory2`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDXGISurface2`
[INFO] [stderr]    --> src/preview.rs:255:40
[INFO] [stderr]     |
[INFO] [stderr] 255 |         hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?;
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^ use of undeclared type or module `IDXGISurface2`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IDCompositionDevice`
[INFO] [stderr]    --> src/preview.rs:277:55
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |                                                       ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `IDCompositionDevice`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `MSG`
[INFO] [stderr]   --> src/main.rs:41:23
[INFO] [stderr]    |
[INFO] [stderr] 41 |         let mut msg = MSG::default();
[INFO] [stderr]    |                       ^^^ use of undeclared type or module `MSG`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]   --> src/main.rs:46:21
[INFO] [stderr]    |
[INFO] [stderr] 46 |         let mut p = POINT::default();
[INFO] [stderr]    |                     ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `POINT`
[INFO] [stderr]   --> src/main.rs:84:26
[INFO] [stderr]    |
[INFO] [stderr] 84 |             let mut pt = POINT::default();
[INFO] [stderr]    |                          ^^^^^ use of undeclared type or module `POINT`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `MSG`
[INFO] [stderr]    --> src/main.rs:102:19
[INFO] [stderr]     |
[INFO] [stderr] 102 |     let mut msg = MSG::default();
[INFO] [stderr]     |                   ^^^ use of undeclared type or module `MSG`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:18:17
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> {
[INFO] [stderr]    |                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:18:40
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub fn hr(code: HRESULT) -> Result<(), HRESULT> {
[INFO] [stderr]    |          -                             ^^^^^^^ not found in this scope
[INFO] [stderr]    |          |
[INFO] [stderr]    |          help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/win.rs:32:66
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/win.rs:32:83
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]   --> src/win.rs:32:94
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub unsafe extern "system" fn low_mouse_proc(code: i32, w_param: WPARAM, l_param: LPARAM) -> LRESULT {
[INFO] [stderr]    |                                                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stderr]   --> src/win.rs:34:16
[INFO] [stderr]    |
[INFO] [stderr] 34 |         return CallNextHookEx(null_mut(), code, w_param, l_param);
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/win.rs:39:13
[INFO] [stderr]    |
[INFO] [stderr] 39 |             PostQuitMessage(0);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stderr]   --> src/win.rs:45:12
[INFO] [stderr]    |
[INFO] [stderr] 45 |     return CallNextHookEx(null_mut(), code, w_param, l_param);
[INFO] [stderr]    |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]   --> src/win.rs:48:22
[INFO] [stderr]    |
[INFO] [stderr] 48 | pub fn color_at(hdc: HDC, x: i32, y: i32) -> Color {
[INFO] [stderr]    |                      ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `COLORREF` in this scope
[INFO] [stderr]   --> src/win.rs:49:16
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let color: COLORREF = unsafe { GetPixel(hdc, x, y) };
[INFO] [stderr]    |                ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetPixel` in this scope
[INFO] [stderr]   --> src/win.rs:49:36
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let color: COLORREF = unsafe { GetPixel(hdc, x, y) };
[INFO] [stderr]    |                                    ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:58:9
[INFO] [stderr]    |
[INFO] [stderr] 58 |         OpenClipboard(null_mut());
[INFO] [stderr]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EmptyClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:59:9
[INFO] [stderr]    |
[INFO] [stderr] 59 |         EmptyClipboard();
[INFO] [stderr]    |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetClipboardData` in this scope
[INFO] [stderr]   --> src/win.rs:60:9
[INFO] [stderr]    |
[INFO] [stderr] 60 |         SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CF_UNICODETEXT` in this scope
[INFO] [stderr]   --> src/win.rs:60:26
[INFO] [stderr]    |
[INFO] [stderr] 60 |         SetClipboardData(CF_UNICODETEXT, text_wide.as_mut_ptr() as _);
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseClipboard` in this scope
[INFO] [stderr]   --> src/win.rs:61:9
[INFO] [stderr]    |
[INFO] [stderr] 61 |         CloseClipboard();
[INFO] [stderr]    |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:14:22
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl From<Color> for D3DCOLORVALUE {
[INFO] [stderr]    |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:21:9
[INFO] [stderr]    |
[INFO] [stderr] 21 |         D3DCOLORVALUE { r, g, b, a: 1.0 }
[INFO] [stderr]    |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:25:11
[INFO] [stderr]    |
[INFO] [stderr] 25 | impl From<D3DCOLORVALUE> for Color {
[INFO] [stderr]    |     -     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]    |     |
[INFO] [stderr]    |     help: you might be missing a type parameter: `<D3DCOLORVALUE>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `D3DCOLORVALUE` in this scope
[INFO] [stderr]   --> src/color.rs:26:20
[INFO] [stderr]    |
[INFO] [stderr] 26 |     fn from(color: D3DCOLORVALUE) -> Self {
[INFO] [stderr]    |                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/preview.rs:33:18
[INFO] [stderr]    |
[INFO] [stderr] 33 |     pub hwnd:    HWND,
[INFO] [stderr]    |                  ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]   --> src/preview.rs:34:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1DeviceContext1>`
[INFO] [stderr] 33 |     pub hwnd:    HWND,
[INFO] [stderr] 34 |     context:     ComPtr<ID2D1DeviceContext1>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]   --> src/preview.rs:35:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] ...
[INFO] [stderr] 35 |     swap_chain:  ComPtr<IDXGISwapChain1>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]   --> src/preview.rs:36:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<IDCompositionTarget>`
[INFO] [stderr] ...
[INFO] [stderr] 36 |     _target:     ComPtr<IDCompositionTarget>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]   --> src/preview.rs:37:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1SolidColorBrush>`
[INFO] [stderr] ...
[INFO] [stderr] 37 |     brush:       ComPtr<ID2D1SolidColorBrush>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]   --> src/preview.rs:38:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1GeometryRealization>`
[INFO] [stderr] ...
[INFO] [stderr] 38 |     ellipse:     ComPtr<ID2D1GeometryRealization>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]   --> src/preview.rs:39:25
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub struct Preview {
[INFO] [stderr]    |                   - help: you might be missing a type parameter: `<ID2D1GeometryRealization>`
[INFO] [stderr] ...
[INFO] [stderr] 39 |     stroke:      ComPtr<ID2D1GeometryRealization>,
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/preview.rs:58:31
[INFO] [stderr]    |
[INFO] [stderr] 58 |     pub fn draw(&mut self) -> HRESULT {
[INFO] [stderr]    |                               ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stderr]   --> src/preview.rs:68:28
[INFO] [stderr]    |
[INFO] [stderr] 68 |             let negative = D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 1.0 };
[INFO] [stderr]    |                            ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/preview.rs:82:45
[INFO] [stderr]    |
[INFO] [stderr] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT {
[INFO] [stderr]    |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]   --> src/preview.rs:82:94
[INFO] [stderr]    |
[INFO] [stderr] 82 | unsafe extern "system" fn window_proc(hwnd: HWND, msg: u32, wparam: usize, lparam: isize) -> LRESULT {
[INFO] [stderr]    |                                                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope
[INFO] [stderr]   --> src/preview.rs:83:40
[INFO] [stderr]    |
[INFO] [stderr] 83 |     let preview: &mut Preview = &mut *(GetWindowLongPtrW(hwnd, 0) as *mut Preview);
[INFO] [stderr]    |                                        ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PAINTSTRUCT` in this scope
[INFO] [stderr]   --> src/preview.rs:87:26
[INFO] [stderr]    |
[INFO] [stderr] 87 |             let ps: *mut PAINTSTRUCT = null_mut();
[INFO] [stderr]    |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope
[INFO] [stderr]   --> src/preview.rs:88:13
[INFO] [stderr]    |
[INFO] [stderr] 88 |             BeginPaint(hwnd, ps);
[INFO] [stderr]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope
[INFO] [stderr]   --> src/preview.rs:92:13
[INFO] [stderr]    |
[INFO] [stderr] 92 |             EndPaint(hwnd, ps);
[INFO] [stderr]    |             ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/preview.rs:96:13
[INFO] [stderr]    |
[INFO] [stderr] 96 |             PostQuitMessage(0);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stderr]    --> src/preview.rs:102:12
[INFO] [stderr]     |
[INFO] [stderr] 102 |     return DefWindowProcW(hwnd, msg, wparam, lparam);
[INFO] [stderr]     |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:108:15
[INFO] [stderr]     |
[INFO] [stderr] 108 |     let hwnd: HWND;
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]    --> src/preview.rs:111:25
[INFO] [stderr]     |
[INFO] [stderr] 111 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]    --> src/preview.rs:113:25
[INFO] [stderr]     |
[INFO] [stderr] 113 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]    --> src/preview.rs:121:9
[INFO] [stderr]     |
[INFO] [stderr] 121 |         RegisterClassW(&wnd_class);
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]    --> src/preview.rs:124:9
[INFO] [stderr]     |
[INFO] [stderr] 124 |         GetCursorPos(&mut p);
[INFO] [stderr]     |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stderr]    --> src/preview.rs:126:16
[INFO] [stderr]     |
[INFO] [stderr] 126 |         hwnd = CreateWindowExW(
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_NOREDIRECTIONBITMAP` in this scope
[INFO] [stderr]    --> src/preview.rs:127:13
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stderr]    --> src/preview.rs:127:41
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |                                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope
[INFO] [stderr]    --> src/preview.rs:127:60
[INFO] [stderr]     |
[INFO] [stderr] 127 |             WS_EX_NOREDIRECTIONBITMAP | WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
[INFO] [stderr]     |                                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_POPUP` in this scope
[INFO] [stderr]    --> src/preview.rs:130:13
[INFO] [stderr]     |
[INFO] [stderr] 130 |             WS_POPUP | WS_VISIBLE,
[INFO] [stderr]     |             ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]    --> src/preview.rs:130:24
[INFO] [stderr]     |
[INFO] [stderr] 130 |             WS_POPUP | WS_VISIBLE,
[INFO] [stderr]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]    --> src/preview.rs:153:29
[INFO] [stderr]     |
[INFO] [stderr] 153 |         let mut brush: *mut ID2D1SolidColorBrush = null_mut();
[INFO] [stderr]     |                             ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stderr]    --> src/preview.rs:154:43
[INFO] [stderr]     |
[INFO] [stderr] 154 |         (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush));
[INFO] [stderr]     |                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope
[INFO] [stderr]    --> src/preview.rs:154:117
[INFO] [stderr]     |
[INFO] [stderr] 154 |         (*context).CreateSolidColorBrush(&D2D1_COLOR_F { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }, null_mut(), void!(brush, ID2D1SolidColorBrush));
[INFO] [stderr]     |                                                                                                                     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope
[INFO] [stderr]    --> src/preview.rs:157:22
[INFO] [stderr]     |
[INFO] [stderr] 157 |         let center = D2D1_POINT_2F { x: radius + 2.0, y: radius + 2.0 };
[INFO] [stderr]     |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_ELLIPSE` in this scope
[INFO] [stderr]    --> src/preview.rs:158:23
[INFO] [stderr]     |
[INFO] [stderr] 158 |         let ellipse = D2D1_ELLIPSE { point: center, radiusX: radius, radiusY: radius };
[INFO] [stderr]     |                       ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1EllipseGeometry` in this scope
[INFO] [stderr]    --> src/preview.rs:160:40
[INFO] [stderr]     |
[INFO] [stderr] 160 |         let mut ellipse_geometry: *mut ID2D1EllipseGeometry = null_mut();
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]    --> src/preview.rs:163:43
[INFO] [stderr]     |
[INFO] [stderr] 163 |         let mut ellipse_realization: *mut ID2D1GeometryRealization = null_mut();
[INFO] [stderr]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope
[INFO] [stderr]    --> src/preview.rs:164:75
[INFO] [stderr]     |
[INFO] [stderr] 164 |         (*context).CreateFilledGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, &mut ellipse_realization);
[INFO] [stderr]     |                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1GeometryRealization` in this scope
[INFO] [stderr]    --> src/preview.rs:166:42
[INFO] [stderr]     |
[INFO] [stderr] 166 |         let mut stroke_realization: *mut ID2D1GeometryRealization = null_mut();
[INFO] [stderr]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEFAULT_FLATTENING_TOLERANCE` in this scope
[INFO] [stderr]    --> src/preview.rs:167:76
[INFO] [stderr]     |
[INFO] [stderr] 167 |         (*context).CreateStrokedGeometryRealization(ellipse_geometry as _, D2D1_DEFAULT_FLATTENING_TOLERANCE, 0.75, null_mut(), &mut stroke_realization);
[INFO] [stderr]     |                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:183:42
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      -                   ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:183:56
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      -                                 ^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID3D11Device` in this scope
[INFO] [stderr]    --> src/preview.rs:185:30
[INFO] [stderr]     |
[INFO] [stderr] 185 |         let mut device: *mut ID3D11Device = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `D3D11CreateDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:186:12
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D_DRIVER_TYPE_HARDWARE` in this scope
[INFO] [stderr]    --> src/preview.rs:186:42
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D11_CREATE_DEVICE_BGRA_SUPPORT` in this scope
[INFO] [stderr]    --> src/preview.rs:186:80
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D3D11_SDK_VERSION` in this scope
[INFO] [stderr]    --> src/preview.rs:186:125
[INFO] [stderr]     |
[INFO] [stderr] 186 |         hr(D3D11CreateDevice(null_mut(), D3D_DRIVER_TYPE_HARDWARE, null_mut(), D3D11_CREATE_DEVICE_BGRA_SUPPORT, null(), 0, D3D11_SDK_VERSION, &mut device, null_mut(), null_mut()))?;
[INFO] [stderr]     |                                                                                                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:189:41
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn create_dxgi_device() -> Result<ComPtr<IDXGIDevice>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] ...
[INFO] [stderr] 189 |         let dxgi_device = device.cast::<IDXGIDevice>()?;
[INFO] [stderr]     |                                         ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:195:38
[INFO] [stderr]     |
[INFO] [stderr] 195 | fn create_factory() -> Result<ComPtr<ID2D1Factory2>, HRESULT> {
[INFO] [stderr]     |                  -                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: you might be missing a type parameter: `<ID2D1Factory2>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:195:54
[INFO] [stderr]     |
[INFO] [stderr] 195 | fn create_factory() -> Result<ComPtr<ID2D1Factory2>, HRESULT> {
[INFO] [stderr]     |                  -                                   ^^^^^^^ not found in this scope
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  help: you might be missing a type parameter: `<HRESULT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:196:31
[INFO] [stderr]     |
[INFO] [stderr] 196 |     let mut d2d_factory: *mut ID2D1Factory2 = null_mut();
[INFO] [stderr]     |                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope
[INFO] [stderr]    --> src/preview.rs:198:19
[INFO] [stderr]     |
[INFO] [stderr] 198 |     let options = D2D1_FACTORY_OPTIONS {
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_INFORMATION` in this scope
[INFO] [stderr]    --> src/preview.rs:199:49
[INFO] [stderr]     |
[INFO] [stderr] 199 |         debugLevel: if cfg!(debug_assertions) { D2D1_DEBUG_LEVEL_INFORMATION } else { 0 }
[INFO] [stderr]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope
[INFO] [stderr]    --> src/preview.rs:203:12
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope
[INFO] [stderr]    --> src/preview.rs:203:30
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:203:120
[INFO] [stderr]     |
[INFO] [stderr] 203 |         hr(D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &ID2D1Factory2::uuidof(), &options, void!(d2d_factory, ID2D1Factory2)))?;
[INFO] [stderr]     |                                                                                                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:209:47
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         -                     ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                         |
[INFO] [stderr]     |                         help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory2` in this scope
[INFO] [stderr]    --> src/preview.rs:209:78
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         -                                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                         |
[INFO] [stderr]     |                         help: you might be missing a type parameter: `<ID2D1Factory2>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:209:111
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<ID2D1DeviceContext1>`                ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:209:133
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn create_device_context(dxgi_device: &ComPtr<IDXGIDevice>, factory: &ComPtr<ID2D1Factory2>) -> Result<ComPtr<ID2D1DeviceContext1>, HRESULT> {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<HRESULT>`                                                  ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Device1` in this scope
[INFO] [stderr]    --> src/preview.rs:211:34
[INFO] [stderr]     |
[INFO] [stderr] 211 |         let mut d2d_device: *mut ID2D1Device1 = null_mut();
[INFO] [stderr]     |                                  ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:214:26
[INFO] [stderr]     |
[INFO] [stderr] 214 |         let mut dc: *mut ID2D1DeviceContext1 = null_mut();
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_DEVICE_CONTEXT_OPTIONS_NONE` in this scope
[INFO] [stderr]    --> src/preview.rs:215:43
[INFO] [stderr]     |
[INFO] [stderr] 215 |         (*d2d_device).CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &mut dc);
[INFO] [stderr]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:221:28
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:221:50
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     -                            ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:221:81
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     -                                                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:221:99
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn create_swap_chain(hwnd: HWND, device: &ComPtr<IDXGIDevice>) -> Result<ComPtr<IDXGISwapChain1>, HRESULT> {
[INFO] [stderr]     |                     - help: you might be missing a type parameter: `<HRESULT>`                    ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:223:36
[INFO] [stderr]     |
[INFO] [stderr] 223 |         let mut dxgi_factory: *mut IDXGIFactory2 = null_mut();
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:224:12
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_CREATE_FACTORY_DEBUG` in this scope
[INFO] [stderr]    --> src/preview.rs:224:59
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIFactory2` in this scope
[INFO] [stderr]    --> src/preview.rs:224:145
[INFO] [stderr]     |
[INFO] [stderr] 224 |         hr(CreateDXGIFactory2(if cfg!(debug_assertions) { DXGI_CREATE_FACTORY_DEBUG } else { 0 }, &IDXGIFactory2::uuidof(), void!(dxgi_factory, IDXGIFactory2)))?;
[INFO] [stderr]     |                                                                                                                                                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope
[INFO] [stderr]    --> src/preview.rs:226:24
[INFO] [stderr]     |
[INFO] [stderr] 226 |         let mut rect = RECT { left: 0, top: 0, right: 0, bottom: 0 };
[INFO] [stderr]     |                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stderr]    --> src/preview.rs:227:9
[INFO] [stderr]     |
[INFO] [stderr] 227 |         GetClientRect(hwnd, &mut rect);
[INFO] [stderr]     |         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `DXGI_SWAP_CHAIN_DESC1` in this scope
[INFO] [stderr]    --> src/preview.rs:229:31
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let swap_chain_desc = DXGI_SWAP_CHAIN_DESC1 {
[INFO] [stderr]     |                               ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stderr]    --> src/preview.rs:232:21
[INFO] [stderr]     |
[INFO] [stderr] 232 |             Format: DXGI_FORMAT_B8G8R8A8_UNORM,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `DXGI_SAMPLE_DESC` in this scope
[INFO] [stderr]    --> src/preview.rs:234:25
[INFO] [stderr]     |
[INFO] [stderr] 234 |             SampleDesc: DXGI_SAMPLE_DESC { Count: 1, Quality: 0, },
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_USAGE_RENDER_TARGET_OUTPUT` in this scope
[INFO] [stderr]    --> src/preview.rs:235:26
[INFO] [stderr]     |
[INFO] [stderr] 235 |             BufferUsage: DXGI_USAGE_RENDER_TARGET_OUTPUT,
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_SCALING_STRETCH` in this scope
[INFO] [stderr]    --> src/preview.rs:237:22
[INFO] [stderr]     |
[INFO] [stderr] 237 |             Scaling: DXGI_SCALING_STRETCH,
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL` in this scope
[INFO] [stderr]    --> src/preview.rs:238:25
[INFO] [stderr]     |
[INFO] [stderr] 238 |             SwapEffect: DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL,
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stderr]    --> src/preview.rs:239:24
[INFO] [stderr]     |
[INFO] [stderr] 239 |             AlphaMode: DXGI_ALPHA_MODE_PREMULTIPLIED,
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:243:34
[INFO] [stderr]     |
[INFO] [stderr] 243 |         let mut swap_chain: *mut IDXGISwapChain1 = null_mut();
[INFO] [stderr]     |                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1DeviceContext1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:30
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 -            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                 |
[INFO] [stderr]     |                 help: you might be missing a type parameter: `<ID2D1DeviceContext1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:72
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 -                                                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                 |
[INFO] [stderr]     |                 help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope
[INFO] [stderr]    --> src/preview.rs:252:107
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 - help: you might be missing a type parameter: `<ID2D1Bitmap1>`                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:252:122
[INFO] [stderr]     |
[INFO] [stderr] 252 | fn create_bitmap(dc: &ComPtr<ID2D1DeviceContext1>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<ID2D1Bitmap1>, HRESULT> {
[INFO] [stderr]     |                 - help: you might be missing a type parameter: `<HRESULT>`                                               ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISurface2` in this scope
[INFO] [stderr]    --> src/preview.rs:254:35
[INFO] [stderr]     |
[INFO] [stderr] 254 |         let mut dxgi_buffer: *mut IDXGISurface2 = null_mut();
[INFO] [stderr]     |                                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISurface2` in this scope
[INFO] [stderr]    --> src/preview.rs:255:84
[INFO] [stderr]     |
[INFO] [stderr] 255 |         hr((*swap_chain).GetBuffer(0, &IDXGISurface2::uuidof(), void!(dxgi_buffer, IDXGISurface2)))?;
[INFO] [stderr]     |                                                                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_BITMAP_PROPERTIES1` in this scope
[INFO] [stderr]    --> src/preview.rs:257:26
[INFO] [stderr]     |
[INFO] [stderr] 257 |         let properties = D2D1_BITMAP_PROPERTIES1 {
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope
[INFO] [stderr]    --> src/preview.rs:258:26
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stderr]    --> src/preview.rs:258:54
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stderr]    --> src/preview.rs:258:93
[INFO] [stderr]     |
[INFO] [stderr] 258 |             pixelFormat: D2D1_PIXEL_FORMAT { format: DXGI_FORMAT_B8G8R8A8_UNORM, alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED },
[INFO] [stderr]     |                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_TARGET` in this scope
[INFO] [stderr]    --> src/preview.rs:261:28
[INFO] [stderr]     |
[INFO] [stderr] 261 |             bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW,
[INFO] [stderr]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `D2D1_BITMAP_OPTIONS_CANNOT_DRAW` in this scope
[INFO] [stderr]    --> src/preview.rs:261:57
[INFO] [stderr]     |
[INFO] [stderr] 261 |             bitmapOptions: D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW,
[INFO] [stderr]     |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ID2D1Bitmap1` in this scope
[INFO] [stderr]    --> src/preview.rs:265:30
[INFO] [stderr]     |
[INFO] [stderr] 265 |         let mut bitmap: *mut ID2D1Bitmap1 = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/preview.rs:274:29
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGIDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:274:51
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      -                            ^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGIDevice>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDXGISwapChain1` in this scope
[INFO] [stderr]    --> src/preview.rs:274:85
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      -                                                              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr]     |                      |
[INFO] [stderr]     |                      help: you might be missing a type parameter: `<IDXGISwapChain1>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]    --> src/preview.rs:274:120
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<IDCompositionTarget>`                            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]    --> src/preview.rs:274:142
[INFO] [stderr]     |
[INFO] [stderr] 274 | fn create_composition(hwnd: HWND, device: &ComPtr<IDXGIDevice>, swap_chain: &ComPtr<IDXGISwapChain1>) -> Result<ComPtr<IDCompositionTarget>, HRESULT> {
[INFO] [stderr]     |                      - help: you might be missing a type parameter: `<HRESULT>`                                                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:276:36
[INFO] [stderr]     |
[INFO] [stderr] 276 |         let mut dcomp_device: *mut IDCompositionDevice = null_mut();
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DCompositionCreateDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:277:12
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionDevice` in this scope
[INFO] [stderr]    --> src/preview.rs:277:106
[INFO] [stderr]     |
[INFO] [stderr] 277 |         hr(DCompositionCreateDevice(device.as_raw(), &IDCompositionDevice::uuidof(), void!(dcomp_device, IDCompositionDevice)))?;
[INFO] [stderr]     |                                                                                                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionTarget` in this scope
[INFO] [stderr]    --> src/preview.rs:279:30
[INFO] [stderr]     |
[INFO] [stderr] 279 |         let mut target: *mut IDCompositionTarget = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IDCompositionVisual` in this scope
[INFO] [stderr]    --> src/preview.rs:282:30
[INFO] [stderr]     |
[INFO] [stderr] 282 |         let mut visual: *mut IDCompositionVisual = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThreadId` in this scope
[INFO] [stderr]   --> src/main.rs:36:30
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let thread_id = unsafe { GetCurrentThreadId() };
[INFO] [stderr]    |                              ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope
[INFO] [stderr]   --> src/main.rs:39:20
[INFO] [stderr]    |
[INFO] [stderr] 39 |         let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0);
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WH_MOUSE_LL` in this scope
[INFO] [stderr]   --> src/main.rs:39:38
[INFO] [stderr]    |
[INFO] [stderr] 39 |         let hook = SetWindowsHookExW(WH_MOUSE_LL, Some(win::low_mouse_proc), null_mut(), 0);
[INFO] [stderr]    |                                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]   --> src/main.rs:42:9
[INFO] [stderr]    |
[INFO] [stderr] 42 |         GetMessageW(&mut msg, null_mut(), 0, 0);
[INFO] [stderr]    |         ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope
[INFO] [stderr]   --> src/main.rs:44:9
[INFO] [stderr]    |
[INFO] [stderr] 44 |         UnhookWindowsHookEx(hook);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]   --> src/main.rs:47:9
[INFO] [stderr]    |
[INFO] [stderr] 47 |         GetCursorPos(&mut p);
[INFO] [stderr]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/main.rs:49:18
[INFO] [stderr]    |
[INFO] [stderr] 49 |         let dc = GetDC(null_mut());
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope
[INFO] [stderr]   --> src/main.rs:51:9
[INFO] [stderr]    |
[INFO] [stderr] 51 |         ReleaseDC(null_mut(), dc);
[INFO] [stderr]    |         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope
[INFO] [stderr]   --> src/main.rs:69:9
[INFO] [stderr]    |
[INFO] [stderr] 69 |         PostThreadMessageW(thread_id, WM_QUIT, 0,0);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope
[INFO] [stderr]   --> src/main.rs:69:39
[INFO] [stderr]    |
[INFO] [stderr] 69 |         PostThreadMessageW(thread_id, WM_QUIT, 0,0);
[INFO] [stderr]    |                                       ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope
[INFO] [stderr]   --> src/main.rs:77:13
[INFO] [stderr]    |
[INFO] [stderr] 77 |             SetWindowLongPtrW(preview.hwnd, 0 , &mut preview as *mut Preview as _);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/main.rs:83:31
[INFO] [stderr]    |
[INFO] [stderr] 83 |             let dc = unsafe { GetDC(null_mut()) };
[INFO] [stderr]    |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stderr]   --> src/main.rs:88:21
[INFO] [stderr]    |
[INFO] [stderr] 88 |                     GetCursorPos(&mut pt);
[INFO] [stderr]    |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stderr]   --> src/main.rs:89:21
[INFO] [stderr]    |
[INFO] [stderr] 89 |                     SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE);
[INFO] [stderr]    |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SWP_NOSIZE` in this scope
[INFO] [stderr]   --> src/main.rs:89:88
[INFO] [stderr]    |
[INFO] [stderr] 89 |                     SetWindowPos(preview.hwnd, null_mut(), pt.x + 10, pt.y + 15, 0, 0, SWP_NOSIZE);
[INFO] [stderr]    |                                                                                        ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]    --> src/main.rs:105:15
[INFO] [stderr]     |
[INFO] [stderr] 105 |         while GetMessageW(&mut msg, null_mut(), 0, 0) != 0 {
[INFO] [stderr]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stderr]    --> src/main.rs:106:13
[INFO] [stderr]     |
[INFO] [stderr] 106 |             DispatchMessageW(&msg);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `to_wide_null` found for reference `&std::ffi::OsStr` in the current scope
[INFO] [stderr]   --> src/win.rs:55:42
[INFO] [stderr]    |
[INFO] [stderr] 55 |     let mut text_wide = OsStr::new(text).to_wide_null();
[INFO] [stderr]    |                                          ^^^^^^^^^^^^ method not found in `&std::ffi::OsStr`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `to_wide_null` found for reference `&std::ffi::OsStr` in the current scope
[INFO] [stderr]    --> src/preview.rs:106:37
[INFO] [stderr]     |
[INFO] [stderr] 106 |     let name = OsStr::new("wcolor").to_wide_null();
[INFO] [stderr]     |                                     ^^^^^^^^^^^^ method not found in `&std::ffi::OsStr`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 184 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `wcolor`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0599]: no method named `to_wide_null` found for reference `&std::ffi::OsStr` in the current scope
[INFO] [stderr]   --> src/win.rs:55:42
[INFO] [stderr]    |
[INFO] [stderr] 55 |     let mut text_wide = OsStr::new(text).to_wide_null();
[INFO] [stderr]    |                                          ^^^^^^^^^^^^ method not found in `&std::ffi::OsStr`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `to_wide_null` found for reference `&std::ffi::OsStr` in the current scope
[INFO] [stderr]    --> src/preview.rs:106:37
[INFO] [stderr]     |
[INFO] [stderr] 106 |     let name = OsStr::new("wcolor").to_wide_null();
[INFO] [stderr]     |                                     ^^^^^^^^^^^^ method not found in `&std::ffi::OsStr`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 184 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `wcolor`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "56807c9b56fbcc605de89541f2290acf191035d5f7052bcc19361489b487bd22"`
[INFO] running `"docker" "rm" "-f" "56807c9b56fbcc605de89541f2290acf191035d5f7052bcc19361489b487bd22"`
[INFO] [stdout] 56807c9b56fbcc605de89541f2290acf191035d5f7052bcc19361489b487bd22
