Author: cwittich
Date: Sat May 13 00:05:19 2006
New Revision: 21898
URL:
http://svn.reactos.ru/svn/reactos?rev=21898&view=rev
Log:
display workgroup/domain name
Modified:
trunk/reactos/dll/cpl/sysdm/computer.c
trunk/reactos/dll/cpl/sysdm/sysdm.rbuild
Modified: trunk/reactos/dll/cpl/sysdm/computer.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/sysdm/computer.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/computer.c (original)
+++ trunk/reactos/dll/cpl/sysdm/computer.c Sat May 13 00:05:19 2006
@@ -27,6 +27,7 @@
*/
#include <windows.h>
#include <stdlib.h>
+#include <lm.h>
#include "resource.h"
#include "sysdm.h"
@@ -50,7 +51,12 @@
{
SendDlgItemMessage(hwndDlg,IDC_COMPUTERNAME,WM_SETTEXT,0,(LPARAM)ComputerName);
}
- /* FIXME: get the workgroup */
+ LPWKSTA_INFO_101 wki;
+ if (NetWkstaGetInfo(NULL,101,(LPBYTE*)&wki) == NERR_Success)
+ {
+
SendDlgItemMessage(hwndDlg,IDC_WORKGROUPDOMAIN_NAME,WM_SETTEXT,0,(LPARAM)wki->wki101_langroup);
+ NetApiBufferFree(&wki);
+ }
break;
}
}
Modified: trunk/reactos/dll/cpl/sysdm/sysdm.rbuild
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/sysdm/sysdm.rbuild?…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/sysdm.rbuild (original)
+++ trunk/reactos/dll/cpl/sysdm/sysdm.rbuild Sat May 13 00:05:19 2006
@@ -10,6 +10,7 @@
<library>kernel32</library>
<library>user32</library>
<library>comctl32</library>
+ <library>netapi32</library>
<file>advanced.c</file>
<file>computer.c</file>
<file>environment.c</file>