Module: SleipnirAPI::Win32API
- Defined in:
- lib/sleipnir_api/win32api.rb
Overview
:nodoc:
Constant Summary collapse
- GetLongPathName =
::Win32API.new("kernel32", "GetLongPathNameA", "PPL", "L")
Class Method Summary collapse
Class Method Details
.get_long_path_name(short_path) ⇒ Object
10 11 12 13 14 |
# File 'lib/sleipnir_api/win32api.rb', line 10 def get_long_path_name(short_path) buf = '\0' * 1024 len = GetLongPathName.call(short_path, buf, buf.length) buf[0...len] end |