Terenz Posted March 24, 2014 Posted March 24, 2014 (edited) Hello guys, Is possible to have this function in autoit? http://msdn.microsoft.com/en-us/library/windows/desktop/ms683917(v=vs.85).aspx StringFromCLSID ( related to StringFromGUID2 and CoTaskMemFree ) and CLSIDFromString The only thing i know is to use DllCall with Ole32.dll 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 EndFunc Edited March 24, 2014 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength
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