Jump to content
Sign in to follow this  

StringFromCLSID to autoit

Recommended Posts

Hello guys,

Is possible to have this function in autoit?


StringFromCLSID ( related to StringFromGUID2 and CoTaskMemFree )



The only thing i know is to use DllCall with Ole32.dll :D

It sound like a "do everything for me, i'm sit down and wait" but on the forum there is only one subject with StringFromCLSID and is unrelated to the function

Thanks for any help

EDIT: Two function already exist in WinAPI:

Func _WinAPI_StringFromGUID($pGUID)
    Local $aResult = DllCall("ole32.dll", "int", "StringFromGUID2", "struct*", $pGUID, "wstr", "", "int", 40)
    If @error Then Return SetError(@error, @extended, "")
    Return SetExtended($aResult[0], $aResult[2])
EndFunc   ;==>_WinAPI_StringFromGUID

Func _WinAPI_CoTaskMemFree($pMemory)
    DllCall("ole32.dll", "none", "CoTaskMemFree", "ptr", $pMemory)
    If @error Then Return SetError(1, 0, 0)
    Return 1
Edited by Terenz

Nothing is so strong as gentleness. Nothing is so gentle as real strength


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...