获取 RPC 客户端的进程名称
Get Process Name for RPC Client
给定一个 RPC 调用,我可以很容易地模拟客户端并获取他们的进程令牌,但是我如何从中获取进程名称?
要获取 RPC 客户端的进程名称,您必须使用 RpcServerInqCallAttributes to query the process ID, OpenProcess with the process ID to get the process handle, and QueryFullProcessImageName 和进程句柄来获取完整的进程名称。
给定一个 RPC 调用,我可以很容易地模拟客户端并获取他们的进程令牌,但是我如何从中获取进程名称?
要获取 RPC 客户端的进程名称,您必须使用 RpcServerInqCallAttributes to query the process ID, OpenProcess with the process ID to get the process handle, and QueryFullProcessImageName 和进程句柄来获取完整的进程名称。