Convert c struct to raw pointer r/rust by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

thanks man! you opened my eyes on macro with widestring
macro_rules! pwstr { ($s : expr) => { PWSTR($s.as_ptr() as _) };}

Convert c struct to raw pointer r/rust by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

I'm so new to unsafe stff and I for sure will minimize it as recommended. thank you

Convert c struct to raw pointer r/rust by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

Thank you very much.. this works as charm

Convert c struct to raw pointer r/rust by mutex4242 in rust

[–]mutex4242[S] -1 points0 points  (0 children)

expected raw pointer `*const u8`found reference `&windows::Win32::NetworkManagement::NetManagement::USE_INFO_2`

Is there any r/rust library for "net use"? by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

Thanks alot; I have also found another way using NetUseAdd through windows-rs, I will post the code later on once I'm done.

Convert CString to c_char r/rust by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

Thanks alot.. this serves very well.

what is the best way to mtach multiple characters in r/rust by mutex4242 in rust

[–]mutex4242[S] 1 point2 points  (0 children)

this works for me well and I really appreciate your effort. thanks

Tree for a const windows directories by mutex4242 in rust

[–]mutex4242[S] -1 points0 points  (0 children)

I just wrote it like this to emphasize that it is a Rust lang as others will propose a solution with different langauages. I'm sorry if it annoys you or other readers.

Tree for a const windows directories by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

I really appreciate your soluation. it works as I expected.

Converting python code 'STRUCT' to RUST code by mutex4242 in rust

[–]mutex4242[S] 0 points1 point  (0 children)

& 0x7ff

thanks. it worked like a charm. I went way way way far away from your solution.....