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; }
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; } }
private static extern int RunningAppEnumKeepAlive64_v2( ref IntPtr Context, RUNNINGAPP_ENUM_CALLBACK Callback, ref Object Data);
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)); }
private static extern int RunningAppEnum64_v2( RUNNINGAPP_ENUM_CALLBACK Callback, ref Object Data);
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)); }
private extern static int RunningAppEnum32( RUNNINGAPP_ENUM_CALLBACK Callback, ref Object Data);