mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
20 lines
640 B
C#
20 lines
640 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.Program.Programs
|
|
{
|
|
[Serializable]
|
|
class StartMenu : Win32
|
|
{
|
|
public static IEnumerable<Win32> All(string[] suffixes)
|
|
{
|
|
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Programs);
|
|
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms);
|
|
var programs = new List<Win32>();
|
|
GetAppFromDirectory(programs, directory1, -1, suffixes);
|
|
GetAppFromDirectory(programs, directory2, -1, suffixes);
|
|
return programs;
|
|
}
|
|
}
|
|
}
|