Click here to Skip to main content
15,893,508 members
Articles / Desktop Programming / MFC

Query the New Windows Audit Policies Programmatically

Rate me:
Please Sign up or sign in to vote.
4.08/5 (7 votes)
26 Feb 2010CPOL3 min read 54.1K   2K   14  
This sample show how to access the information retrieved by running Auditpol.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Audit Policy Browser.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_AUDITPOLICYBROWSER_DIALOG   102
#define IDR_MAINFRAME                   128
#define IDC_BUTTON_ENUMERATE_CATEGORIES 1000
#define IDC_LIST_CATEGORIES             1006
#define IDC_LIST2                       1008
#define IDC_STATIC_POLICY_AUDIT_EVENT_NONE 1012
#define IDC_STATICPOLICY_AUDIT_EVENT_SUCCESS 1013
#define IDC_STATIC_POLICY_AUDIT_EVENT_FAILURE 1014
#define IDC_SYSLINK1                    1016
#define IDC_SYSLINK                     1016

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1017
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer winitor
Germany Germany
Marc Ochsenmeier is the author of pestudio (www.winitor.com) and worked as developer with the focus on Windows Security. He now works as a Malware Analyst

pestudio is on twitter at: https://twitter.com/ochsenmeier

Comments and Discussions