Previous in Contents Next in Contents

ICreditCardOtherCard::IsValid

Syntax

HRESULT IsValid(
BSTR
bstrType// in
BSTRbstrNumber// in
long *fValid// out
);

Description

The IsValid function determines whether the instance is valid based on the credit-card number entered by the consumer for the mask. You can include your own validation algorithm to perform further validation on the credit-card number.

Parameters

bstrType
String identifying the payment type.
bstrNumber
String identifying the credit-card number entered.
fValid
Pointer to a value of type long where this function returns a Boolean value.

Return Value

This function returns one of the following values.

Value Meaning
E_FAIL Failure
E_OUTOFMEMORY Insufficient memory
S_OK Success


© 1997-2000 Microsoft Corporation. All rights reserved.