jbc1 Posted August 24, 2009 Share Posted August 24, 2009 Hi, I have a number of functions I need to call before I call AutoIT's Run() method. This is to ensure I am running in trusted mode against my application. But, my problem is these functions reside in a C++ .h file. Is it possible to call these functions from AutoITv3? I guess not, but I live in hope >_< Thanks. Link to comment Share on other sites More sharing options...
jvanegmond Posted August 24, 2009 Share Posted August 24, 2009 First, take a look in the help file at these: #RequireAdmin and IsAdmin(). Not sure if that can help you, but have a look yourself. Secondly, I am not sure what's inside your header file, but you can call methods inside dll files using the DllCall method. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jbc1 Posted August 24, 2009 Author Share Posted August 24, 2009 First, take a look in the help file at these: #RequireAdmin and IsAdmin(). Not sure if that can help you, but have a look yourself.Secondly, I am not sure what's inside your header file, but you can call methods inside dll files using the DllCall method.#RequireAdmin and IsAdmin() will not help, as the application I am working with has a custom security sub system, which prevents other applications from doing anything with it, unless it has first invoked it's 'trust' API.This can oly be achieved by calling certain functions from the .h file, unfortunetly, these are not in a DLL, so it looks like I'm screwed >_<Thanks for your respone. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 24, 2009 Share Posted August 24, 2009 Functions defined in a header file don't usually contain any code. They simply give you a name and parameter list for functions that reside somewhere else. In the case of a header provided with a program, you either have to call the functions on a dll or the executable itself. Link to comment Share on other sites More sharing options...
jbc1 Posted August 24, 2009 Author Share Posted August 24, 2009 Functions defined in a header file don't usually contain any code. They simply give you a name and parameter list for functions that reside somewhere else. In the case of a header provided with a program, you either have to call the functions on a dll or the executable itself.Granted - but this .h file contains code. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 25, 2009 Share Posted August 25, 2009 Then you'll have to translate the code to AutoIt. Link to comment Share on other sites More sharing options...
WolfWorld Posted August 25, 2009 Share Posted August 25, 2009 Then you'll have to translate the code to AutoIt.Or easier make it an DLL if you know what you are doing. Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
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