vista/win7 magnification API in .NET
问题 There is magnification.lib in the Win7/Vista SDK for using Magnification API for C++. How can I use this API in a .NET windows forms project? 回答1: You need to use P/Invoke for this task. Have a look at the below C# code snippet: [DllImport("Magnification.dll"] static extern bool MagInitialize(); ... [DllImport("Magnification.dll"] static extern bool MagUninitialize(); void Main() { if (MagInitialize()) { DoSomething(); } ... MagUnitialize(); } Here you declare all the methods you need to use