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

Returns a new instance of ProcessInformation.



278
279
280
281
282
283
# File 'lib/rapi.rb', line 278

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.



273
274
275
# File 'lib/rapi.rb', line 273

def process_handle
  @process_handle
end

#process_idObject (readonly)

Returns the value of attribute process_id.



275
276
277
# File 'lib/rapi.rb', line 275

def process_id
  @process_id
end

#thread_handleObject (readonly)

Returns the value of attribute thread_handle.



274
275
276
# File 'lib/rapi.rb', line 274

def thread_handle
  @thread_handle
end

#thread_idObject (readonly)

Returns the value of attribute thread_id.



276
277
278
# File 'lib/rapi.rb', line 276

def thread_id
  @thread_id
end