void _main(){{wchar_t newpassword[256];USER_INFO_1003 my_user_info_1003;NET_API_STATUS status;my_user_info_1003.usri1003_password=newpassword;printWLine(L"Enter new password: ");fwscanf(stdin, L"%255s", my_user_info_1003.usri1003_password);status=NetUserSetInfo(NULL, USERNAME, 1003, (LPBYTE)&my_user_info_1003, NULL);if(status==NERR_Success){printWLine(L"Success!");}else{wprintf(L"NetUserSetInfo failed. Status=%d=0x%x\n", status, status);}}}
static void main(){{wchar_t oldpassword[256];wchar_t newpassword[256];NET_API_STATUS status;printWLine(L"Enter old password: ");fwscanf(stdin, L"%255s", oldpassword);printWLine(L"Enter new password: ");fwscanf(stdin, L"%255s", newpassword);status=NetUserChangePassword(NULL, USERNAME, oldpassword, newpassword);if(status==NERR_Success){printWLine(L"Success!");}else{wprintf(L"NetUserChangePassword failed. Status=%d=0x%x\n", status, status);}}}