示例#1
0
 ///
 public void Dispose()
 {
     if (_pm != null)
     {
         _pm.Dispose(); _pm = null;
     }
     GC.SuppressFinalize(this);
 }
示例#2
0
 /// <summary>
 /// Prepares to get control names.
 /// </summary>
 /// <param name="w">Any top-level or child window of that process.</param>
 /// <exception cref="AuWndException">w invalid.</exception>
 /// <exception cref="AuException">Failed to allocate process memory (see <see cref="AProcessMemory"/>) needed to get control names, usually because of [](xref:uac).</exception>
 public AWinFormsControlNames(AWnd w)
 {
     _pm = new AProcessMemory(w, 4096);             //throws
     _w  = w;
 }