A Journey 2 Eternity

Is a given file shortcut to some other file?

Posted on: April 15, 2009

BOOL IsShortcut( LPCTSTR lpctszPath_i )
{
	SHFILEINFO shFileInfo = { 0 };
	return (( SHGetFileInfo( lpctszPath_i, 0, &shFileInfo, sizeof( shFileInfo ), SHGFI_ATTRIBUTES )) && 
				( shFileInfo.dwAttributes & SFGAO_LINK ) == SFGAO_LINK );
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

April 2009
M T W T F S S
« Dec   May »
 12345
6789101112
13141516171819
20212223242526
27282930  

Blog Stats

  • 27,176 hits
%d bloggers like this: