如题,普通的windows application程序中,可以添加这两句话来提高程序的优先级:
C# code
System.Diagnostics.Process thisProc = System.Diagnostics.Process.GetCurrentProcess();
thisProc.PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime;
有没有类似的语句,可以在在smart device程序中提高程序的优先级呢?
还有,同样是在.NET CF 3.5下创建的windows application和smart device程序,怎么有些函数的参数不一样呢?例如
windows application下:C# codeclient_socket.Connect(ip, 1000);
smart device下:C# codeSystem.Net.IPAddress ipAdd = System.Net.IPAddress.Parse(ip);
                    System.Net.IPEndPoint IP = new IPEndPoint(ipAdd, 1000);
                    client_socket.Connect(IP);

解决方案 »

  1.   

    还有,同样是在.NET CF 3.5下创建的windows application和smart device程序,怎么有些函数的参数不一样呢?例如
    windows application下:C# codeclient_socket.Connect(ip, 1000);
    smart device下:C# codeSystem.Net.IPAddress ipAdd = System.Net.IPAddress.Parse(ip);
      System.Net.IPEndPoint IP = new IPEndPoint(ipAdd, 1000);
      client_socket.Connect(IP);这个问题已经搞清楚了。如何提高进程的优先级?求高手帮忙!
      

  2.   

    WinCE不支持进程优先级...别想了...
      

  3.   

    可以通过 CeSetThreadPriority(IntPtr hThread, int nPriority) 来提高线程的优先级,但是第一个参数不知道怎么传,请高手们帮忙