Class: RAPI::ProcessInformation
- Inherits:
-
Object
- Object
- RAPI::ProcessInformation
- Defined in:
- lib/rapi.rb
Instance Attribute Summary collapse
-
#process_handle ⇒ Object
readonly
Returns the value of attribute process_handle.
-
#process_id ⇒ Object
readonly
Returns the value of attribute process_id.
-
#thread_handle ⇒ Object
readonly
Returns the value of attribute thread_handle.
-
#thread_id ⇒ Object
readonly
Returns the value of attribute thread_id.
Instance Method Summary collapse
-
#initialize(process_information) ⇒ ProcessInformation
constructor
A new instance of ProcessInformation.
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_handle ⇒ Object (readonly)
Returns the value of attribute process_handle.
273 274 275 |
# File 'lib/rapi.rb', line 273 def process_handle @process_handle end |
#process_id ⇒ Object (readonly)
Returns the value of attribute process_id.
275 276 277 |
# File 'lib/rapi.rb', line 275 def process_id @process_id end |
#thread_handle ⇒ Object (readonly)
Returns the value of attribute thread_handle.
274 275 276 |
# File 'lib/rapi.rb', line 274 def thread_handle @thread_handle end |
#thread_id ⇒ Object (readonly)
Returns the value of attribute thread_id.
276 277 278 |
# File 'lib/rapi.rb', line 276 def thread_id @thread_id end |