windows-pr 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +7 -0
- data/lib/windows/com/accessibility.rb +13 -13
- data/lib/windows/com/automation.rb +2 -2
- data/lib/windows/com/variant.rb +1 -1
- data/lib/windows/national.rb +16 -0
- data/windows-pr.gemspec +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
= 1.0.5 - 21-May-2009
|
|
2
|
+
* Fixed VARIANT_TRUE value in the Windows::COM::Variant module.
|
|
3
|
+
* Added some functions to the Windows::National module, and handled some
|
|
4
|
+
Vista only functions properly.
|
|
5
|
+
* Updated the return types of the SafeArrayCreate and SafeArrayCreateVector
|
|
6
|
+
functions in the Windows::COM::Automation module.
|
|
7
|
+
|
|
1
8
|
= 1.0.4 - 15-May-2009
|
|
2
9
|
* Created the Windows::COM::Variant module.
|
|
3
10
|
* Created the Windows::COM::Accessibility module.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
require 'windows/api'
|
|
2
|
-
|
|
3
|
-
module Windows
|
|
4
|
-
module COM
|
|
5
|
-
module Accessibility
|
|
6
|
-
API.auto_namespace = 'Windows::COM::Accessibility'
|
|
7
|
-
API.auto_constant = true
|
|
8
|
-
API.auto_method = true
|
|
9
|
-
API.auto_unicode = false
|
|
10
|
-
|
|
11
|
-
API.new('ObjectFromLresult', 'LPIP', 'L', 'oleacc')
|
|
12
|
-
end
|
|
13
|
-
end
|
|
1
|
+
require 'windows/api'
|
|
2
|
+
|
|
3
|
+
module Windows
|
|
4
|
+
module COM
|
|
5
|
+
module Accessibility
|
|
6
|
+
API.auto_namespace = 'Windows::COM::Accessibility'
|
|
7
|
+
API.auto_constant = true
|
|
8
|
+
API.auto_method = true
|
|
9
|
+
API.auto_unicode = false
|
|
10
|
+
|
|
11
|
+
API.new('ObjectFromLresult', 'LPIP', 'L', 'oleacc')
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
14
|
end
|
|
@@ -115,8 +115,8 @@ module Windows
|
|
|
115
115
|
API.new('SafeArrayAllocDescriptor', 'LP', 'L', 'oleaut32')
|
|
116
116
|
API.new('SafeArrayCopy', 'PP', 'L', 'oleaut32')
|
|
117
117
|
API.new('SafeArrayCopyData', 'PP', 'L', 'oleaut32')
|
|
118
|
-
API.new('SafeArrayCreate', 'LLP', '
|
|
119
|
-
API.new('SafeArrayCreateVector', 'LLL', '
|
|
118
|
+
API.new('SafeArrayCreate', 'LLP', 'L', 'oleaut32')
|
|
119
|
+
API.new('SafeArrayCreateVector', 'LLL', 'L', 'oleaut32')
|
|
120
120
|
API.new('SafeArrayDestroy', 'P', 'L', 'oleaut32')
|
|
121
121
|
API.new('SafeArrayDestroyData', 'P', 'L', 'oleaut32')
|
|
122
122
|
API.new('SafeArrayDestroyDescriptor', 'P', 'L', 'oleaut32')
|
data/lib/windows/com/variant.rb
CHANGED
data/lib/windows/national.rb
CHANGED
|
@@ -530,15 +530,31 @@ module Windows
|
|
|
530
530
|
LOCALE_USER_DEFAULT = 1024
|
|
531
531
|
LOCALE_INVARIANT = 8323072
|
|
532
532
|
|
|
533
|
+
API.new('CompareString', 'LLPIPI', 'I')
|
|
534
|
+
API.new('EnumDateFormats', 'KLL', 'B')
|
|
535
|
+
API.new('EnumDateFormatsEx', 'KLL', 'B')
|
|
533
536
|
API.new('EnumSystemCodePages', 'KL', 'L')
|
|
534
537
|
API.new('EnumSystemLocales', 'KL', 'L')
|
|
538
|
+
API.new('EnumTimeFormats', 'KLL', 'B')
|
|
535
539
|
API.new('GetACP', 'V', 'I')
|
|
540
|
+
API.new('GetCPInfo', 'LP', 'B')
|
|
541
|
+
API.new('GetCPInfoEx', 'LLP', 'B')
|
|
542
|
+
API.new('GetCurrencyFormat', 'LLPPPI', 'I')
|
|
536
543
|
API.new('GetDateFormat', 'LLPPPI', 'I')
|
|
537
544
|
API.new('GetLocaleInfo', 'LLPL', 'I')
|
|
538
545
|
API.new('GetSystemDefaultLangID', 'V', 'L')
|
|
539
546
|
API.new('GetSystemDefaultLCID', 'V', 'L')
|
|
540
547
|
API.new('GetUserDefaultLangID', 'V', 'L')
|
|
541
548
|
API.new('GetUserDefaultLCID', 'V', 'L')
|
|
549
|
+
|
|
550
|
+
begin
|
|
551
|
+
API.new('AdjustCalendarDate', 'PLP', 'B')
|
|
552
|
+
API.new('EnumTimeFormatsEx', 'KSLP', 'B')
|
|
553
|
+
API.new('GetCurrencyFormatEx', 'PLPPPI', 'I')
|
|
554
|
+
API.new('GetDateFormatEx', 'SLPSPIS', 'I')
|
|
555
|
+
rescue Win32::API::LoadLibraryError
|
|
556
|
+
# Windows Vista or later
|
|
557
|
+
end
|
|
542
558
|
|
|
543
559
|
# Convenience method for converting the results of the GetACP()
|
|
544
560
|
# function to a human readable string.
|
data/windows-pr.gemspec
CHANGED
|
@@ -2,7 +2,7 @@ require "rubygems"
|
|
|
2
2
|
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = 'windows-pr'
|
|
5
|
-
gem.version = '1.0.
|
|
5
|
+
gem.version = '1.0.5'
|
|
6
6
|
gem.authors = ['Daniel J. Berger', 'Park Heesob']
|
|
7
7
|
gem.email = 'djberg96@gmail.com'
|
|
8
8
|
gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: windows-pr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel J. Berger
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2009-05-
|
|
13
|
+
date: 2009-05-21 00:00:00 -06:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|