S
Scott Manson
StringBuilder bldr=new StringBuilder();
int res=GetClassName(0x00240110,bldr,255);
Debug.WriteLine(bldr.ToString());
if(bldr.ToString()=="AfxFrameOrView42s")
Debug.Write("Things SHOULD work");
hWnd=FindWindow(bldr.ToString(),"");
if(hWnd==(IntPtr) 0)
{
Debug.WriteLine(" but they obviously dont!");
}
// The following is just in case I fscked a parameter
hWnd=FindWindow(bldr.ToString(),null);
if(hWnd==(IntPtr) 0)
{
Debug.WriteLine("Things SHOULD WORK but they obviously dont!");
}
int res=GetClassName(0x00240110,bldr,255);
Debug.WriteLine(bldr.ToString());
if(bldr.ToString()=="AfxFrameOrView42s")
Debug.Write("Things SHOULD work");
hWnd=FindWindow(bldr.ToString(),"");
if(hWnd==(IntPtr) 0)
{
Debug.WriteLine(" but they obviously dont!");
}
// The following is just in case I fscked a parameter
hWnd=FindWindow(bldr.ToString(),null);
if(hWnd==(IntPtr) 0)
{
Debug.WriteLine("Things SHOULD WORK but they obviously dont!");
}