Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 28-05-2007, 04:32 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: May 2007
Posts: 12
Default Windows Property sheet


hi ALL,
1)can anyone plz tell me how to disable the "property sheet" of any file..
When we right click we will see a context menu with the last one as properties.. which will display a set of properties such as General, Security etc. i want to disable this sheet...
2) how to "grey" the read only property of a file ... .

I need the registry keys for the same...

help me plz...

Last edited by vivekphlp; 28-05-2007 at 05:14 PM.
vivekphlp is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-05-2007, 04:06 PM   #2 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Default Re: Windows Property sheet

Already ur question(created by u ) answered @ http://www.codeguru.com/forum/showth...91#post1580191

------------------------------------------------------------------------------
Remove the key HKEY_CLASSES_ROOT\FileClass\ShellEx\PropertySheetH andlers which contains CLSIDs of property sheet shell extensions as subkeys.

FileClass is a class of the file.
A file can have several classes!

All the regular files are of class *
All the regular files and directories are of class AllFilesystemObjects.
All the directories are of class Directory
All the directories and namespace extension folders (such as the control panel or the Printers folder), are of class Folder
Files of extension .XXX are of class whose the name is the default value of the key HKEY_CLASSES_ROOT\.XXX


Quote:
2) how to disable the read only property of a file ... .



Use GetFileAttributes(), then, remove the FILE_ATTRIBUTE_READONLY flag from the set of flags returned, and then, call SetFileAttributes().


Quote:
I need the registry keys for the same...



Read only file attributes are not stored in the registry base.
gopi_vbboy is offline  
Old 01-06-2007, 02:28 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: May 2007
Posts: 12
Default Re: Windows Property sheet

Quote:
Originally Posted by SuperKoko
Remove the key

Use GetFileAttributes(), then, remove the FILE_ATTRIBUTE_READONLY flag from the set of flags returned, and then, call SetFileAttributes().


Read only file attributes are not stored in the registry base.
Even though i set the property as READ ONLY the users can change that property by right clicking the file and taking the GENERAL PROPERTY of that file.
He wil uncheck the read only property and its done...
I dont want this to happen....
vivekphlp is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6:property moves along list when scrolled by mousewheel gopi_vbboy Software Q&A 3 03-03-2007 01:11 PM
Store 256GB on an A4 sheet ashisharya Technology News 1 22-12-2006 01:48 AM
help for editing XML property files from some java programs pawan Open Source 2 01-06-2006 04:39 PM

 
Latest Threads
- by chris
- by icebags
- by Tenida
- by Who

Advertisement




All times are GMT +5.5. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2