This content has been marked as final. Show 4 replies
I thought that the idea was that you couldn't interact with the system and the applications were safe and platform independent.
From the AIR Faq:
Will developers be able to extend Adobe AIR with native code?
No. This functionality will not be available in Adobe AIR 1.0.
But I suppose you could write a helper program/service in another language which sits listening on a specific port which then calls the native functions based on messages from Flex/AIR. Be careful not to basically open up a backdoor for anyone to remote control system though.
This is just a personal project that will never leave my own system. I know it is off topic for the forum but do you know where i could find windows API's for doing such things in other languages.
Well, the Windows Platform SDK certainly exposes just about everything you would ever want to do with Windows:
I think the ExitWindowsEx API is what you need for the specific functions you've mentioned. You could look at this example on the code project..
...to see how the APIs are used in a real program, and apparently this can be compiled with Dev-C++ which is a free development tool, as Visual C++ Express is deliberately quite tricky for writing Platform SDK programs.
You could call the functions from other languages like .NET, Perl, Java, etc. if C++ is too daunting. It really depends on what you are most comfortable using, but like you say it's not really in the scope of these forums so you will probably get more help if you ask on a forum for one of those languages.
Thats great thanks. Ive done a little Java before so i think thats the way il go with it. Thanks for the links il take a look.