Windows2003-3790/inetcore/wininet/auth/winctxt.h
2020-09-30 16:53:55 +02:00

42 lines
1.1 KiB
C

#ifndef _WIN_SIC_CTXT_H_
#define _WIN_SIC_CTXT_H_
#define DEFAULT_SERVER_NAME_LEN 128
typedef struct _WINCONTEXT {
//
// Buffer for storing exchange blob returned by SSPI before
// PreAuthenticateUser is called
//
char *szOutBuffer;
DWORD cbOutBuffer; // bytes associated with allocated szOutBuffer
DWORD dwOutBufferLength;
char *szInBuffer;
DWORD cbInBuffer; // bytes associated with allocated szInBuffer
PCHAR pInBuffer;
DWORD dwInBufferLength;
DWORD dwCallId;
DWORD pkgId;
CredHandle Credential; // SSPI credential handle for this connection
PCredHandle pCredential;
//
// The SSPI Context Handle is stored here
//
CtxtHandle SspContextHandle;
PCtxtHandle pSspContextHandle; // before any ctxt is created, this is NULL
LPSTR lpszServerName;
char szServerName[DEFAULT_SERVER_NAME_LEN];
} WINCONTEXT, *PWINCONTEXT;
#endif // _WIN_SIC_CTXT_H_