“The problem is, you didn’t PROVIDE “the entire code”… you provided a jumble of pseudo-code and a poorly phrased question:”
That’s wrong, everything is in the first post.
As stated by Ntdev geek: “From the beginning it was easy to understand that you were trying to use IoGetDeviceObjectPointer as a (much too long) detour to the undocumented ObOpenObjectByName”
This is just people are too lazy to read everything, and they stop at the first sentence.
“And you failed to clarify this on any of the follow-ups to your post”
By telling to re-read one more time? Come one, we’re not here to teach how to read a short text…
“It is unwise to insult the people who are trying to help you.”
As well as insulting people that asking help. It applies to everyone.
“Have you considered calling ObReferenceObjectByName?”
As said before (!), " I have another method iterating the Driver directory instead and using ObOpenObjectByName, but it’s used only if the previous failed."
Ok, let’s forget those communication issues…
I was concerned about the fact that it’s undocumented, but if you experimented guys tell me that it’s pretty safe to use it across all OS’s, then I think I’ll switch the order of the calls (put that one in 1st position).
However, just out of curiosity, any idea WHY this BSoD is happening?