From e70b7c569ba13a68aba1c2b127811e61ac88a902 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Wed, 21 Oct 2009 19:11:53 +0200 Subject: Started working on user managment --- Source/Library/Userland/Binding/Process.class.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Library/Userland/Binding') diff --git a/Source/Library/Userland/Binding/Process.class.h b/Source/Library/Userland/Binding/Process.class.h index 00afe27..935bb39 100644 --- a/Source/Library/Userland/Binding/Process.class.h +++ b/Source/Library/Userland/Binding/Process.class.h @@ -1,6 +1,7 @@ #include #include +#include class Process : public RessourceCaller { public: @@ -19,4 +20,13 @@ class Process : public RessourceCaller { void freePage(u32int pos) { doCall(PRIF_FREEPAGE, pos); } + u32int getPid() { + return doCall(PRIF_GETPID); + } + u32int getPpid() { + return doCall(PRIF_GETPPID); + } + String getCmdline() { + return String::unserialize(doCall(PRIF_GETCMDLINE)); + } }; -- cgit v1.2.3