Project

General

Profile

Bug #6543 ยป win32test.rb

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

 
1
require 'Win32API'
2

    
3
CSIDL_COMMON_APPDATA = 0x0023
4
path = 0.chr * 260
5
SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'LLLLP',
6
  'L'
7

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

    
10
p path.strip