Partager via


MRUCMPPROC callback function

Used to determine whether an item is present in a most recently used (MRU) list.

Syntax

int CALLBACK MRUCMPPROC(
   LPCTSTR pString1,
   LPCTSTR pString2
);

Parameters

  • pString1
    Type: LPCTSTR

    The first string.

  • pString2
    Type: LPCTSTR

    A second string to compare to the first.

Return value

Type: int

Returns 0 if the items are identical, a nonzero value otherwise.

Remarks

This function can be optionally specified for use in the MRUINFO structure passed to CreateMRUListW. This is useful when the MRU list was created with the MRU_BINARY flag. When this function is not specified, standard string comparison functions are used.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Unicode and ANSI names

MRUCMPPROCW (Unicode) and MRUCMPPROCA (ANSI)