Files
meetingroom-netscreen/anti_lockscreen_rust/target/release/deps/libwindows_link-10e59cec4c5e241e.rmeta

34 lines
4.6 KiB
Plaintext
Raw Normal View History

rust
<EFBFBD>Brustc 1.91.1 (ed61e7d7e 2025-11-07) (Rev1, Built by MSYS2 project)<29><02>0<>#`a<><61>i<EFBFBD>+<2B>F<EFBFBD>T8<-0a5677bcdbf6ca93<39><02>1<>-<2D>3<EFBFBD><33>%<25>:<3A><>R<>-0a51333fad0e7ace<63><01><02> $<24><02>\rx86<38>,<2C><00>r<02> $<24><02><<3C>L<><02><02> <02><02> $<24><04><00><02> <00>## Linking for Windows\n\nThe [windows-link](https://crates.io/crates/windows-link) crate provides the `link` macro that simplifies linking. The `link` macro is much the same as the one provided by [windows-targets](https://crates.io/crates/windows-targets) but uses `raw-dylib` and thus does not require import lib files.\n\n* [Getting started](https://kennykerr.ca/rust-getting-started/)\n* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples)\n* [Releases](https://github.com/microsoft/windows-rs/releases)\n\nStart by adding the following to your Cargo.toml file:\n\n```toml\n[dependencies.windows-link]\nversion = \"0.2\"\n```\n\nUse the `link` macro to define the external functions you wish to call:\n\n```rust\nwindows_link::link!(\"kernel32.dll\" \"system\" fn SetLastError(code: u32));\nwindows_link::link!(\"kernel32.dll\" \"system\" fn GetLastError() -> u32);\n\nunsafe {\n SetLastError(1234);\n assert_eq!(GetLastError(), 1234);\n}\n```\n<><00>## Linking for Windows
The [windows-link](https://crates.io/crates/windows-link) crate provides the `link` macro that simplifies linking. The `link` macro is much the same as the one provided by [windows-targets](https://crates.io/crates/windows-targets) but uses `raw-dylib` and thus does not require import lib files.
* [Getting started](https://kennykerr.ca/rust-getting-started/)
* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples)
* [Releases](https://github.com/microsoft/windows-rs/releases)
Start by adding the following to your Cargo.toml file:
```toml
[dependencies.windows-link]
version = "0.2"
```
Use the `link` macro to define the external functions you wish to call:
```rust
windows_link::link!("kernel32.dll" "system" fn SetLastError(code: u32));
windows_link::link!("kernel32.dll" "system" fn GetLastError() -> u32);
unsafe {
SetLastError(1234);
assert_eq!(GetLastError(), 1234);
}
```
<EFBFBD><00><00><01>&<02> <0B><02>  <0B> <0B> <0B><><EFBFBD><00><>+( Defines an external function to import.<2E><02> d<>|<7C> <0C> <0C> <0C> <0C>, <0C>8library<72><<3C>& <0C>8<02> <<3C>, <0C>8<02><1C>& <0C>8<02> <<3C>, <0C> <0C> <0C>, <0C>8<02> L<>& <0C>8<02> <<3C>- <0C>8 <14>, <0C> <0C> <0C>, <0C>8function<6F>D<>& <0C>8<02><14> <0C>*<14> <0C> <0C>+ <0C> <0C> <0C>8<02> $<24> <0C> <0C> 8<02>
$<24> <0C>, <0C>8<01><<3C>$ <0C>8<02> $<24> <0C>7<02> \<5C>$ <0C>8<02>
L<> <0C>7 +verbatim<69>\<5C>8
4<>, <0C>8<02><1C> <0C> <0C> , <0C> <0C> <0C>+ <0C> <0C> <0C>8<02> L<> <0C>, <0C>8<02> L<>- <0C>8<1C>8 <14>, <0C> <0C> <0C>, <0C>8<01>D<> <0C>% <0C>%https://crates.io/crates/windows-link<6E>windows-targets<74>(https://crates.io/crates/windows-targets<74>Getting started<65>*https://kennykerr.ca/rust-getting-started/<2F>Samples<65>Bhttps://github.com/microsoft/windows-rs/tree/master/crates/samples<65>Releases<65>0https://github.com/microsoft/windows-rs/releases<65> windows-link<6E><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><04><><EFBFBD><EFBFBD><EFBFBD>q@p<><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>vRIB1<42><31><EFBFBD><EFBFBD><EFBFBD>D<EFBFBD>4<EFBFBD>)<29><><00><08>)<29>8 <01><08><08><00>5 <09><08><><EFBFBD><EFBFBD>9 <09> "%<02> <04><><EFBFBD><EFBFBD><EFBFBD>q<>X<EFBFBD><58><EFBFBD>W<EFBFBD><57><02><00> ſ<>Z<01><01><04><><EFBFBD><EFBFBD><EFBFBD>q<1D><1D> F<>fB<0E> <00> <0A> <0A> <0E> 2<0E>ODHT <02><><04><><EFBFBD><EFBFBD><EFBFBD>qvRIB1<42><31><EFBFBD><00><>D<EFBFBD>4<EFBFBD>)<29>@p<><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>8\<5C><>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>M8\<5C><>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>M`C:\Users\dxzq\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows-link-0.2.1\src\lib.rs<72> <20><>5<68><C494>&<26><05>\<5C><><00>'' ,*Tp("
,/TN("
,T"
<00><01>X<><58><EFBFBD><1B>^-q<14>fC:\Users\dxzq\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows-link-0.2.1\src\../readme.md<6D> <20><>3<EFBFBD><05>1<EFBFBD><31><08>'<27><1D><00>)@P?7HIG & n<><6E><EFBFBD>3+<14><5F>O\ x86_64-pc-windows-gnu<6E><75>S<EFBFBD>ω<EFBFBD>SF<53><46><EFBFBD><EFBFBD>ηC<CEB7> windows_link<6E>-10e59cec4c5e241e<31><04><><EFBFBD><EFBFBD><EFBFBD>q<02>!R<00>  <04><02>rust-end-file