windows-pr 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ = 0.9.8 - 15-Dec-2008
2
+ * Added many more functions and a few constants to the Windows::Security
3
+ module.
4
+
1
5
  = 0.9.7 - 5-Dec-2008
2
6
  * Renamed Windows::NTFS::File to Windows::NTFS::Winternl.
3
7
  * Updated the Windows::Network::Management and Windows::Shell modules to use
@@ -364,14 +364,32 @@ module Windows
364
364
  WinBuiltinCertSvcDComAccessGroup = 78
365
365
 
366
366
  # Enum AclInformationClass
367
+
367
368
  AclRevisionInformation = 1
368
369
  AclSizeInformation = 2
369
370
 
370
371
  API.new('AccessCheck', 'PLLPPLPP', 'B', 'advapi32')
372
+ API.new('AccessCheckAndAuditAlarm', 'SLPPPLPIPPP', 'B', 'advapi32')
373
+ API.new('AccessCheckByType', 'PPLLPLPPPPP', 'B', 'advapi32')
374
+ API.new('AccessCheckByTypeAndAuditAlarm', 'SLSSPPLLLPLLIPPP', 'B', 'advapi32')
375
+ API.new('AccessCheckByTypeResultList', 'PPLLPLPPPPP', 'B', 'advapi32')
376
+ API.new('AccessCheckByTypeResultListAndAuditAlarm', 'SLSSLPLLLPLLIPPP', 'B', 'advapi32')
377
+ API.new('AddAccessAllowedAce', 'PLLP', 'B', 'advapi32')
378
+ API.new('AddAccessAllowedAceEx', 'PLLLP', 'B', 'advapi32')
379
+ API.new('AddAccessAllowedObjectAce', 'PLLLPPP', 'B', 'advapi32')
380
+ API.new('AddAccessDeniedAce', 'PLLP', 'B', 'advapi32')
381
+ API.new('AddAccessDeniedAceEx', 'PLLLP', 'B', 'advapi32')
382
+ API.new('AddAccessDeniedObjectAce', 'PLLLPPP', 'B', 'advapi32')
371
383
  API.new('AddAce', 'PLLLL', 'B', 'advapi32')
384
+ API.new('AddAuditAccessAce', 'PLLPII', 'B', 'advapi32')
385
+ API.new('AddAuditAccessAceEx', 'PLLLPII', 'B', 'advapi32')
386
+ API.new('AddAuditAccessObjectAce', 'PLLLPPPII', 'B', 'advapi32')
372
387
  API.new('AdjustTokenGroups', 'LLPLPP', 'B', 'advapi32')
373
388
  API.new('AdjustTokenPrivileges', 'LLPLPP', 'B', 'advapi32')
374
389
  API.new('AllocateAndInitializeSid', 'PLLLLLLLLLP', 'B', 'advapi32')
390
+ API.new('AllocateLocallyUniqueId', 'P', 'B', 'advapi32')
391
+ API.new('AreAllAccessesGranted', 'LL', 'B', 'advapi32')
392
+ API.new('AreAnyAccessesGranted', 'LL', 'B', 'advapi32')
375
393
  API.new('CheckTokenMembership', 'LPP', 'B', 'advapi32')
376
394
  API.new('CopySid', 'LLP', 'B', 'advapi32')
377
395
  API.new('ConvertSidToStringSid', 'LP', 'B', 'advapi32')
@@ -379,18 +397,21 @@ module Windows
379
397
  API.new('ConvertStringSecurityDescriptorToSecurityDescriptor', 'PLPP', 'B', 'advapi32')
380
398
  API.new('ConvertStringSidToSid', 'LP', 'B', 'advapi32')
381
399
  API.new('CreateRestrictedToken', 'LLLPLPLPP', 'B', 'advapi32')
400
+ API.new('DeleteAce', 'PL', 'B', 'advapi32')
382
401
  API.new('DuplicateToken', 'LPP', 'B', 'advapi32')
383
402
  API.new('DuplicateTokenEx', 'LLPLLP', 'B', 'advapi32')
384
403
  API.new('EqualDomainSid', 'PPP', 'B', 'advapi32')
385
404
  API.new('EqualPrefixSid', 'PP', 'B', 'advapi32')
386
405
  API.new('EqualSid', 'PP', 'B', 'advapi32')
387
406
  API.new('FindFirstFreeAce', 'PP', 'B', 'advapi32')
407
+ API.new('FreeInheritedFromArray', 'PIP', 'B', 'advapi32')
388
408
  API.new('FreeSid', 'P', 'L', 'advapi32')
389
409
  API.new('GetAce', 'LLP', 'B', 'advapi32')
390
410
  API.new('GetAclInformation', 'PPLI', 'B', 'advapi32')
391
411
  API.new('GetFileSecurity', 'PLPLP', 'B', 'advapi32')
392
412
  API.new('GetFileSecurityA', 'PLPLP', 'B', 'advapi32')
