Is a path shared?

ShGetFileInfo helps us in finding out whether a given path is shared or not. A wrapper function is given below… [sourcecode language=’cpp’]bool IsPathShared( LPCTSTR lpctszPath_i ) {    SHFILEINFO shFileInfo = { 0 };    return ( SHGetFileInfo( lpctszPath_i, 0, &shFileInfo, sizeof( shFileInfo ), SHGFI_ATTRIBUTES ) && ( shFileInfo.dwAttributes & SFGAO_SHARE ) == SFGAO_SHARE ); […]
Continue reading…