Paradox Community

Items in pnews.paradox-development

Subject:Re: rfid in shell32 How to?
Date:30 May 2023 10:07:19 -0400
From:"Thies Grimm" <thies.grimm@t-online.de>
Newsgroups:pnews.paradox-development

Hi Günter,
the rfid is a GUID-Type. ... 

much easier is the powershell:
[environment]::getfolderpath("mydocuments")

or all specialFolder: 
[enum]::GetNames([System.Environment+SpecialFolder])

Downloads is not special folder

see my libshell.lsl at https://it-grimm.com/downloads/

Thies



=?UTF-8?Q?G=c3=bcnter?= <info@NoSpam-mk-news.com> wrote:
>Uses "shell32.dll"
>;https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
>;{374DE290-123F-4565-9164-39C4925E467B} Downloads
>; default: %USERPROFILE%\Downloads
>SHGetKnownFolderPath(
>       rfid Cptr,
>       dwFlags clong,
>       hToken clong,
>       ppszPath cptr)
>       clong
>enduses
>
>method VirtuellesKnownDir(rfisds string)string
>var
>    ali longint
>    Returns string
>    s string
>endvar
>    s=fill(" ",255)
>    ali=SHGetKnownFolderPath(rfisds,0,0,s) ;s.view(rfisds+" win.virtu..")
>    Returns=s.rTrim()
>    return(Returns)
>endMethod
>
>s=VirtuellesKnownDir("{374DE290-123F-4565-9164-39C4925E467B}")
>s.view()
>  do not function,
>what make it wrong?
>
>Günter


Copyright © 2004 thedbcommunity.com