Пример #1
0
 public List<RunningApp> GetRunningApps()
 {
     RUNNINGAPP_ENUM_CALLBACK Callback = new RUNNINGAPP_ENUM_CALLBACK(EnumRunningAppsCallback);
     List<RunningApp> list = new List<RunningApp>();
     Object data = list;
     Dbg("GetRunningApps");
     if ((APIRET)RunningAppEnumKeepAlive(ref Context, Callback, ref data) == APIRET.SUCCESS)
         return list;
     else
         return null;
 }
Пример #2
0
 public static List<RunningApp> GetRunningApps()
 {
     RUNNINGAPP_ENUM_CALLBACK Callback = new RUNNINGAPP_ENUM_CALLBACK(EnumRunningAppsCallback);
     List<RunningApp> list = new List<RunningApp>();
     Object data = list;
     if ((APIRET)RunningAppEnum(Callback, ref data) == APIRET.SUCCESS)
     {
         Dbg("GetRunningApps: out");
         return list;
     }
     else
     {
         Dbg("GetRunningApps: out (null)");
         return null;
     }
 }
Пример #3
0
 private static extern int RunningAppEnumKeepAlive64_v2(
     ref IntPtr Context,
     RUNNINGAPP_ENUM_CALLBACK Callback,
     ref Object Data);
Пример #4
0
 private static int RunningAppEnumKeepAlive(
     ref IntPtr Context,
     RUNNINGAPP_ENUM_CALLBACK Callback,
     ref Object Data)
 {
     return Is32Bit() ? (PkgVer == 1 ? RunningAppEnumKeepAlive32(ref Context, Callback, ref Data)  : RunningAppEnumKeepAlive32_v2(ref Context, Callback, ref Data) ):(PkgVer == 1 ? RunningAppEnumKeepAlive64(ref Context, Callback, ref Data) : RunningAppEnumKeepAlive64_v2(ref Context, Callback, ref Data));
 }
Пример #5
0
 private static extern int RunningAppEnum64_v2(
     RUNNINGAPP_ENUM_CALLBACK Callback,
     ref Object Data);
Пример #6
0
 private static int RunningAppEnum(
     RUNNINGAPP_ENUM_CALLBACK Callback,
     ref Object Data)
 {
     return Is32Bit() ? (PkgVer == 1 ? RunningAppEnum32(Callback, ref Data)  : RunningAppEnum32_v2(Callback, ref Data) ):(PkgVer == 1 ? RunningAppEnum64(Callback, ref Data) : RunningAppEnum64_v2(Callback, ref Data));
 }
Пример #7
0
 private extern static int RunningAppEnum32(
     RUNNINGAPP_ENUM_CALLBACK Callback,
     ref Object Data);