Get Set Key Security Test
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
Type: Automated Test
Overview
This test verifies the RegGetKeySecurity and RegSetKeySecurity APIs.
Details
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
RegGetKeySecurity Test: Call RegGetKeySecurity on the predefined handles and a subkey under each of them.
RegSetKeySecurity Test: Call RegSetKeySecurity on predefined handles and a subkey under each of them.
Invalid parameter tests for RegGetKeySecurity and RegSetKeySecurity:
- NULL handle
- INVALID_HANDLE_VALUE handle
- Invalid SecurityInformation values for RegGetKeySecurity
- Invalid pSecurityDescriptor value
- Invalid lpcbSecurityDescriptor value for RegGetKeySecurity
Run Time: Under 5 minutes
Log File: GetSetKeySecurity.log
System Restart Required: No
Test Category: Kernel Mode Filter Drivers
Supported operating systems for Logo or Signature testing:
Windows 7
Windows Server 2008 R2
Program: Reggetsetkeysec.exe
Requirements
Software Requirements
The test tool requires the following software:
- Supported operating system (see list above)
- Software components included with the device that is being tested
Hardware Requirements
- Device to be tested
- Computers that meets the minimum software requirements
- Windows keyboard
- Two-button pointing device
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
Processor
The test tool runs on the following processor architectures:
- x86
- x64
Running the Test
All test cases return PASS or FAIL. Search for the term “+sev” in the log file for failures.
Command Syntax
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
Command option | Description |
---|---|
reggetsetkeysec.exe | With no options, runs the test |
Code Tour
File Manifest
File | Location |
---|---|
RegGetSetKeySec.exe – main test binary | [WTT\TestBinRoot]\nttest\basetest\kernel\cm |
Ntlog.dll – logging library |
Build date: 9/14/2012