SECPKG_PARAMETERS structure (ntsecpkg.h)

The SECPKG_PARAMETERS structure contains information about the computer system. This structure is used by the SpInitialize function.

Syntax

typedef struct _SECPKG_PARAMETERS {
  ULONG          Version;
  ULONG          MachineState;
  ULONG          SetupMode;
  PSID           DomainSid;
  UNICODE_STRING DomainName;
  UNICODE_STRING DnsDomainName;
  GUID           DomainGuid;
} SECPKG_PARAMETERS, *PSECPKG_PARAMETERS, SECPKG_EVENT_DOMAIN_CHANGE, *PSECPKG_EVENT_DOMAIN_CHANGE;

Members

Version

The version of the Security Support Provider Interface in use.

MachineState

The state of the machine. The following table lists the valid values.

Value Meaning
SECPKG_STATE_ENCRYPTION_PERMITTED
The security package may use encryption.
SECPKG_STATE_STRONG_ENCRYPTION_PERMITTED
The security package may use strong encryption.
SECPKG_STATE_DOMAIN_CONTROLLER
The machine is a domain controller.
SECPKG_STATE_WORKSTATION
The machine is a workstation with access to a network.
SECPKG_STATE_STANDALONE
The machine is a stand-alone system.

SetupMode

Contains a nonzero value if setup is running.

DomainSid

The security identifier of the primary domain.

DomainName

The name of the primary domain.

DnsDomainName

The Domain Name System (DNS) name of the primary domain.

DomainGuid

The GUID of the primary domain.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ntsecpkg.h