Getting client's process handle from a COM/WinRT Server
Useful for verifying caller client identity
This might be the shortest article ever written, so basically there’s a private built-in Call Context interface that allows you to get a handle to client’s process.
This can be useful for various of things, for example verifying the caller client identity from your server without having a custom interface for that which can actually be exploited.
So let’s start!
Here’s the interface definition:
And here’s the usage:
You can use that handle to get the PID, for example, by using the GetProcessId function.
And that’s it, bye!
Last modified on February 20, 2026