Project

General

Profile

Bug #6543 ยป win32test.rb

Test code - hron84 (Gabor Garami), 06/04/2012 07:52 AM

 
require 'Win32API'

CSIDL_COMMON_APPDATA = 0x0023
path = 0.chr * 260
SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'LLLLP',
'L'

SHGetFolderPath.call 0, CSIDL_COMMON_APPDATA, 0, 1, path

p path.strip
    (1-1/1)