Skip to content

Latest commit

 

History

History
96 lines (77 loc) · 3.56 KB

nf-authz-authzinstallsecurityeventsource.md

File metadata and controls

96 lines (77 loc) · 3.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:authz.AuthzInstallSecurityEventSource
AuthzInstallSecurityEventSource function (authz.h)
Installs the specified source as a security event source.
AuthzInstallSecurityEventSource
AuthzInstallSecurityEventSource function [Security]
authz/AuthzInstallSecurityEventSource
security.authzinstallsecurityeventsource
security\authzinstallsecurityeventsource.htm
security
77cb5c6c-1634-4449-8d05-ce6357ad4e4b
12/05/2018
AuthzInstallSecurityEventSource, AuthzInstallSecurityEventSource function [Security], authz/AuthzInstallSecurityEventSource, security.authzinstallsecurityeventsource
authz.h
Windows
None supported
Windows Server 2003 [desktop apps only]
Authz.lib
Authz.dll
Windows
Windows Server 2003 Administration Tools Pack on Windows XP
19H1
AuthzInstallSecurityEventSource
authz/AuthzInstallSecurityEventSource
c++
APIRef
kbSyntax
DllExport
Authz.dll
AuthzInstallSecurityEventSource

AuthzInstallSecurityEventSource function

-description

The AuthzInstallSecurityEventSource function installs the specified source as a security event source.

-parameters

-param dwFlags [in]

This parameter is reserved for future use and must be set to zero.

-param pRegistration [in]

A pointer to an AUTHZ_SOURCE_SCHEMA_REGISTRATION structure that contains information about the security event source to be added.

The members of the AUTHZ_SOURCE_SCHEMA_REGISTRATION structure are used as follows to install the security event source in the security log key:

  • The szEventSourceName member is added as a registry key under
    HKEY_LOCAL_MACHINE
       SYSTEM
          CurrentControlSet
             Services
                EventLog
                   Security
  • The szEventMessageFile member is added as the data in a REG_SZ value named EventMessageFile under the event source key.
  • The szEventAccessStringsFile member is added as the data in a REG_SZ value named ParameterMessageFile under the event source key.
  • If the registry path does not exist, it is created.
  • If the szEventSourceXmlSchemaFile member is not NULL, it is added as the data in a REG_SZ value named XmlSchemaFile under the event source key. This value is not used.
  • The szExecutableImagePath member may be set to NULL.

-returns

If the function succeeds, the function returns TRUE.

If the function fails, it returns FALSE. For extended error information, call GetLastError.

-see-also

AUTHZ_SOURCE_SCHEMA_REGISTRATION

AuthzUninstallSecurityEventSource