how do i extract the user:pass response from the ResponseBlob in IWMSAuthenticationContext::Authenticate()?

how do i extract the user:pass response from the ResponseBlob in IWMSAuthenticationContext::Authenticate()?

Post by Kim,SungHy » Wed, 10 Nov 2004 16:02:54



and
bytes. Once you get



According to Chanrles Huang[MS]
I implement Authenticate() like this:

STDMETHODIMP CAuthenticateContext::Authenticate
(
VARIANT ResponseBlob,
IWMSContext *pUserCtx,
IWMSContext *pPresentationCtx,
IWMSCommandContext *pCommandContext,
IWMSAuthenticationCallback *pCallback,
VARIANT Context
)
{
LPWSTR STRVAR = NULL;

if(ResponseBlob.vt == (VT_ARRAY | VT_UI1))
{
SAFEARRAY *pArray = ResponseBlob.parray;

WCHAR* pStrData;

HRESULT hr = SafeArrayAccessData(pArray,(void HUGEP**)&pStrData);


BYTE strResult[1024]={0,};

int destlen=1024;
Base64Decode((LPCSTR)pStrData,pArray->fFeatures,stringa,&destlen);

unsigned long arraySize = pArray->rgsabound[0].cElements;
SafeArrayUnaccessData(pArray);
}

But, I can't get strResult.
Am I missing anything here?
Please, let me know what I wrong.

Thanks in advance
Kim.