Thread View: cis.winnt.admin-security
1 messages
1 total messages
Started by Alexander Cheng
Mon, 21 Jun 1999 00:00
CoInitializeSecurity call is not working
Author: Alexander Cheng
Date: Mon, 21 Jun 1999 00:00
Date: Mon, 21 Jun 1999 00:00
29 lines
1752 bytes
1752 bytes
I tried to get client's name by using CoInitializeSecurity() and
CoQueryClientBlanket() functions. But CoInitializeSecurity() function I
implemented as followed always return the result = -2147221008 switch to
default. Can anyone tell me what wrong in my parameters? Thanks.
SOLE_AUTHENTICATION_SERVICE serv;
serv.pPrincipalName = NULL;
serv.dwAuthnSvc = RPC_C_AUTHN_NONE;
serv.dwAuthzSvc = RPC_C_AUTHZ_DCE;
HRESULT retCode = CoInitializeSecurity(NULL, -1, &serv, NULL,\
RPC_C_AUTHN_LEVEL_NONE, NULL, NULL,\
EOAC_NONE, NULL);
switch(retCode)
{
case S_OK:
TRACE0("CoInitializeSecurity Success.\n");
break;
case RPC_E_TOO_LATE:
TRACE0("CoInitializeSecurity has already been called.\n");
break;
case RPC_E_NO_GOOD_SECURITY_PACKAGES:
TRACE0("asAuthSvc was not NULL and none of the authentication
services in the list could be registered.\n");
break;
default:
TRACE0("Fail call CoInitializeSecurity.\n");
break;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads