char * b_main_source(char * password);void _main(){char * password;char password_buf[100]="";password=password_buf;password=b_main_source(password);{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.");}}}char * b_main_source(char * password){strcpy(password, PASSWORD);return password;}
char * b_main_source(char * password);static void main(){char * password;char password_buf[100]="";password=password_buf;password=b_main_source(password);{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.");}}}char * b_main_source(char * password){{size_t password_len=0;fgets(password, 100, stdin);password_len=strlen(password);if (password_len > 0){password[password_len-1]='\0';}}return password;}