Platform SDK: Logon Authentication

SecPkgContext_Names

The SecPkgContext_Names structure indicates the name of the user associated with a security context. The QueryContextAttributes function uses this structure.

typedef struct _SecPkgContext_Names {
      SEC_CHAR *  sUserName;
} SecPkgContext_Names, * pSecPkgContext_Names;

Members

sUserName
Pointer to a NULL-terminated string containing the name of the user represented by the context. If the security package has set the SECPKG_FLAG_ACCEPT_WIN32_NAME flag, this name can be used in other Microsoft® Win32® calls.

Requirements

  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Sspi.h; include Security.h.
  Unicode: Declared as Unicode and ANSI structures.

See Also

QueryContextAttributes