aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-04-13 02:09:44 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-04-13 02:09:44 +0200
commita1d871360cdfd0e2683bf17df5eaca094254282e (patch)
treecb401c055d04ab4d0408ce72182fb5867f8bbb1d /src/check_decl.cpp
parent2b36069924c9fa21111fe8a8b5471e25847c52cf (diff)
Add support to core:windows to add/delete users.
main :: proc() { using fmt; using windows; username := "testuser"; password := "testpass"; ok := add_user("", username, password); fmt.printf("add_user: %v\n", ok); pi := windows.PROCESS_INFORMATION{}; ok2, path := windows.add_user_profile(username); fmt.printf("add_user_profile: %v, %v\n", ok2, path); ok3 := windows.delete_user_profile(username); fmt.printf("delete_user_profile: %v\n", ok3); ok4 := windows.delete_user("", username); fmt.printf("delete_user: %v\n", ok4); // Has optional bool to not wait on the process before returning. b := run_as_user(username, password, "C:\\Repro\\repro.exe", "Hellope!", &pi); fmt.printf("run_as_user: %v %v\n", b, pi); }
Diffstat (limited to 'src/check_decl.cpp')
0 files changed, 0 insertions, 0 deletions