Security Samples
The following table lists Windows Vista samples that show how to protect communications, applications, and systems, and also how to implement parental controls. These samples are installed under the Samples folder in the following path:
\Program Files\Microsoft SDKs\Windows\v6.0\samples
For build instructions and additional information about the samples, see the Readme.txt files and other documents in the sample folders.
Sample | Description | Location (under Samples) |
---|---|---|
Authorization Store Migration Sample |
Implements a store migration application. |
Security\authorization\azman\AzMigrate |
LHPSDK & R2: Authorization Manager Managed Application Sample |
Adds business rules in Web applications, specifying roles and operations with BizRule parameters. |
Security\authorization\azman\WebExpense |
Creating Simple Certificate Request Using CertEnroll Classes Sample |
Creates a simple CertEnroll-based certificate request. |
Security\CertServices\CertEnroll\CreateSimpleCertRequest |
Online Responder Management Sample |
Implements online response management. |
Security\CertServices\OCSPSample |
Credential Provider API Sample |
Develops alternate user authentication routines. |
Security\CredentialProvider |
Message Encryption Sample |
Encrypts and decrypts a PKCS7 (CMS) message. |
Security\CryptoApi\EncryptMessage\Cpp |
X.509 Logotypes Retrieval Sample |
Retrieves logotype and biometric extensions in X.509 certificates. |
Security\CryptoApi\logotypes |
Peer Trust Sample |
Implements certificate chain building in the Trusted People store. |
Security\CryptoApi\peertrust |
Plugging New Hash Algorithm Sample |
Creates a self-signed certificate with a new hash algorithm. |
Security\CryptoAPI\plughash |
Registering New Algorithm Object Identifiers Sample |
Registers object identifiers (OIDs) for new hash algorithms. |
Security\CryptoApi\registerOID |
Message Signing and Signature Verification Sample |
Signs and verifies message signatures. |
Security\CryptoAPI\SignMessage |
Windows Vista Parental Controls Compliance API Sample |
Sets parental controls, including loging, on applications. |
Security\ParentalControls\ComplianceAPI |
Windows Vista Parental Controls Compliance Application Sample |
Makes an application aware of parental control policy. |
Security\ParentalControls\ComplianceApp |
Windows Vista Parental Controls UI Extensibility Sample |
Manages the Parental Controls control panel. |
Security\ParentalControls\UIExtensibility |
Windows Vista Parental Controls Utilities Sample |
Implements common utility functions needed for COM. |
Security\ParentalControls\Utilities |
Windows Vista Parental Controls Web Extensibility Sample |
Overrides Web content filters, and associated application and URL exemption lists. |
Security\ParentalControls\WebExtensibility |
Windows Firewall Add Outbound Rule Sample |
Adds an outbound rule that allows a TCP connection while temporarily elevating the user. |
Security\WindowsFirewall Add_Outbound_Rule |
Windows Firewall Add Service Rule Sample |
Adds a service while temporarily elevating the user. |
Security\WindowsFirewall\ Add_Service_Rule |
Windows Firewall Add GRE Rule Sample |
Adds a General Routing Encapsulation (GRE) rule while temporarily elevating the user. |
Security\WindowsFirewall\Add_GRE_Rule |
Windows Firewall Add ICMP Rule Sample |
Adds an Internet Control Message Protocol (ICMP) rule while temporarily elevating the user. |
Security\WindowsFirewall\Add_ICPM_Rule |
Windows Firewall Add LAN Rule Sample |
Adds a LAN rule while temporarily elevating the user. |
Security\WindowsFirewall\Add_LAN_Rule |
Windows Firewall Add Per Interface Rule Sample |
Adds a rule per interface while temporarily elevating the user. |
Security\WindowsFirewall\Add_PerInterface_Rule |
Windows Firewall Add Rule with Edge Traversal Sample |
Adds an application rule with edge traversal while temporarily elevating the user. |
Security\WindowsFirewall\Add_Rule_With_EdgeTraversal |
Windows Firewall Disable Firewall Per Interface Sample |
Disables the Windows Firewall per interface while temporarily elevating the user. |
Security\WindowsFirewall\Disable_Firewall_PerInterface |
Disable Windows Firewall Sample |
Disables the Windows Firewall per profile. |
Security\WindowsFirewall\DisableWindowsFirewall |
Windows Firewall Enable Group Sample |
Enables Windows Firewall exception groups. |
Security\WindowsFirewall\EnableGroup |
Windows Firewall Enumerate Rules Sample |
Enumerates Windows Firewall rules. |
Security\WindowsFirewall\EnumerateFirewallRules |
Windows Firewall Get Firewall Settings Sample |
Reads Windows Firewall settings. |
Security\WindowsFirewall\GetFirewallSettings |
Windows Firewall Is Rule Group Currently Enabled Sample |
Determines whether a group is enabled in the current profile can be used to modify the effective state. |
Security\WindowsFirewall\IsRuleGroupCurrentlyEnabled |
Windows Firewall Restrict Service Sample |
Restricts a service on a user with temporary elevated security. |
Security\WindowsFirewall\RestrictService |
Certificate Enrollment machine requested VBScript Sample |
Shows how to create a simple template based machine request with VBScript. |
Security\X509 Certificate Enrollment\VBS\EnrollSimpleMachineCert |
Certificate Enrollment VBScript Sample |
Shows how to create a simple template based user request with VBScript. |
Security\X509 Certificate Enrollment\VBS |
Certificate Enrollment C++ Helper Functions |
Contains helper functions used by C++ samples. |
Security\X509 Certificate Enrollment\VC\enrollCommon |
Certificate Enrollment Custom CMC Sample |
Shows how to create a custom request using CMC (Certificate Management Cryptographic protocol). |
Security\X509 Certificate Enrollment\VC\enrollCustomCMC |
Certificate Enrollment PKCS10 Sample |
Shows how to create a PKCS10 formatted request with custom extensions. |
Security\X509 Certificate Enrollment\VC\enrollCustomPKCS10 |
Certificate Enrollment EOBO CMC Sample |
Shows how to create a EOBO (Enroll on Behalf of) request using CMC (Certificate Management Cryptographic protocol). |
Security\X509 Certificate Enrollment\VC\enrollEOBOCMC |
Certificate Enrollment Public Key CMC Sample |
Shows how to create a request using CMC (Certificate Management Cryptographic protocol) with a pubic key. |
Security\X509 Certificate Enrollment\VC\enrollFromPublicKey |
Certificate Enrollment Archival CMC Sample |
Shows how to create a archival request using CMC (Certificate Management Cryptographic protocol). |
Security\X509 Certificate Enrollment\VC\enrollKeyArchivalCMC |
Certificate Enrollment PKCS7 request. |
Shows how to create a PKCS7 formatted request. |
Security\X509 Certificate Enrollment\VC\enrollPKCS7 |
Certificate Enrollment PKCS7 renewal request. |
Shows how to create a PKCS7 formatted renewal request. |
Security\X509 Certificate Enrollment\VC\enrollRenewalPKCS7 |
Certificate Enrollment Simple Request |
Shows how create a simple template based user request. |
Security\X509 Certificate Enrollment\VC\enrollSimpleUserCert |
See Also
Concepts
Multimedia Samples
Networking and Services Samples
Systems Management Samples
Windows Base Samples
Windows UI Samples
XML Samples