f15iaf
asked on
accessing folder
Where are some folders in windows like my documents,my pictures which have special icons and some plugin to view those files.
those folders contains hidden desktop.ini file.
My question is how to make my own program for specified folder.
those folders contains hidden desktop.ini file.
My question is how to make my own program for specified folder.
I dont know if this is what you want but its really usefull anyway
regards
Smurff
var
p : pitemidlist;
pc : pchar;
begin
SHGetSpecialFolderLocation (Form1.handle, CSIDL_PROGRAMS, p);
new (pc);
getmem (pc, 255);
SHGetPathFromIDList (p, pc);
// pc now contains path to C:\Program Files\
end;
Posssible arguments for SHGetSpecialFolderLocation are:
CSIDL_BITBUCKET Recycle bin - file system directory containing file objects in the user's recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it
CSIDL_CONTROLS Control Panel - virtual folder containing icons for the control panel applications.
CSIDL_DESKTOP Windows desktop - virtual folder at the root of the name space.
CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).
CSIDL_DRIVES My Computer - virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives.
CSIDL_FONTS Virtual folder containing fonts.
CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood.
CSIDL_NETWORK Network Neighborhood - virtual folder representing the top level of the network hierarchy.
CSIDL_PERSONAL File system directory that serves as a common respository for documents.
CSIDL_PRINTERS Printers folder - virtual folder containing installed printers.
CSIDL_PROGRAMS File system directory that contains the user's program groups (which are also file system directories).
CSIDL_RECENT File system directory that contains the user's most recently used documents.
CSIDL_SENDTO File system directory that contains Send To menu items.
CSIDL_STARTMENU File system directory containing Start menu items.
CSIDL_STARTUP File system directory that corresponds to the user's Startup program group.
CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
regards
Smurff
var
p : pitemidlist;
pc : pchar;
begin
SHGetSpecialFolderLocation
new (pc);
getmem (pc, 255);
SHGetPathFromIDList (p, pc);
// pc now contains path to C:\Program Files\
end;
Posssible arguments for SHGetSpecialFolderLocation
CSIDL_BITBUCKET Recycle bin - file system directory containing file objects in the user's recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it
CSIDL_CONTROLS Control Panel - virtual folder containing icons for the control panel applications.
CSIDL_DESKTOP Windows desktop - virtual folder at the root of the name space.
CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).
CSIDL_DRIVES My Computer - virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives.
CSIDL_FONTS Virtual folder containing fonts.
CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood.
CSIDL_NETWORK Network Neighborhood - virtual folder representing the top level of the network hierarchy.
CSIDL_PERSONAL File system directory that serves as a common respository for documents.
CSIDL_PRINTERS Printers folder - virtual folder containing installed printers.
CSIDL_PROGRAMS File system directory that contains the user's program groups (which are also file system directories).
CSIDL_RECENT File system directory that contains the user's most recently used documents.
CSIDL_SENDTO File system directory that contains Send To menu items.
CSIDL_STARTMENU File system directory containing Start menu items.
CSIDL_STARTUP File system directory that corresponds to the user's Startup program group.
CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
ASKER
No body answered the answer i wanted the problem is still not solved thus i'm deleting this question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this RegKey might slightly differ for Win9x and WinNT/Win2K
ziolko.