Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7400,7 +7400,6 @@ dependencies = [
"test_igvm_agent_lib",
"tracing",
"tracing-subscriber",
"winapi",
"windows-sys 0.61.0",
]

Expand Down
1 change: 0 additions & 1 deletion vm/devices/get/test_igvm_agent_rpc_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ tracing.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter"] }

[target.'cfg(windows)'.dependencies]
winapi.workspace = true
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_System_Memory",
Expand Down
12 changes: 6 additions & 6 deletions vm/devices/get/test_igvm_agent_rpc_server/src/rpc/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ use std::ffi::c_void;
use std::mem::size_of;
use std::ptr;
use std::slice;
use winapi::shared::winerror::E_FAIL;
use winapi::shared::winerror::E_INVALIDARG;
use winapi::shared::winerror::E_OUTOFMEMORY;
use winapi::shared::winerror::E_POINTER;
use winapi::shared::winerror::HRESULT;
use winapi::shared::winerror::S_OK;
use windows_sys::Win32::Foundation::E_FAIL;
use windows_sys::Win32::Foundation::E_INVALIDARG;
use windows_sys::Win32::Foundation::E_OUTOFMEMORY;
use windows_sys::Win32::Foundation::E_POINTER;
use windows_sys::Win32::Foundation::S_OK;
use windows_sys::Win32::System::Rpc::RPC_S_SERVER_UNAVAILABLE;
use windows_sys::Win32::System::Rpc::RpcRaiseException;
use windows_sys::core::HRESULT;

#[unsafe(no_mangle)]
/// Allocator shim invoked by the generated MIDL stubs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std::os::windows::ffi::OsStrExt;
use std::ptr;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering;
use winapi::shared::minwindef::BOOL;
use windows_sys::Win32::Foundation::FALSE;
use windows_sys::Win32::Foundation::TRUE;
use windows_sys::Win32::System::Console::CTRL_BREAK_EVENT;
Expand All @@ -25,6 +24,7 @@ use windows_sys::Win32::System::Rpc::RpcServerListen;
use windows_sys::Win32::System::Rpc::RpcServerRegisterIf3;
use windows_sys::Win32::System::Rpc::RpcServerUnregisterIf;
use windows_sys::Win32::System::Rpc::RpcServerUseProtseqEpW;
use windows_sys::core::BOOL;

pub const PROTOCOL_SEQUENCE: &str = "ncalrpc";
pub const ENDPOINT: &str = "IGVM_AGENT_RPC_SERVER";
Expand Down