Dear all,
I was not able to find these two functions in AfxSid.inc
Any idea how to use them with PB.
Thanks.
Jean-Pierre
DIM bRes AS LONG, pSid AS SID PTR
bRes = ConvertStringSidToSid("<Sid string>", pSid)
...
Later release it with LocalFree(pSid)
DIM pStrSid AS ASCIIZ PTR ' or WSTRINGZ if using unicode
bRes = ConvertSidToStringSid(pSid, pStrSid)
IF bRes THEN ? @pStrSid
...
Later release it with LocalFree(pStrSid)
Hi Jose,
Thanks for the code; Jean-Pierre
Hi Jose,
Sorry for all my questions; it was my fault, I just forgot to include "Sddl.inc" in my source code !
Now with the
#Include "Sddl.inc"
It works perfectly.
Thank for your support.
Jean-Pierre