G
Guest
Hello,
I develop for SmartDevice using VS2005
I my application to be able to load multiple times.
In VS2003 I used FindWindow with class name : "#NETCF_AGL_PARK_"
But with VS2005 the FinsWindow cannot find the window.
If I check with RemoteSpy And I see the class name is the same as I search.
This is the code i use :
[DllImport("coredll.dll", EntryPoint = "FindWindowW", SetLastError = true)]
private static extern IntPtr FindWindowCE(string lpClassName, string
pWindowName);
string sName =
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
string sClass = "#NETCF_AGL_PARK_";
IntPtr i1 = FindWindowCE(sClass, sName);
How can I get the application window ?
Thanks,
Sharon
I develop for SmartDevice using VS2005
I my application to be able to load multiple times.
In VS2003 I used FindWindow with class name : "#NETCF_AGL_PARK_"
But with VS2005 the FinsWindow cannot find the window.
If I check with RemoteSpy And I see the class name is the same as I search.
This is the code i use :
[DllImport("coredll.dll", EntryPoint = "FindWindowW", SetLastError = true)]
private static extern IntPtr FindWindowCE(string lpClassName, string
pWindowName);
string sName =
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
string sClass = "#NETCF_AGL_PARK_";
IntPtr i1 = FindWindowCE(sClass, sName);
How can I get the application window ?
Thanks,
Sharon