IRdcLibrary::CreateComparator method (msrdc.h)

The CreateComparator method creates a signature comparator.

Syntax

HRESULT CreateComparator(
  [in]  IRdcFileReader *iSeedSignaturesFile,
  [in]  ULONG          comparatorBufferSize,
  [out] IRdcComparator **iComparator
);

Parameters

[in] iSeedSignaturesFile

An IRdcFileReader interface pointer initialized to read the seed signatures.

[in] comparatorBufferSize

Specifies the size of the comparator buffer. The range is from MSRDC_MINIMUM_COMPAREBUFFER to MSRDC_MAXIMUM_COMPAREBUFFER.

MSRDC_MINIMUM_COMPAREBUFFER (100000)

Minimum size of a comparator buffer.

MSRDC_DEFAULT_COMPAREBUFFER (3200000)

Default size of a comparator buffer. Used if zero (0) is passed for comparatorBufferSize.

MSRDC_MAXIMUM_COMPAREBUFFER (1073741824)

Maximum size of a comparator buffer. (1<<30)

[out] iComparator

Pointer to a location that will receive an IRdcComparator interface pointer. On a successful return the interface will be initialized on return. Callers must release the interface.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The caller must create a separate signature comparator for each level of recursion.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header msrdc.h
DLL MsRdc.dll

See also

IRdcComparator

IRdcFileReader

IRdcLibrary