How can i enumerate all users in PC?
-
I need to delete application files producing when user use my App in the uninstalling process.How can i know all users' account in order to delete files in Document Setting(Win2k). Thanks
NetUserEnum The NetUserEnum function provides information about all user accounts on a server.
-
I need to delete application files producing when user use my App in the uninstalling process.How can i know all users' account in order to delete files in Document Setting(Win2k). Thanks
Hi fcoder, I think http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/enumerating_users.asp[^] is helpful for you
-
I need to delete application files producing when user use my App in the uninstalling process.How can i know all users' account in order to delete files in Document Setting(Win2k). Thanks
PUSER_INFO_3 users; LPWSTR lp1; DWORD d1,d2; DWORD SizeName=sizeof(Name); GetComputerName(Name,&SizeName); lp1=A2W (Name); NetApiBufferAllocate(1024,(LPVOID*)&users); NetUserEnum(lp1,3,FILTER_NORMAL_ACCOUNT,(LPBYTE*)&users,MAX_PREFERRED_LENGTH, &d1,&d1,NULL ); and also use USES_CONVERSION; in the first code I hope helpful for you
-
I need to delete application files producing when user use my App in the uninstalling process.How can i know all users' account in order to delete files in Document Setting(Win2k). Thanks
You need to reword this. I am amazed I understood what I did. INTP Every thing is relative...