Entwickler-Ecke

Internet / Netzwerk - betriebssystemtyp auslesen


inselberg - Di 29.07.03 18:50
Titel: betriebssystemtyp auslesen
hi,

ist es möglich festzustellen um welches (windows) betriebssystem hinter einer ip steckt.

und wenn ja wie ...


danke.


UC-Chewie - Di 29.07.03 19:07

Unter NTbasierrten Systemen könnte das mit NetWkstaGetInfo gehen. Einfach mal bei MSDN/ im PSDK nachschauen.


derDoc - Di 29.07.03 20:11

Hier ist der entsprechende Eintrag im PSDK:

Zitat:
The NetWkstaGetInfo function returns information about the configuration of a workstation.


NET_API_STATUS NetWkstaGetInfo(
LPWSTR servername,
DWORD level,
LPBYTE* bufptr
);

Parameters
servername
[in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.

Windows NT: This string must begin with \\.

level
[in] Specifies the information level of the data. This parameter can be one of the following values.
100 The bufptr parameter points to a WKSTA_INFO_100 structure.
101 The bufptr parameter points to a WKSTA_INFO_101 structure.
102 The bufptr parameter points to a WKSTA_INFO_102 structure.

bufptr
[out] Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. For more information, see Network Management Function Buffers and Network Management Function Buffer Lengths.


inselberg - Di 29.07.03 20:39

thnx