Jump to content
Sign in to follow this  
Skitty

Data structures / pointers

Recommended Posts

Skitty

I'm trying to retrieve the description of a previously crypted string from cryptprotectdata but I don't know what I'm doing wrong.

Can anyone help?

Local $Hash = "[String previously encrypted by cryptprotectdata API]"
Local $Description = DllStructCreate("wstr");wrong structure type?

Local $aReturn = DllCall _
( _
    "CRYPT32.dll", "int", "CryptUnprotectData", _
        "ptr", DllStructGetPtr($BLOBIN), _
        "ptr", DllStructGetPtr($Description), _; this is where something must be going wrong
        "ptr", 0, _
        "ptr", 0, _
        "ptr", 0, _
        "dword", 0, _
        "ptr", DllStructGetPtr($BLOBOUT) _
)
ConsoleWrite(DllStructGetData($Description, 1) & @CR)
Edited by THAT1ANONYMOUSEDUDE

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites
jaberwacky

I think you'd use an array instead of a wstr.

So I guess something along these lines:

Local $Description = DllStructCreate("byte[512]") but that may not be perfect syntax.

Share this post


Link to post
Share on other sites
Skitty

Wait, didn't I reply to you?

I think you'd use an array instead of a wstr.

So I guess something along these lines:

Local $Description = DllStructCreate("byte[512]") but that may not be perfect syntax.

I'm pretty sure I had replied to your post saying that I've tried that and was unsuccessful, I wonder what happened to it...

But anyway, I'm still trying to figure this out, whenever I crypt a string and add a description to it, I just cant find out how to get it back, this is a real bummer..

Edited by THAT1ANONYMOUSEDUDE

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×