Class: TurboRex::Windows::ALPC::PortMessage::ClientID

Inherits:
Object
  • Object
show all
Defined in:
lib/turborex/windows/alpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unique_process, unique_thread) ⇒ ClientID

Returns a new instance of ClientID.



389
390
391
392
# File 'lib/turborex/windows/alpc.rb', line 389

def initialize(unique_process, unique_thread)
  @unique_process = unique_process
  @unique_thread = unique_thread
end

Instance Attribute Details

#unique_processObject

Returns the value of attribute unique_process.



387
388
389
# File 'lib/turborex/windows/alpc.rb', line 387

def unique_process
  @unique_process
end

#unique_threadObject

Returns the value of attribute unique_thread.



386
387
388
# File 'lib/turborex/windows/alpc.rb', line 386

def unique_thread
  @unique_thread
end

Instance Method Details

#to_structObject



394
395
396
397
398
399
# File 'lib/turborex/windows/alpc.rb', line 394

def to_struct
  client_id = APIProxy.alloc_c_struct('CLIENT_ID')
  client_id.UniqueProcess = @unique_process
  client_id.UniqueThread = @unique_thread
  client_id
end