static void main_sink(){char * password=_main_data;{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}}void _main(){char * password;char password_buf[100]="";password=password_buf;strcpy(password, PASSWORD);_main_data=password;main_sink();}
static void main_sink(){char * password=_main_data;{HANDLE pHandle;char * username="User";char * domain="Domain";if (LogonUserA( username, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, &pHandle)!=0){printLine("User logged in successfully.");CloseHandle(pHandle);}else{printLine("Unable to login.");}}}static void main(){char * password;char password_buf[100]="";password=password_buf;{size_t password_len=0;fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}}_main_data=password;main_sink();}