Class: TurboRex::Windows::ALPC::PortMessage::ClientID
- Inherits:
-
Object
- Object
- TurboRex::Windows::ALPC::PortMessage::ClientID
- Defined in:
- lib/turborex/windows/alpc.rb
Instance Attribute Summary collapse
-
#unique_process ⇒ Object
Returns the value of attribute unique_process.
-
#unique_thread ⇒ Object
Returns the value of attribute unique_thread.
Instance Method Summary collapse
-
#initialize(unique_process, unique_thread) ⇒ ClientID
constructor
A new instance of ClientID.
- #to_struct ⇒ Object
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_process ⇒ Object
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_thread ⇒ Object
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_struct ⇒ Object
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 |