Files
Odin/core
Jeroen van Rijn a1d871360c 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);
}
2021-04-13 02:09:44 +02:00
..
2021-01-09 23:43:34 +00:00
2021-04-01 10:06:00 +01:00
2021-03-26 16:24:56 +00:00
2021-04-01 10:06:00 +01:00
2021-04-01 10:06:00 +01:00
2021-03-03 14:31:17 +00:00
2021-03-13 21:18:07 +00:00
2021-03-18 13:25:41 +00:00
2021-04-01 10:06:00 +01:00
2021-03-03 14:31:17 +00:00
2021-04-05 18:44:08 +01:00
2021-04-12 17:13:05 +01:00
2021-04-01 10:06:00 +01:00
2021-03-23 18:49:50 +01:00