Files
guba-indicator/rust/target/debug/deps/libwindows_link-a2622e52308cdcaa.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>&<26><72>u2r<32>b<EEB189>R<EFBFBD><52>0<EFBFBD><30>-O<><4F>.<2E>2(z<><08><00><08>)<29><00> <09><00><08><08><00><00> <09><08><><EFBFBD><EFBFBD><00> <09> "%<02> &<26><72>u2<75>X<EFBFBD><58><EFBFBD>W<EFBFBD><57><02><00> Š<>[<01><01>&<26><72>u2<75><32>~<7E>q/<2F>w<02><a,Q<0E><0E>ODHT <02><><00>.<2E>2(z<00><>0<EFBFBD><30>-O<>&<26><72>u2r<>b<EEB189>R<00><>=<3D><><EFBFBD><EFBFBD>I<EFBFBD>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=<3D><><EFBFBD><EFBFBD>I<EFBFBD>)<29><><EFBFBD><EFBFBD><EFBFBD>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"
x<><78>("<22>-8<><04>9<EFBFBD><39>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 &ٌJWLJN<4A>+/<13>l<EFBFBD><1B><00>tx86_64-pc-windows-msvc<76><63><EFBFBD><EFBFBD>L<EFBFBD>/> <09><><EFBFBD><EFBFBD>M<EFBFBD><4D>J windows_link<6E>-a2622e52308cdcaa<61>&<26><72>u2<02>"R<00>  <04><02>rust-end-file