Sha256: e9dbac8f996d17e0f1ca2a53f2d083cdd66bec3a5be8e674ea4a48fce84cfcd8

Contents?: true

Size: 746 Bytes

Versions: 5

Compression:

Stored size: 746 Bytes

Contents

# -*- coding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#

module WinAPI
  begin
    require "fiddle/import"
    extend Fiddle::Importer
  rescue LoadError
    # Fiddle がない環境用(http://www.artonx.org/data/asr/ の1.9.3とか)
    require "dl/import"
    extend DL::Importer
  end

  begin
    dlload "msvcrt", "kernel32"
  rescue DL::DLError
    dlload "crtdll", "kernel32"
  end
  extern "long GetLogicalDrives()"
  extern "unsigned long SetConsoleTextAttribute(unsigned long, unsigned long)"
  extern "unsigned long GetConsoleScreenBufferInfo(unsigned long, void*)"
  extern "unsigned long GetStdHandle(unsigned long)"
  extern "long GetLastError()"
  extern "unsigned long _getch()"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
narou-1.7.1 lib/extensions/windows.rb
narou-1.6.4 lib/extensions/windows.rb
narou-1.6.3 lib/extensions/windows.rb
narou-1.6.1 lib/extensions/windows.rb
narou-1.6.0 lib/extensions/windows.rb