mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
Show the computer name when loaded.
svn path=/trunk/; revision=20998
This commit is contained in:
parent
9d153967c7
commit
2044f3f0a4
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue