diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 22:54:08 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 22:54:08 +0200 |
commit | bd0728f03b9a3742d50db68ac77f1c4ea042f0a2 (patch) | |
tree | 52d4e619cc049b91c89a03865ec9b8b6c4a5b5a4 /src/common/wdkutil.c | |
parent | 67e3ef79bddff056459914a51bea128ed619c5ed (diff) | |
parent | 24ac838543bc99ea8d289925b4c5418107d5ae1f (diff) |
Merge with default
Diffstat (limited to 'src/common/wdkutil.c')
-rw-r--r-- | src/common/wdkutil.c | 27 |
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; + } +} |