Sha256: ff764d925ed67ee3c57d183dd561ad28db7f4bf6e8611a289d1b22e41c53fa0f
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
require 'windows/api' module Windows module Handle API.auto_namespace = 'Windows::Handle' API.auto_constant = true API.auto_method = true API.auto_unicode = false private INVALID_HANDLE_VALUE = (1<<['a'].pack('p').length*8)-1 HANDLE_FLAG_INHERIT = 0x00000001 HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002 API.new('CloseHandle', 'L', 'B') API.new('DuplicateHandle', 'LLLPLIL', 'B') API.new('GetHandleInformation', 'LL', 'B') API.new('SetHandleInformation', 'LLL', 'B') API.new('_get_osfhandle', 'I', 'L', MSVCRT_DLL) API.new('_open_osfhandle', 'LI', 'I', MSVCRT_DLL) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.6 | lib/windows/handle.rb |
windows-pr-1.2.5 | lib/windows/handle.rb |