sleipnir-api 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +0,0 @@
1
- require "Win32API"
2
-
3
- module SleipnirAPI
4
- module Win32API #:nodoc:
5
-
6
- GetLongPathName = ::Win32API.new("kernel32", "GetLongPathNameA", "PPL", "L")
7
-
8
- module_function
9
-
10
- def get_long_path_name(short_path)
11
- buf = '\0' * 1024
12
- len = GetLongPathName.call(short_path, buf, buf.length)
13
- buf[0...len]
14
- end
15
-
16
- end
17
- end