SHGetSpecialFolderPathA and CSIDL_FOLDER_MASK

Dmitry Timoshkov dmitry at
Thu Oct 11 07:48:38 CDT 2001

"Chris Green" <chris_e_green at> wrote:

> I've been looking at this function, and I am starting to suspect we have the 
> wrong definition of CSIDL_FOLDER_MASK (currently 0x00ff). What I've been 
> seeing (eg. installing MS Office 97) seems to imply that only the lower 6 
> bits, rather than 8, are related to the folder, and the others are something 
> else. Does anyone else think that the mask should be 0x003f?

Yes, 0x3f seems to be reasonable according to ShlObj.h from the Platform SDK.


More information about the wine-devel mailing list