Ejemplo n.º 1
0
        protected string GetClassName()
        {
            var autoWindowText = new AutoCharPtr(255);

            NativeMethods.GetClassNameW(Handle, autoWindowText, autoWindowText.Length);
            return(autoWindowText.Value);
        }
Ejemplo n.º 2
0
 public void TestMethod1()
 {
     using var pstr = new AutoCharPtr(10);
     WriteString(pstr);
     Assert.Equal("string...", pstr.Value);
 }