[INFO] updating cached repository https://github.com/luojia65/windows-bluetooth-example
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 0f942a7cd26eda4f15e8b0cad185738635233e64
[INFO] checking luojia65/windows-bluetooth-example against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluojia65%2Fwindows-bluetooth-example" "/workspace/builds/worker-5/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/luojia65/windows-bluetooth-example on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/luojia65/windows-bluetooth-example
[INFO] finished tweaking git repo https://github.com/luojia65/windows-bluetooth-example
[INFO] tweaked toml for git repo https://github.com/luojia65/windows-bluetooth-example written to /workspace/builds/worker-5/source/Cargo.toml
[INFO] crate git repo https://github.com/luojia65/windows-bluetooth-example already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] a351db019ad934da19efc44ecaa7e127d17fbffcc1736dfbf5138c6669c5ee4a
[INFO] running `"docker" "start" "-a" "a351db019ad934da19efc44ecaa7e127d17fbffcc1736dfbf5138c6669c5ee4a"`
[INFO] [stderr]    Compiling winapi v0.3.6
[INFO] [stderr]    Compiling windows-bluetooth-example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/main.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 |     shared::{
[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:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 |     um::{
[INFO] [stderr]    |     ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::STRUCT`
[INFO] [stderr]   --> src/main.rs:22:5
[INFO] [stderr]    |
[INFO] [stderr] 22 |     STRUCT
[INFO] [stderr]    |     ^^^^^^ no `STRUCT` in the root
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:101:1
[INFO] [stderr]     |
[INFO] [stderr] 101 | STRUCT!{struct BLUETOOTH_DEVICE_INFO{ 
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:113:1
[INFO] [stderr]     |
[INFO] [stderr] 113 | STRUCT!{struct BLUETOOTH_COD_PAIRS{
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:117:1
[INFO] [stderr]     |
[INFO] [stderr] 117 | STRUCT!{struct BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:134:1
[INFO] [stderr]     |
[INFO] [stderr] 134 | STRUCT!{struct BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:144:1
[INFO] [stderr]     |
[INFO] [stderr] 144 | STRUCT!{struct BLUETOOTH_RADIO_INFO {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:153:1
[INFO] [stderr]     |
[INFO] [stderr] 153 | STRUCT!{struct BLUETOOTH_FIND_RADIO_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/main.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 |     shared::{
[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:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 |     um::{
[INFO] [stderr]    |     ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::STRUCT`
[INFO] [stderr]   --> src/main.rs:22:5
[INFO] [stderr]    |
[INFO] [stderr] 22 |     STRUCT
[INFO] [stderr]    |     ^^^^^^ no `STRUCT` in the root
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:101:1
[INFO] [stderr]     |
[INFO] [stderr] 101 | STRUCT!{struct BLUETOOTH_DEVICE_INFO{ 
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:113:1
[INFO] [stderr]     |
[INFO] [stderr] 113 | STRUCT!{struct BLUETOOTH_COD_PAIRS{
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:117:1
[INFO] [stderr]     |
[INFO] [stderr] 117 | STRUCT!{struct BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:134:1
[INFO] [stderr]     |
[INFO] [stderr] 134 | STRUCT!{struct BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:144:1
[INFO] [stderr]     |
[INFO] [stderr] 144 | STRUCT!{struct BLUETOOTH_RADIO_INFO {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error: cannot determine resolution for the macro `STRUCT`
[INFO] [stderr]    --> src/main.rs:153:1
[INFO] [stderr]     |
[INFO] [stderr] 153 | STRUCT!{struct BLUETOOTH_FIND_RADIO_PARAMS {
[INFO] [stderr]     | ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: import resolution is stuck, try simplifying macro imports
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:88:14
[INFO] [stderr]    |
[INFO] [stderr] 87 | pub type PFN_DEVICE_CALLBACK = Option<unsafe extern "system" fn(
[INFO] [stderr]    |                             - help: you might be missing a type parameter: `<LPVOID>`
[INFO] [stderr] 88 |     pvParam: LPVOID,
[INFO] [stderr]    |              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:89:21
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pDevice: *const BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 90 | )>;
[INFO] [stderr] 91 | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]    | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr]    |
[INFO] [stderr] help: a type alias with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pDevice: *const PBLUETOOTH_DEVICE_INFO,
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: you might be missing a type parameter
[INFO] [stderr]    |
[INFO] [stderr] 87 | pub type PFN_DEVICE_CALLBACK<BLUETOOTH_DEVICE_INFO> = Option<unsafe extern "system" fn(
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:91:40
[INFO] [stderr]    |
[INFO] [stderr] 91 | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]    | ---------------------------------------^^^^^^^^^^^^^^^^^^^^^-
[INFO] [stderr]    | |                                      |
[INFO] [stderr]    | |                                      help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr]    | similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:92:39
[INFO] [stderr]    |
[INFO] [stderr] 92 | pub type PBLUETOOTH_RADIO_INFO = *mut BLUETOOTH_RADIO_INFO;
[INFO] [stderr]    | --------------------------------------^^^^^^^^^^^^^^^^^^^^-
[INFO] [stderr]    | |                                     |
[INFO] [stderr]    | |                                     help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO`
[INFO] [stderr]    | similarly named type alias `PBLUETOOTH_RADIO_INFO` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONGLONG` in this scope
[INFO] [stderr]   --> src/main.rs:93:21
[INFO] [stderr]    |
[INFO] [stderr] 93 | pub type BTH_ADDR = ULONGLONG;
[INFO] [stderr]    |                     ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:94:35
[INFO] [stderr]    |
[INFO] [stderr] 94 | pub type HBLUETOOTH_DEVICE_FIND = LPVOID;
[INFO] [stderr]    |                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:95:34
[INFO] [stderr]    |
[INFO] [stderr] 95 | pub type HBLUETOOTH_RADIO_FIND = LPVOID;
[INFO] [stderr]    |                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BYTE` in this scope
[INFO] [stderr]   --> src/main.rs:99:27
[INFO] [stderr]    |
[INFO] [stderr] 99 |     rgBytes rgBytes_mut: [BYTE; 6],
[INFO] [stderr]    |                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:159:22
[INFO] [stderr]     |
[INFO] [stderr] 159 |         pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:160:10
[INFO] [stderr]     |
[INFO] [stderr] 160 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:162:22
[INFO] [stderr]     |
[INFO] [stderr] 162 |         pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:163:10
[INFO] [stderr]     |
[INFO] [stderr] 163 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:165:23
[INFO] [stderr]     |
[INFO] [stderr] 165 |         pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS,
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:166:21
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 166 |         pbtdi: *mut BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:170:21
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 170 |         pbtdi: *mut BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:171:10
[INFO] [stderr]     |
[INFO] [stderr] 171 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:174:10
[INFO] [stderr]     |
[INFO] [stderr] 174 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:176:24
[INFO] [stderr]     |
[INFO] [stderr] 176 |         pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS,
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:177:23
[INFO] [stderr]     |
[INFO] [stderr] 177 |         phRadio: *mut HANDLE,
[INFO] [stderr]     |                       ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:181:23
[INFO] [stderr]     |
[INFO] [stderr] 181 |         phRadio: *mut HANDLE,
[INFO] [stderr]     |                       ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:182:10
[INFO] [stderr]     |
[INFO] [stderr] 182 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:184:17
[INFO] [stderr]     |
[INFO] [stderr] 184 |         hRadio: HANDLE,
[INFO] [stderr]     |                 ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:186:10
[INFO] [stderr]     |
[INFO] [stderr] 186 |     ) -> DWORD;
[INFO] [stderr]     |          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:189:10
[INFO] [stderr]     |
[INFO] [stderr] 189 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:214:39
[INFO] [stderr]     |
[INFO] [stderr] 214 |         create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS);
[INFO] [stderr]     |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 214 |         create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS);
[INFO] [stderr]     |         ----------------------------------------------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:215:47
[INFO] [stderr]     |
[INFO] [stderr] 92  | pub type PBLUETOOTH_RADIO_INFO = *mut BLUETOOTH_RADIO_INFO;
[INFO] [stderr]     | ----------------------------------------------------------- similarly named type alias `PBLUETOOTH_RADIO_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 215 |         create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO);
[INFO] [stderr]     |                                               ^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 215 |         create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO);
[INFO] [stderr]     |         ------------------------------------------------------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:216:37
[INFO] [stderr]     |
[INFO] [stderr] 216 |         create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS);
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 216 |         create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS);
[INFO] [stderr]     |         ------------------------------------------------------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:217:37
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 217 |         create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO);
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 217 |         create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO);
[INFO] [stderr]     |         --------------------------------------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope
[INFO] [stderr]    --> src/main.rs:221:61
[INFO] [stderr]     |
[INFO] [stderr] 221 |             if BluetoothGetRadioInfo(hRadio, pRadioInfo) == ERROR_SUCCESS {
[INFO] [stderr]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:227:45
[INFO] [stderr]     |
[INFO] [stderr] 227 |                 btsp.fReturnAuthenticated = TRUE;
[INFO] [stderr]     |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:228:41
[INFO] [stderr]     |
[INFO] [stderr] 228 |                 btsp.fReturnConnected = TRUE;
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:229:42
[INFO] [stderr]     |
[INFO] [stderr] 229 |                 btsp.fReturnRemembered = TRUE;
[INFO] [stderr]     |                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:230:39
[INFO] [stderr]     |
[INFO] [stderr] 230 |                 btsp.fReturnUnknown = TRUE;
[INFO] [stderr]     |                                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:231:38
[INFO] [stderr]     |
[INFO] [stderr] 231 |                 btsp.fIssueInquiry = FALSE;
[INFO] [stderr]     |                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:239:83
[INFO] [stderr]     |
[INFO] [stderr] 239 |                     device_found = BluetoothFindNextDevice(hFindDevice, pbtdi) == TRUE;
[INFO] [stderr]     |                                                                                   ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]    --> src/main.rs:243:13
[INFO] [stderr]     |
[INFO] [stderr] 243 |             CloseHandle(hRadio);
[INFO] [stderr]     |             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:244:74
[INFO] [stderr]     |
[INFO] [stderr] 244 |             radio_found = BluetoothFindNextRadio(hFindRadio, phRadio) == TRUE;
[INFO] [stderr]     |                                                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:250:23
[INFO] [stderr]     |
[INFO] [stderr] 250 | fn dw_size_of<T>() -> DWORD {
[INFO] [stderr]     |                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:251:34
[INFO] [stderr]     |
[INFO] [stderr] 251 |     core::mem::size_of::<T>() as DWORD
[INFO] [stderr]     |                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:255:25
[INFO] [stderr]     |
[INFO] [stderr] 255 |     let bdsp = Box::new(BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:256:38
[INFO] [stderr]     |
[INFO] [stderr] 254 | unsafe fn find_device_example() {
[INFO] [stderr]     |                              - help: you might be missing a type parameter: `<BLUETOOTH_DEVICE_SEARCH_PARAMS>`
[INFO] [stderr] 255 |     let bdsp = Box::new(BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr] 256 |         dwSize: core::mem::size_of::<BLUETOOTH_DEVICE_SEARCH_PARAMS>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:257:31
[INFO] [stderr]     |
[INFO] [stderr] 257 |         fReturnAuthenticated: TRUE,
[INFO] [stderr]     |                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:258:28
[INFO] [stderr]     |
[INFO] [stderr] 258 |         fReturnRemembered: TRUE,
[INFO] [stderr]     |                            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:259:25
[INFO] [stderr]     |
[INFO] [stderr] 259 |         fReturnUnknown: FALSE,
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:260:27
[INFO] [stderr]     |
[INFO] [stderr] 260 |         fReturnConnected: TRUE,
[INFO] [stderr]     |                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:261:24
[INFO] [stderr]     |
[INFO] [stderr] 261 |         fIssueInquiry: FALSE,
[INFO] [stderr]     |                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:266:25
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 266 |     let btdi = Box::new(BLUETOOTH_DEVICE_INFO {
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:267:38
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 267 |         dwSize: core::mem::size_of::<BLUETOOTH_DEVICE_INFO>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: a type alias with a similar name exists
[INFO] [stderr]     |
[INFO] [stderr] 267 |         dwSize: core::mem::size_of::<PBLUETOOTH_DEVICE_INFO>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: you might be missing a type parameter
[INFO] [stderr]     |
[INFO] [stderr] 254 | unsafe fn find_device_example<BLUETOOTH_DEVICE_INFO>() {
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:281:52
[INFO] [stderr]     |
[INFO] [stderr] 281 |     while BluetoothFindNextDevice(hFind, pbtdi) == TRUE {
[INFO] [stderr]     |                                                    ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:285:39
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 285 |     unsafe fn print_pbtdi(pbtdi: *mut BLUETOOTH_DEVICE_INFO) {
[INFO] [stderr]     |                                       ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:297:27
[INFO] [stderr]     |
[INFO] [stderr] 297 |     let pbtsdp = Box::new(BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:298:38
[INFO] [stderr]     |
[INFO] [stderr] 296 | unsafe fn select_device_example() {
[INFO] [stderr]     |                                - help: you might be missing a type parameter: `<BLUETOOTH_SELECT_DEVICE_PARAMS>`
[INFO] [stderr] 297 |     let pbtsdp = Box::new(BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr] 298 |         dwSize: core::mem::size_of::<BLUETOOTH_SELECT_DEVICE_PARAMS>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:303:31
[INFO] [stderr]     |
[INFO] [stderr] 303 |         fForceAuthentication: FALSE,
[INFO] [stderr]     |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:304:29
[INFO] [stderr]     |
[INFO] [stderr] 304 |         fShowAuthenticated: TRUE,
[INFO] [stderr]     |                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:305:26
[INFO] [stderr]     |
[INFO] [stderr] 305 |         fShowRemembered: TRUE,
[INFO] [stderr]     |                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:306:23
[INFO] [stderr]     |
[INFO] [stderr] 306 |         fShowUnknown: TRUE,
[INFO] [stderr]     |                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:307:30
[INFO] [stderr]     |
[INFO] [stderr] 307 |         fAddNewDeviceWizard: FALSE,
[INFO] [stderr]     |                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:308:28
[INFO] [stderr]     |
[INFO] [stderr] 308 |         fSkipServicesPage: FALSE,
[INFO] [stderr]     |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:316:15
[INFO] [stderr]     |
[INFO] [stderr] 316 |     if ans == FALSE {
[INFO] [stderr]     |               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/main.rs:317:29
[INFO] [stderr]     |
[INFO] [stderr] 317 |         println!("Err: {}", GetLastError());
[INFO] [stderr]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `MAKEWORD` in this scope
[INFO] [stderr]    --> src/main.rs:342:24
[INFO] [stderr]     |
[INFO] [stderr] 342 |     let version_word = MAKEWORD(2, 2);
[INFO] [stderr]     |                        ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WSADATA` in this scope
[INFO] [stderr]    --> src/main.rs:343:29
[INFO] [stderr]     |
[INFO] [stderr] 343 |     let wsa_data = Box::new(WSADATA {
[INFO] [stderr]     |                             ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSAStartup` in this scope
[INFO] [stderr]    --> src/main.rs:354:16
[INFO] [stderr]     |
[INFO] [stderr] 354 |     let code = WSAStartup(version_word, ptr);
[INFO] [stderr]     |                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LOBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:359:9
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HIBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:359:36
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |                                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LOBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:360:9
[INFO] [stderr]     |
[INFO] [stderr] 360 |         LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion),
[INFO] [stderr]     |         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HIBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:360:40
[INFO] [stderr]     |
[INFO] [stderr] 360 |         LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion),
[INFO] [stderr]     |                                        ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope
[INFO] [stderr]    --> src/main.rs:366:9
[INFO] [stderr]     |
[INFO] [stderr] 366 |         WSACleanup();
[INFO] [stderr]     |         ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `socket` in this scope
[INFO] [stderr]    --> src/main.rs:372:14
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `AF_BTH` in this scope
[INFO] [stderr]    --> src/main.rs:372:21
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SOCK_STREAM` in this scope
[INFO] [stderr]    --> src/main.rs:372:29
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_SOCKET` in this scope
[INFO] [stderr]    --> src/main.rs:373:14
[INFO] [stderr]     |
[INFO] [stderr] 373 |     if sk == INVALID_SOCKET {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope
[INFO] [stderr]    --> src/main.rs:374:19
[INFO] [stderr]     |
[INFO] [stderr] 374 |         let err = WSAGetLastError();
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:88:14
[INFO] [stderr]    |
[INFO] [stderr] 87 | pub type PFN_DEVICE_CALLBACK = Option<unsafe extern "system" fn(
[INFO] [stderr]    |                             - help: you might be missing a type parameter: `<LPVOID>`
[INFO] [stderr] 88 |     pvParam: LPVOID,
[INFO] [stderr]    |              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:89:21
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pDevice: *const BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 90 | )>;
[INFO] [stderr] 91 | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]    | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr]    |
[INFO] [stderr] help: a type alias with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pDevice: *const PBLUETOOTH_DEVICE_INFO,
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: you might be missing a type parameter
[INFO] [stderr]    |
[INFO] [stderr] 87 | pub type PFN_DEVICE_CALLBACK<BLUETOOTH_DEVICE_INFO> = Option<unsafe extern "system" fn(
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:91:40
[INFO] [stderr]    |
[INFO] [stderr] 91 | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]    | ---------------------------------------^^^^^^^^^^^^^^^^^^^^^-
[INFO] [stderr]    | |                                      |
[INFO] [stderr]    | |                                      help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr]    | similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope
[INFO] [stderr]   --> src/main.rs:92:39
[INFO] [stderr]    |
[INFO] [stderr] 92 | pub type PBLUETOOTH_RADIO_INFO = *mut BLUETOOTH_RADIO_INFO;
[INFO] [stderr]    | --------------------------------------^^^^^^^^^^^^^^^^^^^^-
[INFO] [stderr]    | |                                     |
[INFO] [stderr]    | |                                     help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO`
[INFO] [stderr]    | similarly named type alias `PBLUETOOTH_RADIO_INFO` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONGLONG` in this scope
[INFO] [stderr]   --> src/main.rs:93:21
[INFO] [stderr]    |
[INFO] [stderr] 93 | pub type BTH_ADDR = ULONGLONG;
[INFO] [stderr]    |                     ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:94:35
[INFO] [stderr]    |
[INFO] [stderr] 94 | pub type HBLUETOOTH_DEVICE_FIND = LPVOID;
[INFO] [stderr]    |                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope
[INFO] [stderr]   --> src/main.rs:95:34
[INFO] [stderr]    |
[INFO] [stderr] 95 | pub type HBLUETOOTH_RADIO_FIND = LPVOID;
[INFO] [stderr]    |                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BYTE` in this scope
[INFO] [stderr]   --> src/main.rs:99:27
[INFO] [stderr]    |
[INFO] [stderr] 99 |     rgBytes rgBytes_mut: [BYTE; 6],
[INFO] [stderr]    |                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:159:22
[INFO] [stderr]     |
[INFO] [stderr] 159 |         pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:160:10
[INFO] [stderr]     |
[INFO] [stderr] 160 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:162:22
[INFO] [stderr]     |
[INFO] [stderr] 162 |         pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:163:10
[INFO] [stderr]     |
[INFO] [stderr] 163 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:165:23
[INFO] [stderr]     |
[INFO] [stderr] 165 |         pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS,
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:166:21
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 166 |         pbtdi: *mut BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:170:21
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 170 |         pbtdi: *mut BLUETOOTH_DEVICE_INFO,
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:171:10
[INFO] [stderr]     |
[INFO] [stderr] 171 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:174:10
[INFO] [stderr]     |
[INFO] [stderr] 174 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:176:24
[INFO] [stderr]     |
[INFO] [stderr] 176 |         pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS,
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:177:23
[INFO] [stderr]     |
[INFO] [stderr] 177 |         phRadio: *mut HANDLE,
[INFO] [stderr]     |                       ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:181:23
[INFO] [stderr]     |
[INFO] [stderr] 181 |         phRadio: *mut HANDLE,
[INFO] [stderr]     |                       ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:182:10
[INFO] [stderr]     |
[INFO] [stderr] 182 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/main.rs:184:17
[INFO] [stderr]     |
[INFO] [stderr] 184 |         hRadio: HANDLE,
[INFO] [stderr]     |                 ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:186:10
[INFO] [stderr]     |
[INFO] [stderr] 186 |     ) -> DWORD;
[INFO] [stderr]     |          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/main.rs:189:10
[INFO] [stderr]     |
[INFO] [stderr] 189 |     ) -> BOOL;
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:214:39
[INFO] [stderr]     |
[INFO] [stderr] 214 |         create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS);
[INFO] [stderr]     |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 214 |         create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS);
[INFO] [stderr]     |         ----------------------------------------------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:215:47
[INFO] [stderr]     |
[INFO] [stderr] 92  | pub type PBLUETOOTH_RADIO_INFO = *mut BLUETOOTH_RADIO_INFO;
[INFO] [stderr]     | ----------------------------------------------------------- similarly named type alias `PBLUETOOTH_RADIO_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 215 |         create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO);
[INFO] [stderr]     |                                               ^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 215 |         create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO);
[INFO] [stderr]     |         ------------------------------------------------------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:216:37
[INFO] [stderr]     |
[INFO] [stderr] 216 |         create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS);
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 216 |         create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS);
[INFO] [stderr]     |         ------------------------------------------------------------ in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:217:37
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 217 |         create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO);
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:197:71
[INFO] [stderr]     |
[INFO] [stderr] 197 |         $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD;
[INFO] [stderr]     |                                                                       ^^^^^ not found in this scope
[INFO] [stderr] ...
[INFO] [stderr] 217 |         create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO);
[INFO] [stderr]     |         --------------------------------------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope
[INFO] [stderr]    --> src/main.rs:221:61
[INFO] [stderr]     |
[INFO] [stderr] 221 |             if BluetoothGetRadioInfo(hRadio, pRadioInfo) == ERROR_SUCCESS {
[INFO] [stderr]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:227:45
[INFO] [stderr]     |
[INFO] [stderr] 227 |                 btsp.fReturnAuthenticated = TRUE;
[INFO] [stderr]     |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:228:41
[INFO] [stderr]     |
[INFO] [stderr] 228 |                 btsp.fReturnConnected = TRUE;
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:229:42
[INFO] [stderr]     |
[INFO] [stderr] 229 |                 btsp.fReturnRemembered = TRUE;
[INFO] [stderr]     |                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:230:39
[INFO] [stderr]     |
[INFO] [stderr] 230 |                 btsp.fReturnUnknown = TRUE;
[INFO] [stderr]     |                                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:231:38
[INFO] [stderr]     |
[INFO] [stderr] 231 |                 btsp.fIssueInquiry = FALSE;
[INFO] [stderr]     |                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:239:83
[INFO] [stderr]     |
[INFO] [stderr] 239 |                     device_found = BluetoothFindNextDevice(hFindDevice, pbtdi) == TRUE;
[INFO] [stderr]     |                                                                                   ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]    --> src/main.rs:243:13
[INFO] [stderr]     |
[INFO] [stderr] 243 |             CloseHandle(hRadio);
[INFO] [stderr]     |             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:244:74
[INFO] [stderr]     |
[INFO] [stderr] 244 |             radio_found = BluetoothFindNextRadio(hFindRadio, phRadio) == TRUE;
[INFO] [stderr]     |                                                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:250:23
[INFO] [stderr]     |
[INFO] [stderr] 250 | fn dw_size_of<T>() -> DWORD {
[INFO] [stderr]     |                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/main.rs:251:34
[INFO] [stderr]     |
[INFO] [stderr] 251 |     core::mem::size_of::<T>() as DWORD
[INFO] [stderr]     |                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:255:25
[INFO] [stderr]     |
[INFO] [stderr] 255 |     let bdsp = Box::new(BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:256:38
[INFO] [stderr]     |
[INFO] [stderr] 254 | unsafe fn find_device_example() {
[INFO] [stderr]     |                              - help: you might be missing a type parameter: `<BLUETOOTH_DEVICE_SEARCH_PARAMS>`
[INFO] [stderr] 255 |     let bdsp = Box::new(BLUETOOTH_DEVICE_SEARCH_PARAMS {
[INFO] [stderr] 256 |         dwSize: core::mem::size_of::<BLUETOOTH_DEVICE_SEARCH_PARAMS>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:257:31
[INFO] [stderr]     |
[INFO] [stderr] 257 |         fReturnAuthenticated: TRUE,
[INFO] [stderr]     |                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:258:28
[INFO] [stderr]     |
[INFO] [stderr] 258 |         fReturnRemembered: TRUE,
[INFO] [stderr]     |                            ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:259:25
[INFO] [stderr]     |
[INFO] [stderr] 259 |         fReturnUnknown: FALSE,
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:260:27
[INFO] [stderr]     |
[INFO] [stderr] 260 |         fReturnConnected: TRUE,
[INFO] [stderr]     |                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:261:24
[INFO] [stderr]     |
[INFO] [stderr] 261 |         fIssueInquiry: FALSE,
[INFO] [stderr]     |                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:266:25
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 266 |     let btdi = Box::new(BLUETOOTH_DEVICE_INFO {
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:267:38
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 267 |         dwSize: core::mem::size_of::<BLUETOOTH_DEVICE_INFO>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: a type alias with a similar name exists
[INFO] [stderr]     |
[INFO] [stderr] 267 |         dwSize: core::mem::size_of::<PBLUETOOTH_DEVICE_INFO>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: you might be missing a type parameter
[INFO] [stderr]     |
[INFO] [stderr] 254 | unsafe fn find_device_example<BLUETOOTH_DEVICE_INFO>() {
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:281:52
[INFO] [stderr]     |
[INFO] [stderr] 281 |     while BluetoothFindNextDevice(hFind, pbtdi) == TRUE {
[INFO] [stderr]     |                                                    ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope
[INFO] [stderr]    --> src/main.rs:285:39
[INFO] [stderr]     |
[INFO] [stderr] 91  | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO;
[INFO] [stderr]     | ------------------------------------------------------------- similarly named type alias `PBLUETOOTH_DEVICE_INFO` defined here
[INFO] [stderr] ...
[INFO] [stderr] 285 |     unsafe fn print_pbtdi(pbtdi: *mut BLUETOOTH_DEVICE_INFO) {
[INFO] [stderr]     |                                       ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO`
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:297:27
[INFO] [stderr]     |
[INFO] [stderr] 297 |     let pbtsdp = Box::new(BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope
[INFO] [stderr]    --> src/main.rs:298:38
[INFO] [stderr]     |
[INFO] [stderr] 296 | unsafe fn select_device_example() {
[INFO] [stderr]     |                                - help: you might be missing a type parameter: `<BLUETOOTH_SELECT_DEVICE_PARAMS>`
[INFO] [stderr] 297 |     let pbtsdp = Box::new(BLUETOOTH_SELECT_DEVICE_PARAMS {
[INFO] [stderr] 298 |         dwSize: core::mem::size_of::<BLUETOOTH_SELECT_DEVICE_PARAMS>() as u32,
[INFO] [stderr]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:303:31
[INFO] [stderr]     |
[INFO] [stderr] 303 |         fForceAuthentication: FALSE,
[INFO] [stderr]     |                               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:304:29
[INFO] [stderr]     |
[INFO] [stderr] 304 |         fShowAuthenticated: TRUE,
[INFO] [stderr]     |                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:305:26
[INFO] [stderr]     |
[INFO] [stderr] 305 |         fShowRemembered: TRUE,
[INFO] [stderr]     |                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/main.rs:306:23
[INFO] [stderr]     |
[INFO] [stderr] 306 |         fShowUnknown: TRUE,
[INFO] [stderr]     |                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:307:30
[INFO] [stderr]     |
[INFO] [stderr] 307 |         fAddNewDeviceWizard: FALSE,
[INFO] [stderr]     |                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:308:28
[INFO] [stderr]     |
[INFO] [stderr] 308 |         fSkipServicesPage: FALSE,
[INFO] [stderr]     |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/main.rs:316:15
[INFO] [stderr]     |
[INFO] [stderr] 316 |     if ans == FALSE {
[INFO] [stderr]     |               ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/main.rs:317:29
[INFO] [stderr]     |
[INFO] [stderr] 317 |         println!("Err: {}", GetLastError());
[INFO] [stderr]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `MAKEWORD` in this scope
[INFO] [stderr]    --> src/main.rs:342:24
[INFO] [stderr]     |
[INFO] [stderr] 342 |     let version_word = MAKEWORD(2, 2);
[INFO] [stderr]     |                        ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WSADATA` in this scope
[INFO] [stderr]    --> src/main.rs:343:29
[INFO] [stderr]     |
[INFO] [stderr] 343 |     let wsa_data = Box::new(WSADATA {
[INFO] [stderr]     |                             ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSAStartup` in this scope
[INFO] [stderr]    --> src/main.rs:354:16
[INFO] [stderr]     |
[INFO] [stderr] 354 |     let code = WSAStartup(version_word, ptr);
[INFO] [stderr]     |                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LOBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:359:9
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HIBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:359:36
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |                                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LOBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:360:9
[INFO] [stderr]     |
[INFO] [stderr] 360 |         LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion),
[INFO] [stderr]     |         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HIBYTE` in this scope
[INFO] [stderr]    --> src/main.rs:360:40
[INFO] [stderr]     |
[INFO] [stderr] 360 |         LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion),
[INFO] [stderr]     |                                        ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope
[INFO] [stderr]    --> src/main.rs:366:9
[INFO] [stderr]     |
[INFO] [stderr] 366 |         WSACleanup();
[INFO] [stderr]     |         ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `socket` in this scope
[INFO] [stderr]    --> src/main.rs:372:14
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `AF_BTH` in this scope
[INFO] [stderr]    --> src/main.rs:372:21
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SOCK_STREAM` in this scope
[INFO] [stderr]    --> src/main.rs:372:29
[INFO] [stderr]     |
[INFO] [stderr] 372 |     let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
[INFO] [stderr]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `dwSize` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:287:32
[INFO] [stderr]     |
[INFO] [stderr] 287 |         println!("{:X} ", btdi.dwSize);
[INFO] [stderr]     |                                ^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_SOCKET` in this scope
[INFO] [stderr]    --> src/main.rs:373:14
[INFO] [stderr]     |
[INFO] [stderr] 373 |     if sk == INVALID_SOCKET {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope
[INFO] [stderr]    --> src/main.rs:374:19
[INFO] [stderr]     |
[INFO] [stderr] 374 |         let err = WSAGetLastError();
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `cNumDevices` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:321:40
[INFO] [stderr]     |
[INFO] [stderr] 321 |     println!("cNumDevices: {}", pbtsdp.cNumDevices);
[INFO] [stderr]     |                                        ^^^^^^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `wVersion` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:359:25
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |                         ^^^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 89 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0609.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `windows-bluetooth-example`.
[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[E0609]: no field `dwSize` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:287:32
[INFO] [stderr]     |
[INFO] [stderr] 287 |         println!("{:X} ", btdi.dwSize);
[INFO] [stderr]     |                                ^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `cNumDevices` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:321:40
[INFO] [stderr]     |
[INFO] [stderr] 321 |     println!("cNumDevices: {}", pbtsdp.cNumDevices);
[INFO] [stderr]     |                                        ^^^^^^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `wVersion` on type `std::boxed::Box<_>`
[INFO] [stderr]    --> src/main.rs:359:25
[INFO] [stderr]     |
[INFO] [stderr] 359 |         LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), 
[INFO] [stderr]     |                         ^^^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 89 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0609.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `windows-bluetooth-example`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "a351db019ad934da19efc44ecaa7e127d17fbffcc1736dfbf5138c6669c5ee4a"`
[INFO] running `"docker" "rm" "-f" "a351db019ad934da19efc44ecaa7e127d17fbffcc1736dfbf5138c6669c5ee4a"`
[INFO] [stdout] a351db019ad934da19efc44ecaa7e127d17fbffcc1736dfbf5138c6669c5ee4a
