summary refs log tree commit diff stats
path: root/src/common/wdkutil.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-14 06:43:56 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-14 06:43:56 +0100
commite26a1c5f7a6bceb032e8a5f2bb77c34ad569a1a4 (patch)
treee64edd14717dfeebc7995ce3f552fcbe09cd0d1b /src/common/wdkutil.c
parent1effb26d5f316c79ae7815355f46d42b48264079 (diff)
split dirent.h and more xtray support
Diffstat (limited to 'src/common/wdkutil.c')
-rw-r--r--src/common/wdkutil.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common/wdkutil.c b/src/common/wdkutil.c
new file mode 100644
index 00000000..5bf4f0c0
--- /dev/null
+++ b/src/common/wdkutil.c
@@ -0,0 +1,27 @@
+#include <io.h>
+
+int
+portable_mode ()
+{
+	if ((_access( "portable-mode", 0 )) != -1)
+	{
+		return 1;
+	}
+	else
+	{
+		return 0;
+	}
+}
+
+int
+xtray_mode ()
+{
+	if ((_access( "plugins/xtray.dll", 0 )) != -1)
+	{
+		return 1;
+	}
+	else
+	{
+		return 0;
+	}
+}