SSPI Handles

SSPI uses the following handle types and pointer to these handles:

  • SecHandle and PSecHandle
  • CredHandle and PCredHandle
  • CtxtHandle and PCtxtHandle

These handle types and pointers to these handle types are defined as follows.

typedef struct _SecHandle {
  ULONG_PTR       dwLower;
  ULONG_PTR       dwUpper;
} SecHandle, * PSecHandle;

typedef SecHandle    CredHandle;
typedef PSecHandle   PCredHandle;

typedef SecHandle    CtxtHandle;
typedef PSecHandle   PCtxtHandle;