Page 1 of 1

IKnownFolder interface

Posted: Wed Jan 23, 2013 11:03 pm
by IdeasVacuum
Has anybody written a Procedure that uses the IKnownFolder interface? I'm finding it exstremely confusing:
http://msdn.microsoft.com/en-gb/library ... 85%29.aspx

I think it's going to work something like this:

Code: Select all

FOLDERID_ProgramFilesX86 = "7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E"

Procedure.s GetKnownFolderPath(sFolderID.s)
;-----------------------------------------
Protected *sPath

                 SHGetKnownFolderPath_(sFolderID,#KF_FLAG_NO_ALIAS,#Null,*sPath)

                  ProcedureReturn (sPath)

EndProcedure

GetKnownFolderPath(#FOLDERID_ProgramFilesX86)
...... but PB doesn't recognize SHGetKnownFolderPath ( :shock: )

Ah, Rescator has it in Tips N Tricks: http://www.purebasic.fr/english/viewtop ... 12&t=40492