Hi. How do I specify wich folder to start browsing from, when using BrowseForFolder in MASM32 library?
Posted on 2001-04-05 10:39:00 by NSR
well there is some constants you can use for the last parameter of the BrowseForFolder function. ok the browse folder api function looks like this. BrowseForFolder Hwnd, Title, Options, so your final function should look similar to: BrowseForFolder,hwnd,ADDR YourTitle,0,ssfPROGRAMS now the last parameter is where you specify the starting folder that you want to browse. now here are some constants you can use for that parameter. ssfDESKTOP = 0, ssfPROGRAMS = 0x2, ssfCONTROLS = 0x3, ssfPRINTERS = 0x4, ssfPERSONAL = 0x5, ssfFAVORITES = 0x6, ssfSTARTUP = 0x7, ssfRECENT = 0x8, ssfSENDTO = 0x9, ssfBITBUCKET = 0xa, ssfSTARTMENU = 0xb, ssfDESKTOPDIRECTORY = 0x10, ssfDRIVES = 0x11, ssfNETWORK = 0x12, ssfNETHOOD = 0x13, ssfFONTS = 0x14, ssfTEMPLATES = 0x15, ssfCOMMONSTARTMENU = 0x16, ssfCOMMONPROGRAMS = 0x17, ssfCOMMONSTARTUP = 0x18, ssfCOMMONDESKTOPDIR = 0x19, ssfAPPDATA = 0x1a, ssfPRINTHOOD = 0x1b, ssfLOCALAPPDATA = 0x1c, ssfALTSTARTUP = 0x1d, ssfCOMMONALTSTARTUP = 0x1e, ssfCOMMONFAVORITES = 0x1f, ssfINTERNETCACHE = 0x20, ssfCOOKIES = 0x21, ssfHISTORY = 0x22, ssfCOMMONAPPDATA = 0x23, ssfWINDOWS = 0x24, ssfSYSTEM = 0x25, ssfPROGRAMFILES = 0x26, ssfMYPICTURES = 0x27, ssfPROFILE = 0x28, HERE'S WHAT THEY MEAN Members ssfALTSTARTUP File system directory that corresponds to the user's nonlocalized Startup program group. (value = 29) ssfAPPDATA Version 4.71. File system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data. (value = 26) ssfBITBUCKET Virtual folder containing the objects in the user's Recycle Bin. (value = 15) ssfCOMMONALTSTARTUP File system directory that corresponds to the nonlocalized Startup program group for all users. Valid only for Windows NT® systems. (value = 30) ssfCOMMONAPPDATA Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data. (value = 35) ssfCOMMONDESKTOPDIR File system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT® systems. (value = 25) ssfCOMMONFAVORITES File system directory that serves as a common repository for all users' favorite items. Valid only for Windows NT® systems.(value = 31) ssfCOMMONPROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT® systems. (value = 23) ssfCOMMONSTARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT® systems. (value = 22) ssfCOMMONSTARTUP File system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Valid only for Windows NT® systems. (value = 24) ssfCONTROLS Virtual folder containing icons for the Control Panel applications. (value = 3) ssfCOOKIES File system directory that serves as a common repository for Internet cookies. A typical path is C:\Documents and Settings\username\Cookies. (value = 33) ssfDESKTOP Windows Desktop—virtual folder that is the root of the namespace. (value = 0) ssfDESKTOPDIRECTORY File system directory used to physically store the file objects that are displayed on the desktop. It is not to be confused with the desktop folder itself, which is a virtual folder. A typical path is C:\Documents and Settings\username\Desktop (value = 16) ssfDRIVES My Computer—virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. This folder may also contain mapped network drives. (value = 17) ss
Posted on 2001-04-05 21:12:00 by smurf
Thank you smurf! I have to try this right now!
Posted on 2001-04-08 16:17:00 by NSR