Flowdock
method

new

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Win32API
new(dllname, func, import, export = "0", calltype = :stdcall) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/dl/win32/lib/Win32API.rb, line 11
  def initialize(dllname, func, import, export = "0", calltype = :stdcall)
    @proto = [import].join.tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1')
    handle = DLL[dllname] ||= DL.dlopen(dllname)
    @func = DL::CFunc.new(handle[func], TYPEMAP[export.tr("VPpNnLlIi", "0SSI")], func, calltype)
  rescue DL::DLError => e
    raise LoadError, e.message, e.backtrace
  end
Register or log in to add new notes.