Module: SleipnirAPI::FFI::Kernel32

Extended by:
Base
Included in:
Process
Defined in:
lib/sleipnir_api/ffi/kernel32.rb

Overview

:nodoc:

Class Method Summary collapse

Methods included from Base

define_ffi_entry

Class Method Details

.get_long_path_name(short_path) ⇒ Object



13
14
15
16
17
# File 'lib/sleipnir_api/ffi/kernel32.rb', line 13

def get_long_path_name(short_path)
  buf = "\0" * 1024
  len = GetLongPathName(short_path, buf, buf.length)
  buf[0...len]
end