mirror of
https://github.com/nefarius/ViGEmBus.git
synced 2025-08-10 00:52:17 +00:00
Implemented IOCTL_XUSB_GET_USER_INDEX
This commit is contained in:
@@ -381,6 +381,11 @@ bool ViGEm::Bus::Core::EmulationTargetPDO::IsOwnerProcess() const
|
||||
return this->_OwnerProcessId == current_process_id();
|
||||
}
|
||||
|
||||
VIGEM_TARGET_TYPE ViGEm::Bus::Core::EmulationTargetPDO::GetType() const
|
||||
{
|
||||
return this->_TargetType;
|
||||
}
|
||||
|
||||
unsigned long ViGEm::Bus::Core::EmulationTargetPDO::current_process_id()
|
||||
{
|
||||
return static_cast<DWORD>((DWORD_PTR)PsGetCurrentProcessId() & 0xFFFFFFFF);
|
||||
|
||||
Reference in New Issue
Block a user