D
Daniel Berger
Hi all,
The second argument is an optional null-terminated array of
directories. How do I create the Ruby structure to pass to it?
require "Win32API"
PathFindOnPath = Win32API.new("shlwapi","PathFindOnPath","PP","L")
file = "ruby.exe"
path = "C:\\foo;C:\\bar"
p PathFindOnPath.call(file, path) # fails
What's the proper way to call this? Thanks.
Dan
# Actual C function declaration
BOOL PathFindOnPath(
LPTSTR pszFile,
LPCTSTR *ppszOtherDirs
);
The second argument is an optional null-terminated array of
directories. How do I create the Ruby structure to pass to it?
require "Win32API"
PathFindOnPath = Win32API.new("shlwapi","PathFindOnPath","PP","L")
file = "ruby.exe"
path = "C:\\foo;C:\\bar"
p PathFindOnPath.call(file, path) # fails
What's the proper way to call this? Thanks.
Dan
# Actual C function declaration
BOOL PathFindOnPath(
LPTSTR pszFile,
LPCTSTR *ppszOtherDirs
);