In effetti le shell lightweight functions sono davvero comode... non che siano nulla di trascendentale, PathFindFileName si potrebbe implementare tre righe:
codice:
LPTSTR PathFindFileName(LPCTSTR pPath)
{
    TCHAR * readPtr;
    for(readPtr=pPath+tcslen(pPath)-1; readPtr>pPath && *readPtr!='\\' && *readPtr!='/';readPtr--);
    return readPtr;
}
ma spesso non si ha voglia di scrivere le tre righe in questione.