Show the computer name when loaded.

svn path=/trunk/; revision=20998
This commit is contained in:
Brandon Turner 2006-01-23 00:24:59 +00:00
parent 9d153967c7
commit 2044f3f0a4

View file

@ -42,7 +42,15 @@ ComputerPageProc(
switch(uMsg)
{
case WM_INITDIALOG:
{
/* Display computer name */
DWORD Size = MAX_COMPUTERNAME_LENGTH + 1;
TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1];
GetComputerName(ComputerName,&Size);
SendDlgItemMessage(hwndDlg,IDC_COMPUTERNAME,WM_SETTEXT,0,(LPARAM)ComputerName);
/* FIXME: get the workgroup */
break;
}
}
return FALSE;
}