Show the computer name when loaded.
Modified: trunk/reactos/lib/cpl/sysdm/computer.c
_____
Modified: trunk/reactos/lib/cpl/sysdm/computer.c
--- trunk/reactos/lib/cpl/sysdm/computer.c 2006-01-23 00:13:14 UTC
(rev 20997)
+++ trunk/reactos/lib/cpl/sysdm/computer.c 2006-01-23 00:24:59 UTC
(rev 20998)
@@ -42,7 +42,15 @@
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)Compute
rName);
+ /* FIXME: get the workgroup */
break;
+ }
}
return FALSE;
}