oobz Posted August 22, 2020 Posted August 22, 2020 I have following Powershell. I'm trying to convert it to AutoIt code but not familiar with AutoIt and DLL. How can I create a RdcMan.EncryptionSettings object? And is the DLLCall correct? Powershell: # RDCMan.dll renamed from C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe Import-Module ".\RDCMan.dll" [RdcMan.Encryption]::EncryptString($args[0], (New-Object -TypeName RdcMan.EncryptionSettings)) AutoIt: Local $RDCManDLLFile = @ScriptDir & "\RDCMan.dll" Local $RDCManDLL = DllOpen($RDCManDLLFile) ; Create a RdcMan.EncryptionSettings here: Local $EncryptionSettings = something Local $EncryptedTargetPassword = DllCall($RDCManDLL, "str", "EncryptString", "str", $TargetPassword, "ptr", DllStructGetPtr($EncryptionSettings)) Thx
faustf Posted August 27, 2020 Posted August 27, 2020 the dll you can call with dllcall command look in help or https://www.autoitscript.com/autoit3/docs/functions/DllCall.htm
Danyfirex Posted August 28, 2020 Posted August 28, 2020 Hello, RDCMan.dll is a net library so You can't use it with dllcall. You could probably use it with AutoIt CLR UDF. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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