aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-09 11:02:31 +0000
committerRon Yorston <rmy@pobox.com>2019-03-09 11:02:31 +0000
commit8fcbe777412b301e5dddd4931b2e1016802141b8 (patch)
treebdad2a8f74c37d0af45fcf32db6acf4ee5624990 /include
parent0f9bc90f097e2d3d4162757cd42941afb9358552 (diff)
downloadbusybox-w32-8fcbe777412b301e5dddd4931b2e1016802141b8.tar.gz
busybox-w32-8fcbe777412b301e5dddd4931b2e1016802141b8.tar.bz2
busybox-w32-8fcbe777412b301e5dddd4931b2e1016802141b8.zip
win32: add a function to detect running with elevated privileges
Add is_admin() and use it to alter the command prompt in the line editor when running with admin privileges.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 9bc5eb018..52759b7b1 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -520,3 +520,4 @@ ULONGLONG CompatGetTickCount64(void);
520ssize_t get_random_bytes(void *buf, ssize_t count); 520ssize_t get_random_bytes(void *buf, ssize_t count);
521int enumerate_links(const char *file, char *name); 521int enumerate_links(const char *file, char *name);
522void hide_console(void); 522void hide_console(void);
523int is_admin(void);