-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPInfoLib.h
More file actions
35 lines (28 loc) · 734 Bytes
/
PInfoLib.h
File metadata and controls
35 lines (28 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// PInfoLib.h
//
// Created by Jonatan C Hamberg on 14/05/16.
//
#ifndef PInfoLib_h
#define PInfoLib_h
#include <sys/sysctl.h>
#include <sys/syscall.h>
#define MAX_PID 99998
#define BREAK_THRESHOLD 5000
#define CS_OPS_ENTITLEMENTS_BLOB 7
#define SYS_csops 169
extern NSString *const kLookupURI;
@interface PInfoLib : NSObject {
struct BlobCore{
uint32_t magic;
uint32_t length;
};
}
+ (BOOL)isRunning:(int)pid;
+ (NSMutableArray *)getRunning:(BOOL)deep;
+ (NSDictionary *)getEntitlements:(int)pid;
+ (void)lookupInfo:(NSString *)bundleId
completion:(void (^)(BOOL succeeded, NSDictionary* result))completionBlock;
+ (NSString *)bundleFromAppId:(NSString *)appId;
@end
#endif /* PInfoLib_h */