IMSCSStandardSManager_3_0::GetShopperID

The GetShopperID method retrieves the current shopper’s shopper ID from a cookie or URL and returns it in a BSTR VARIANT.

Whether GetShopperID locates the shopper ID in a cookie or a URL depends upon the options that you specified in a previous call to IMSCSStandardSManager_3_0::InitManager.

Syntax

HRESULT GetShopperID(
IDispatch *pdispContext,// in
VARIANT *pvtReturn// out, retval
);

Parameters

pdispContext
An IDispatch interface on the pipe context Dictionary. GetShopperID uses this interface pointer to get the IIS Scripting Context.
pvtReturn
If the method is successful, pvtReturn references a BSTR VARIANT that contains the current shopper’s shopper ID. Otherwise, this pointer is NULL.

Include

<commerce.h>

Return Value

If successful, GetShopperID returns S_OK; otherwise, it returns an HRESULT that indicates failure, and sets pvtReturn to NULL.

Related Topic

IMSCSStandardSManager_3_0::CreateShopperID, IMSCSStandardSManager_3_0::PutShopperID


© 1997-1998 Microsoft Corporation. All rights reserved.