Using Windows API in QM is convenient. I would like to convert the following AutoHotKey (AHK) code into QM code.
However, the function names include a path(crypt32\CryptStringToBinaryW), and I am unsure how to handle it.
Additionally, Is there simpler QM built-in function that can achieve the same functionality as the AHK code?
Thanks any suggestions and help in advance.
David
However, the function names include a path(crypt32\CryptStringToBinaryW), and I am unsure how to handle it.
Additionally, Is there simpler QM built-in function that can achieve the same functionality as the AHK code?
Thanks any suggestions and help in advance.
David
CryptHexStringToBinary(hexString, &binary){
DllCall("crypt32\CryptStringToBinaryW", "str", hexString, "uint", len := StrLen(hexString), "uint", 4, "ptr", 0, "uint*", &bytes := 0, "ptr", 0, "ptr", 0)
return DllCall("crypt32\CryptStringToBinaryW", "str", hexString, "uint", len, "uint", 4, "ptr", binary := binary ?? Buffer(bytes), "uint*", bytes, "ptr", 0, "ptr", 0)
}
CryptHexStringToBinary("48B80000000000000000FFD0C3", &resBinary)