From: Roger Pack Date: 2009-12-19T10:19:19+09:00 Subject: [ruby-core:27222] Win32API question Question... I've seen this code before... if RUBY_VERSION > '1.9' then SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP', 'L', :stdcall ... else SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'LLLLP', ... 'L' end http://rubygems.rubyforge.org/svn/trunk/lib/rubygems/config_file.rb Anybody know why in ruby 1.9 the signature would be changed for SHGetFolderPath (PLPLP to LLLLP)? Its signature is HRESULT SHGetFolderPath( HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPTSTR pszPath ); Thanks. -r