393
413
  API.new('GetFileSecurityW', 'PLPLP', 'B', 'advapi32')
414
+ API.new('GetInheritanceSource', 'PLLIPLPPLP', 'L', 'advapi32')
394
415
  API.new('GetLengthSid', 'P', 'L', 'advapi32')
395
416
  API.new('GetSecurityDescriptorControl', 'PPP', 'B', 'advapi32')
396
417
  API.new('GetSecurityDescriptorDacl', 'PPPP', 'B', 'advapi32')
@@ -422,6 +443,8 @@ module Windows
422
443
  API.new('LookupPrivilegeValue', 'PPP', 'B', 'advapi32')
423
444
  API.new('OpenProcessToken', 'LLP', 'B', 'advapi32')
424
445
  API.new('OpenThreadToken', 'LLLP', 'B', 'advapi32')
446
+ API.new('SetAclInformation', 'PPLL', 'B', 'advapi32')
447
+ API.new('SetEntriesInAcl', 'LPPP', 'L', 'advapi32')
425
448
  API.new('SetFileSecurity', 'PPP', 'B', 'advapi32')
426
449
  API.new('SetFileSecurityA', 'PPP', 'B', 'advapi32')
427
450
  API.new('SetFileSecurityW', 'PPP', 'B', 'advapi32')
@@ -433,12 +456,22 @@ module Windows
433
456
  API.new('SetSecurityInfo', 'LLLPPPP', 'L', 'advapi32')
434
457
  API.new('SetThreadToken', 'PL', 'B', 'advapi32')
435
458
  API.new('SetTokenInformation', 'LLPL', 'B', 'advapi32')
459
+ API.new('SetUserObjectSecurity', 'LPP', 'B', 'user32')
436
460
 
437
- # Windows XP or later
438
461
  begin
439
462
  API.new('CreateWellKnownSid', 'IPPP', 'B', 'advapi32')
463
+ API.new('AddMandatoryAce', 'PLLLP', 'B', 'advapi32')
464
+ rescue Windows::API::Error
465
+ # Windows XP or later
466
+ end
467
+
468
+ begin
469
+ API.new('AuditComputeEffectivePolicyBySid', 'PPLP', 'B', 'advapi32')
470
+ API.new('AuditComputeEffectivePolicyByToken', 'LPLP', 'B', 'advapi32')
471
+ API.new('AuditEnumerateCategories', 'PP', 'B', 'advapi32')
472
+ API.new('AuditEnumeratePerUserPolicy', 'P', 'B', 'advapi32')
440
473
  rescue Windows::API::Error
441
- # Do nothing. It's up to you to check for it.
474
+ # Windows Vista or later
442
475
  end
443
476
  end
444
477
  end
data/windows-pr.gemspec CHANGED
@@ -1,24 +1,24 @@
1
1
  require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
- gem.name = "windows-pr"
5
- gem.version = "0.9.7"
6
- gem.authors = ["Daniel J. Berger", "Park Heesob"]
7
- gem.email = "djberg96@gmail.com"
8
- gem.homepage = "http://www.rubyforge.org/projects/win32utils"
9
- gem.rubyforge_project = "win32utils"
4
+ gem.name = 'windows-pr'
5
+ gem.version = '0.9.8'
6
+ gem.authors = ['Daniel J. Berger', 'Park Heesob']
7
+ gem.email = 'djberg96@gmail.com'
8
+ gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
9
+ gem.rubyforge_project = 'win32utils'
10
10
  gem.platform = Gem::Platform::RUBY
11
- gem.summary = "Windows functions and constants bundled via Win32::API"
12
- gem.description = "Windows functions and constants bundled via Win32::API"
11
+ gem.summary = 'Windows functions and constants bundled via Win32::API'
12
+ gem.description = 'Windows functions and constants bundled via Win32::API'
13
13
  gem.test_files = Dir["test/tc*"]
14
14
  gem.has_rdoc = true
15
15
  gem.files = Dir["doc/*.txt"] + Dir["lib/windows/**/*.rb"]
16
16
  gem.files += Dir["test/*"] + Dir["[A-Z]*"]
17
17
  gem.files.reject! { |fn| fn.include? "CVS" }
18
18
  gem.require_path = "lib"
19
- gem.extra_rdoc_files = ["MANIFEST", "README", "CHANGES"]
20
- gem.add_dependency("windows-api", ">= 0.2.4")
21
- gem.add_dependency("win32-api", ">= 1.2.2")
19
+ gem.extra_rdoc_files = ['MANIFEST', 'README', 'CHANGES']
20
+ gem.add_dependency('windows-api', '>= 0.2.4')
21
+ gem.add_dependency('win32-api', '>= 1.2.2')
22
22
  end
23
23
 
24
24
  if $0 == __FILE__
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: 0.9.7
4
+ version: 0.9.8
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: 2008-12-05 00:00:00 -07:00
13
+ date: 2008-12-16 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency