Class: RAPI::ProcessInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/rapi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(process_information) ⇒ ProcessInformation



453
454
455
456
457
458
# File 'lib/rapi.rb', line 453

def initialize(process_information)
  @process_handle = process_information[:hProcess]
  @thread_handle  = process_information[:hThread]
  @process_id     = process_information[:dwProcessId]
  @thread_id      = process_information[:dwThreadId]
end

Instance Attribute Details

#process_handleObject (readonly)

Returns the value of attribute process_handle



448
449
450
# File 'lib/rapi.rb', line 448

def process_handle
  @process_handle
end

#process_idObject (readonly)

Returns the value of attribute process_id



450
451
452
# File 'lib/rapi.rb', line 450

def process_id
  @process_id
end

#thread_handleObject (readonly)

Returns the value of attribute thread_handle



449
450
451
# File 'lib/rapi.rb', line 449

def thread_handle
  @thread_handle
end

#thread_idObject (readonly)

Returns the value of attribute thread_id



451
452
453
# File 'lib/rapi.rb', line 451

def thread_id
  @thread_id
end