IKnownFolder interface
Posted: Wed Jan 23, 2013 11:03 pm
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:
...... but PB doesn't recognize SHGetKnownFolderPath (
)
Ah, Rescator has it in Tips N Tricks: http://www.purebasic.fr/english/viewtop ... 12&t=40492
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)Ah, Rescator has it in Tips N Tricks: http://www.purebasic.fr/english/viewtop ... 12&t=40492