Sha256: 6ba804fa0f8a938fa5395683028f0512c3731866c22ef0857e42c08470f62a59
Contents?: true
Size: 1 KB
Versions: 11
Compression:
Stored size: 1 KB
Contents
require 'ffi' module Sys class Filesystem module Functions extend FFI::Library ffi_lib :kernel32 # Make FFI functions private module FFI::Library def attach_pfunc(*args) attach_function(*args) private args[0] end end attach_pfunc :GetDiskFreeSpaceW, [:buffer_in, :pointer, :pointer, :pointer, :pointer], :bool attach_pfunc :GetDiskFreeSpaceExW, [:buffer_in, :pointer, :pointer, :pointer], :bool attach_pfunc :GetLogicalDriveStringsA, [:ulong, :pointer], :ulong attach_pfunc :GetVolumeInformationA, [:buffer_in, :pointer, :ulong, :pointer, :pointer, :pointer, :pointer, :ulong], :bool attach_pfunc :GetVolumeInformationW, [:buffer_in, :pointer, :ulong, :pointer, :pointer, :pointer, :pointer, :ulong], :bool attach_pfunc :QueryDosDeviceA, [:buffer_in, :buffer_out, :ulong], :ulong ffi_lib :shlwapi attach_pfunc :PathStripToRootW, [:pointer], :bool end end end
Version data entries
11 entries across 11 versions & 1 rubygems