Class: TT::Win32::API

Inherits:
Object
  • Object
show all
Defined in:
TT_Lib2/win32.rb

Overview

Since:

  • 2.5.0

Instance Method Summary collapse

Constructor Details

#initialize(function, input, output, library) ⇒ API

Returns a new instance of API

Since:

  • 2.5.0



29
30
31
# File 'TT_Lib2/win32.rb', line 29

def initialize(function, input, output, library)
  @api = ::Win32API.new(library, function, input, output)
end

Instance Method Details

#call(*args) ⇒ Object

Since:

  • 2.5.0



32
33
34
35
# File 'TT_Lib2/win32.rb', line 32

def call(*args)
  args.map! { |arg| arg.nil? ? 0 : arg }
  @api.call(*args)
end