Deye Posted October 19, 2018 Posted October 19, 2018 (edited) Hi there! Just for the library folders, after read from the registry , I guess I can acquire by GUiD's the names for the LocalizedName's and compare when needed, but: for 1, Considering I have the path, True path for a library folder when using the example below How will I get the GUiD name from the ID Still, The preferable outcome of what I need is only to feed a name like: "SomeOne's PC Folder" that will pull {20D04FE0-3AEA-1069-A2D8-08002B30309D} Thanks Deye #include <MsgBoxConstants.au3> #include <WinAPIRes.au3> #include <WinAPIShellEx.au3> #include <WinAPISys.au3> If Number(_WinAPI_GetVersion()) < 6.0 Then MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), 'Error', 'Require Windows Vista or later.') Exit EndIf Local $aData = _WinAPI_ShellGetLocalizedName(@MyDocumentsDir) If Not IsArray($aData) Then Exit EndIf Local $hModule = _WinAPI_LoadLibraryEx($aData[0], $LOAD_LIBRARY_AS_DATAFILE) ConsoleWrite('Path: ' & $aData[0] & @CRLF) ConsoleWrite('ID: ' & $aData[1] & @CRLF) ConsoleWrite('Name: ' & _WinAPI_LoadString($hModule, $aData[1]) & @CRLF) _WinAPI_FreeLibrary($hModule) Edit: The GUiD's can be found as values of $FOLDERID_..'s useless to how i thought i was going to use them, so I'm letting this go for now .. Edited October 20, 2018 by Deye
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now