Skip to content

Commit

Permalink
Merge pull request #6 from unknowntrojan/master
Browse files Browse the repository at this point in the history
bump windows & strum version
  • Loading branch information
ohchase authored Mar 10, 2024
2 parents dd691fc + f1ff5ad commit 8e6b697
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
18 changes: 3 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,11 @@ documentation = "https://docs.rs/crate/shroud/latest"
keywords = ["directx", "hacking", "games", "hook"]

[dependencies]
windows = { version = "0.48.0", features = [
"Win32_Foundation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_LibraryLoader",

"Win32_UI_WindowsAndMessaging",
"Win32_Graphics_Gdi",
"Win32_UI_Input_KeyboardAndMouse",

"Win32_Graphics_Direct3D",
"Win32_Graphics_Dxgi_Common",
] }
windows = { version = "0.51.1", features = ["Win32_Foundation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_LibraryLoader", "Win32_UI_WindowsAndMessaging", "Win32_Graphics_Gdi", "Win32_UI_Input_KeyboardAndMouse", "Win32_Graphics_Direct3D", "Win32_Graphics_Dxgi_Common"] }
thiserror = "1.0.37"

strum = "0.24.1"
strum_macros = "0.24.3"
strum = "0.25.0"
strum_macros = "0.25.2"

[features]
default = ["directx9", "directx10", "directx11", "directx12"]
Expand Down
8 changes: 1 addition & 7 deletions examples/shroud-debug/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@ crate-type = ["cdylib"]

[dependencies]
shroud = { path = "../../", features = ["directx9", "directx11", "directx12"] }
windows = { version = "0.48.0", features = [
"Win32_Foundation",
"Win32_System_SystemServices",
"Win32_Security",
"Win32_System_Threading",
"Win32_System_Console",
] }
windows = { version = "0.51.1", features = ["Win32_Foundation", "Win32_System_SystemServices", "Win32_Security", "Win32_System_Threading", "Win32_System_Console"] }
3 changes: 2 additions & 1 deletion examples/shroud-debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ unsafe extern "system" fn start_routine(_parameter: *mut std::ffi::c_void) -> u3
#[allow(non_snake_case)]
pub extern "system" fn DllMain(dll_module: HMODULE, call_reason: u32, _reserved: usize) -> BOOL {
if call_reason == DLL_PROCESS_ATTACH {
unsafe { AllocConsole() };
let _ = unsafe { AllocConsole() };

println!("Attached.");

let thread = unsafe {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub(crate) fn get_process_window() -> Option<HWND> {
Some(enum_windows_callback),
std::mem::transmute::<_, LPARAM>(&mut output as *mut HWND),
)
.ok()?
};

match output.0 == 0 {
Expand Down

0 comments on commit 8e6b697

Please sign in to comment.