Hi,
I am trying to create a program that would disable a user account on a local computer. I found NetUserSetInfo as the API to be able to do this with USER_INFO_1008. However it does not do the job.
See below:
**************
.data
uflags db "UF_ACCOUNTDISABLE",0
.data?
ui USER_INFO_1008 <>
.start
....
.ELSEIF ax==IDC_DISABLE
mov ui.usri1008_flags, OFFSET uflags
invoke GetDlgItemText,hWnd,IDC_EDIT1,addr userdis,addr buffer
invoke NetUserSetInfo, NULL, addr userdis, 1008, addr ui, NULL
....
******************************
When ran, no errors were shown but it does not do the job to set the account as disabled. Can anybody share some information on what I am missing?
Thank you.
TF