Hi Charles, It seems it's impossible to do what you are trying to without reverting to p/invoke calls. Also the compatibility between different operating system versions depends on the functions you are calling; user32, by the way, is one of the Windows core library that more than others should maintain retro-compatibility. So no, there should be no problem in using these functions but, to be sure, please see MSDN for every function you are trying to use. Btw very simple functions like FindWindow, EnumWindows and ShowWindow will certainly have no issues. Keep in mind, however, that this code will of course not be (completely) portable across different .NET platforms (Mono, for example).
Hope this helps. -- Efran Cobisi http://www.cobisi.com Charles Gamble wrote:
Hi, For our .NET C# application we need to maximize the window of another running application, the only way we found to do this was to DLLImport user32.dll and call some methods on it. Is this ok to do this? Will this be supported in all OS's (XP, 2000, Vista, 2003, etc.) Thanks, Charles. ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. Singularity operates globally through its offices in New York, London, Singapore, Ireland and India. Singularity Limited is incorporated in the United Kingdom with Registration Number NI 31519 and its Registered Office at 100 Patrick Street, Derry, BT48 7EL, United Kingdom. ________________________________________________________________________ =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com