| 3809 |
LPARAM lParam) |
LPARAM lParam) |
| 3810 |
{ |
{ |
| 3811 |
static char sendfile[MAX_PATH] = ""; |
static char sendfile[MAX_PATH] = ""; |
| 3812 |
|
static char sendfiledir[MAX_PATH] = ""; |
| 3813 |
static char recvdir[MAX_PATH] = ""; |
static char recvdir[MAX_PATH] = ""; |
| 3814 |
HWND hWnd; |
HWND hWnd; |
| 3815 |
HDROP hDrop; |
HDROP hDrop; |
| 3821 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
| 3822 |
DragAcceptFiles(dlg, TRUE); |
DragAcceptFiles(dlg, TRUE); |
| 3823 |
|
|
| 3824 |
|
// SCPファイル送信先を表示する |
| 3825 |
|
if (sendfiledir[0] == '\0') { |
| 3826 |
|
_snprintf_s(sendfiledir, MAX_PATH, _TRUNCATE, "."); // home directory |
| 3827 |
|
} |
| 3828 |
|
SendMessage(GetDlgItem(dlg, IDC_SENDFILE_TO), WM_SETTEXT, 0, (LPARAM)sendfiledir); |
| 3829 |
|
|
| 3830 |
// SCPファイル受信先を表示する |
// SCPファイル受信先を表示する |
| 3831 |
if (recvdir[0] == '\0') { |
if (recvdir[0] == '\0') { |
| 3832 |
_snprintf_s(recvdir, MAX_PATH, _TRUNCATE, "%s", pvar->ts->FileDir); |
_snprintf_s(recvdir, MAX_PATH, _TRUNCATE, "%s", pvar->ts->FileDir); |
| 3901 |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT); |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT); |
| 3902 |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile); |
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile); |
| 3903 |
if (sendfile[0] != '\0') { |
if (sendfile[0] != '\0') { |
| 3904 |
SSH_start_scp(pvar, sendfile, NULL); |
hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO); |
| 3905 |
|
SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir); |
| 3906 |
|
SSH_start_scp(pvar, sendfile, sendfiledir); |
| 3907 |
//SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE); |
//SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE); |
| 3908 |
EndDialog(dlg, 1); // dialog close |
EndDialog(dlg, 1); // dialog close |
| 3909 |
return TRUE; |
return TRUE; |