Pelles C forum

C language => Tips & tricks => Topic started by: Vortex on August 31, 2024, 08:43:37 PM

Title: Enumerating local user accounts
Post by: Vortex on August 31, 2024, 08:43:37 PM
The NetUserEnum API can be used to enumarate the local user accounts. The example code supplied here can be compiled with Pelles C. You need to replace all the occurences of %s with %ls :

https://learn.microsoft.com/en-us/windows/win32/api/lmaccess/nf-lmaccess-netuserenum