Files
guba-indicator/rust/target/release/deps/libwindows_link-bf1c934edbb4fbbe.rmeta

34 lines
4.7 KiB
Plaintext
Raw Normal View History

rust
T#rustc 1.93.1 (01f6ddf75 2026-02-11)<29><02><05><11><><EFBFBD>GȬx<C8AC>92X<32>l-5bed970bceb2abc5<63><02>L<><4C><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD>E,<07>R<EFBFBD><52>-3d16dd14375d91ab<61><01><02> $<24><02>\r<02>,<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> ֌<><00><>+( Defines an external function to import.<2E><02><1C> <0C> <0C>8<02><1C> <0C> <0C>8<02><<3C>$ <0C>8<02> <1C> <0C> <0C>8<02>\<5C> <0C>7<02>,<2C><00><>.&|<7C> <0B> <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>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>%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><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01><01>'f<>{<12>~<7E><>yX-<2D>;<3B><>~<7E>غ薈ؽ<E89688><08><00><08>)<29><00> <09><00><08><08><00><00> <09><08><><EFBFBD><EFBFBD><00> <09> "%<02> 'f<>{<12>~<7E>X<EFBFBD><58><EFBFBD>W<EFBFBD><57><02><00> Š<>[<01><01>'f<>{<12>~<7E><>~<7E>q/<2F>w<02><a,Q<0E><0E>ODHT <02><>'f<>{<12>~<00>ؽ<EFBFBD>n<><00>~<7E>غ<><D8BA><00><>yX-<2D>;<3B><00><>?<3F><><EFBFBD><EFBFBD>iK<69><4B><EFBFBD><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD>?<3F><><EFBFBD><EFBFBD>iK<69><4B><EFBFBD><EFBFBD>I<EFBFBD><49>dC:\Users\dxzq\.cargo\registry\src\mirrors.ustc.edu.cn-38d0e5eb5da2abae\windows-link-0.2.1\src\lib.rs<72> ʜ<><CA9C><EFBFBD>|<7C>-<2D>\g|<7C>cU<63>ҞAh.Z<><5A><05><>=!kS3<00><08>'' ,*Tp("
,/TN("
,T"
+<2B>_|<7C>Q<EFBFBD><51><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]n<><6E>jC:\Users\dxzq\.cargo\registry\src\mirrors.ustc.edu.cn-38d0e5eb5da2abae\windows-link-0.2.1\src\../readme.md<6D> K<>w(Ugk[<06><><EFBFBD><EFBFBD>;c:<3A><>fɿ<1F>$D<>Ba<42><00><07>)@P?7HIG &H<><48>a<>sA<73>X"<22><><EFBFBD><00>tx86_64-pc-windows-msvc<76><63><12><><EFBFBD><EFBFBD><EFBFBD>B<07>A<EFBFBD>n<EFBFBD><6E>M windows_link<6E>-bf1c934edbb4fbbe<62>'f<>{<12>~<02>"R<00>  <04><02>rust-end-file