mirror of
				https://github.com/snltty/linker.git
				synced 2025-10-31 12:36:48 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			556 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			556 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace cmonitor.client.reports.active
 | |
| {
 | |
|     public interface IActiveWindow
 | |
|     {
 | |
|         public void DisallowRun(string[] names);
 | |
| 
 | |
|         public ActiveWindowInfo GetActiveWindow();
 | |
| 
 | |
|         public int GetWindowCount();
 | |
|         public Dictionary<uint, string> GetWindows();
 | |
|     }
 | |
| 
 | |
|     public sealed class ActiveWindowInfo
 | |
|     {
 | |
|         public string Title { get; set; } = string.Empty;
 | |
|         public string FileName { get; set; } = string.Empty;
 | |
|         public string Desc { get; set; } = string.Empty;
 | |
|         public uint Pid { get; set; }
 | |
|     }
 | |
| }
 | 
