Share via

window-rs ObjectFromLresult

Ohad Dahan 0 Reputation points
2024-01-19T11:00:12.9733333+00:00

I'm trying to export working code I have in C# to Rust using the official window rust crate windows-rs (basically doing the exact same calls just with their Rust alternative).

I'm double checking that the handle points to a Internet Explorer_Server class handle. I'm getting the following error.

result = Err(Error { code: HRESULT(0x80004003), message: "Invalid pointer" })

I also couldn't find a single example of using ObjectFromLresult in Rust GitHub search .

Link to code.

Windows development | Windows API - Win32

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.