Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing API definition?

Status
Not open for further replies.

Wereotter

Programmer
Aug 30, 2004
17
US
I am using Visual C++ 6.0.
I would like to use this function: SHGetViewStatePropertyBag
Unfortunately, my header files do not define this function. Does anyone know where I can find the constants for the dwFlags parameter?
 
That does not tell me the numeric value of, for example, SHGVSPB_PERUSER, which I need in order to make use of the function. Or were you just reposting the link to the framed version instead?
 
Code:
#define SHGVSPB_PERUSER    0x00000001 // must have one of PERUSER or ALLUSERS
#define SHGVSPB_ALLUSERS   0x00000002
#define SHGVSPB_PERFOLDER  0x00000004 // must have one of PERFOLDER ALLFOLDERS or INHERIT
#define SHGVSPB_ALLFOLDERS 0x00000008
#define SHGVSPB_INHERIT    0x00000010
#define SHGVSPB_ROAM       0x00000020 // modifies the above
#define SHGVSPB_NOAUTODEFAULTS  0x80000000 // turns off read delegation to more general property bags

#define SHGVSPB_FOLDER     (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)
#define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)
#define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)
#define SHGVSPB_GLOBALDEAFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)

LWSTDAPI SHGetViewStatePropertyBag(LPCITEMIDLIST pidl, LPCWSTR pszBagName, DWORD dwFlags, REFIID riid, void** ppv);
Found it in the DDK, in shlwapi.h, after a lengthy full-text search.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top