summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/include/cr_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/include/cr_process.h')
-rw-r--r--src/VBox/GuestHost/OpenGL/include/cr_process.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/include/cr_process.h b/src/VBox/GuestHost/OpenGL/include/cr_process.h
new file mode 100644
index 00000000..5fd981e0
--- /dev/null
+++ b/src/VBox/GuestHost/OpenGL/include/cr_process.h
@@ -0,0 +1,54 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#ifndef CR_PROCESS_H
+#define CR_PROCESS_H
+
+#ifdef WINDOWS
+#define WIN32_LEAN_AND_MEAN
+# ifdef VBOX
+# include <iprt/win/windows.h>
+# else
+#include <windows.h>
+# endif
+#endif
+
+#include <iprt/cdefs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Process ID type
+ */
+#ifdef WINDOWS
+typedef HANDLE CRpid;
+#else
+typedef unsigned long CRpid;
+#endif
+
+
+extern DECLEXPORT(void) crSleep( unsigned int seconds );
+
+extern DECLEXPORT(void) crMsleep( unsigned int msec );
+
+extern DECLEXPORT(CRpid) crSpawn( const char *command, const char *argv[] );
+
+extern DECLEXPORT(void) crKill( CRpid pid );
+
+extern DECLEXPORT(void) crGetProcName( char *name, int maxLen );
+
+extern DECLEXPORT(void) crGetCurrentDir( char *dir, int maxLen );
+
+extern DECLEXPORT(CRpid) crGetPID(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CR_PROCESS_H */