Sha256: 877eeb4c7861b1cc85598990922b9589e605b96fa928f85306edba20b0b72f78

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

require 'windows/api'

# Functions and constants from tlhelp32.h

module Windows
  module ToolHelper
    API.auto_namespace = 'Windows::ToolHelper'
    API.auto_constant  = true
    API.auto_method    = true
    API.auto_unicode   = true

    private

    TH32CS_SNAPHEAPLIST = 0x00000001 
    TH32CS_SNAPPROCESS  = 0x00000002 
    TH32CS_SNAPTHREAD   = 0x00000004 
    TH32CS_SNAPMODULE   = 0x00000008 
    TH32CS_SNAPMODULE32 = 0x00000010 
    TH32CS_INHERIT      = 0x80000000
    TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE |
       TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD
    
    API.new('CreateToolhelp32Snapshot', 'LL', 'L')
    API.new('Heap32First', 'PLL', 'B')
    API.new('Heap32ListFirst', 'LP', 'B')
    API.new('Heap32ListNext', 'LP', 'B')
    API.new('Heap32Next', 'P', 'B')
    API.new('Module32First', 'LP', 'B')
    API.new('Module32Next', 'LP', 'B')
    API.new('Process32First', 'LP', 'B')
    API.new('Process32Next', 'LP', 'B')
    API.new('Thread32First', 'LP', 'B')
    API.new('Thread32Next', 'LP', 'B')
    API.new('Toolhelp32ReadProcessMemory', 'LLPLL', 'B')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
windows-pr-1.2.6 lib/windows/tool_helper.rb
windows-pr-1.2.5 lib/windows/tool_helper.rb
windows-pr-1.2.2 lib/windows/tool_helper.rb
windows-pr-1.2.1 lib/windows/tool_helper.rb
windows-pr-1.2.0 lib/windows/tool_helper.rb