windows-pr 1.0.5 → 1.0.6

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 CHANGED
@@ -1,3 +1,7 @@
1
+ = 1.0.6 - 19-Jul-2009
2
+ * Added several job functions to the Windows::Process module.
3
+ * Updated license to Artistic 2.0.
4
+
1
5
  = 1.0.5 - 21-May-2009
2
6
  * Fixed VARIANT_TRUE value in the Windows::COM::Variant module.
3
7
  * Added some functions to the Windows::National module, and handled some
@@ -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
@@ -68,7 +68,38 @@ module Windows
68
68
  LOGON_NETCREDENTIALS_ONLY = 0x00000002
69
69
 
70
70
  SHUTDOWN_NORETRY = 0x00000001
71
+
72
+ # Job Object Classes
73
+
74
+ JobObjectBasicLimitInformation = 2
75
+ JobObjectBasicUIRestrictions = 4
76
+ JobObjectSecurityLimitInformation = 5
77
+ JobObjectEndOfJobTimeInformation = 6
78
+ JobObjectAssociateCompletionPortInformation = 7
79
+ JobObjectExtendedLimitInformation = 9
80
+ JobObjectGroupInformation = 11
81
+
82
+ # Job Limit Flags
83
+
84
+ JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001
85
+ JOB_OBJECT_LIMIT_PROCESS_TIME = 0x00000002
86
+ JOB_OBJECT_LIMIT_JOB_TIME = 0x00000004
87
+ JOB_OBJECT_LIMIT_ACTIVE_PROCESS = 0x00000008
88
+ JOB_OBJECT_LIMIT_AFFINITY = 0x00000010
89
+ JOB_OBJECT_LIMIT_PRIORITY_CLASS = 0x00000020
90
+ JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = 0x00000040
91
+ JOB_OBJECT_LIMIT_SCHEDULING_CLASS = 0x00000080
92
+ JOB_OBJECT_LIMIT_PROCESS_MEMORY = 0x00000100
93
+ JOB_OBJECT_LIMIT_JOB_MEMORY = 0x00000200
94
+ JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400
95
+ JOB_OBJECT_LIMIT_BREAKAWAY_OK = 0x00000800
96
+ JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = 0x00001000
97
+ JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000
98
+
99
+ # Functions
71
100
 
101
+ API.new('AssignProcessToJobObject', 'LL', 'B')
102
+ API.new('CreateJobObject', 'PS', 'L')
72
103
  API.new('CreateProcess', 'PPPPLLLPPP', 'B')
73
104
  API.new('CreateProcessAsUser', 'LPPLLILPPPP', 'B', 'advapi32')
74
105
  API.new('CreateProcessWithLogonW', 'PPPLPPLLPPP', 'B', 'advapi32')
@@ -91,13 +122,18 @@ module Windows
91
122
  API.new('GetProcessVersion', 'L', 'L')
92
123
  API.new('GetProcessWorkingSetSize', 'LPP', 'B')
93
124
  API.new('GetStartupInfo', 'P', 'V')
125
+ API.new('IsProcessInJob', 'LLP', 'B')
126
+ API.new('OpenJobObject', 'LIS', 'L')
94
127
  API.new('OpenProcess', 'LIL', 'L')
128
+ API.new('QueryInformationJobObject', 'LLPLP', 'B')
95
129
  API.new('SetEnvironmentVariable', 'PP', 'B')
130
+ API.new('SetInformationJobObject', 'LLPL', 'B')
96
131
  API.new('SetPriorityClass', 'LL', 'B')
97
132
  API.new('SetProcessAffinityMask', 'LL', 'B')
98
133
  API.new('SetProcessPriorityBoost', 'LB', 'B')
99
134
  API.new('SetProcessShutdownParameters', 'LL', 'B')
100
135
  API.new('SetProcessWorkingSetSize', 'LLL', 'B')
136
+ API.new('TerminateJobObject', 'LL', 'B')
101
137
  API.new('TerminateProcess', 'LL', 'B')
102
138
  API.new('WaitForInputIdle', 'LL', 'L', 'user32')
103
139
  API.new('WTSEnumerateProcesses', 'LLLPP', 'B', 'wtsapi32')
@@ -2,7 +2,8 @@ require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = 'windows-pr'
5
- gem.version = '1.0.5'
5
+ gem.version = '1.0.6'
6
+ gem.license = 'Artistic 2.0'
6
7
  gem.authors = ['Daniel J. Berger', 'Park Heesob']
7
8
  gem.email = 'djberg96@gmail.com'
8
9
  gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
@@ -25,6 +26,4 @@ spec = Gem::Specification.new do |gem|
25
26
  EOF
26
27
  end
27
28
 
28
- if $0 == __FILE__
29
- Gem::Builder.new(spec).build
30
- end
29
+ Gem::Builder.new(spec).build
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.5
4
+ version: 1.0.6
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-21 00:00:00 -06:00
13
+ date: 2009-07-19 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -162,8 +162,8 @@ files:
162
162
  - windows-pr.gemspec
163
163
  has_rdoc: true
164
164
  homepage: http://www.rubyforge.org/projects/win32utils
165
- licenses: []
166
-
165
+ licenses:
166
+ - Artistic 2.0
167
167
  post_install_message:
168
168
  rdoc_options: []
169
169
 
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements: []
185
185
 
186
186
  rubyforge_project: win32utils
187
- rubygems_version: 1.3.3
187
+ rubygems_version: 1.3.4
188
188
  signing_key:
189
189
  specification_version: 3
190
190
  summary: Windows functions and constants bundled via Win32::API