- folder property page - prevent renaming the folder/file name
- Posted by rajeshb on July 14th, 2003
I have a folder view as in Windows Explorer.
When the user rightclicks the folder view I invoke the folder property
page using ShellExecuteEx.
Here is the code...
//-=-=-= code starts here
LPITEMIDLIST pidl = (LPITEMIDLIST)rtvItems.GetItemData( hItem );
SHELLEXECUTEINFO sei;
ZeroMemory( &sei , sizeof( sei ) );
sei.cbSize = sizeof( sei );
sei.lpIDList = pidl;
sei.lpVerb = TEXT( "properties" );
sei.fMask = SEE_MASK_INVOKEIDLIST;
if ( !ShellExecuteEx( &sei ) )
{
return FALSE;
}
//-=-=-= code starts here
I need to prevent the user from renaming the folder/file name.
Can anyone help me out in finding a solution or workaround for this
problem.
Thanks,
- rajesh b
SSDI
Similar Posts
- Reset 'File Folder' settings in 'File Types' of 'Folder Options' (Customizing) by Sivanesh
- Re:Renaming user's folder at Document&Setting folder (Setup & Deployment) by mama kala
- File problems after moving folder from desktop to folder inside the C drive (Microsoft Windows) by Mark
- Error Renaming File/Folder (Help and Support) by Edw. Peach
- oscar's file renamer - folder renaming (Software & Applications) by Spacey Spade

