well. it's not so hard to put it to exe eather:
quote:

NET_API_STATUS NetQueryDisplayInformation(
LPCWSTR ServerName,
DWORD Level,
DWORD Index,
DWORD EntriesRequested,
DWORD PreferredMaximumLength,
LPDWORD ReturnedEntryCount,
PVOID *SortedBuffer
);
Parameters
ServerName
[in] Pointer to a constant null-terminated Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.
Level
[in] Specifies the information level of the data. This parameter can be one of the following values. Value Meaning
1 Return user account information. The SortedBuffer parameter points to an array of NET_DISPLAY_USER structures.
2 Return individual computer information. The SortedBuffer parameter points to an array of NET_DISPLAY_MACHINE structures.
3 Return group account information. The SortedBuffer parameter points to an array of NET_DISPLAY_GROUP structures.


Index
[in] Specifies the index of the first entry for which to retrieve information. Specify zero to retrieve account information beginning with the first display information entry. For more information, see the following Remarks section.
EntriesRequested
[in] Specifies the maximum number of entries for which to retrieve information. On Windows 2000, each call to NetQueryDisplayInformation returns a maximum of 100 objects.
PreferredMaximumLength
[in] Specifies the preferred maximum size, in bytes, of the system-allocated buffer returned in the SortedBuffer parameter. It is recommended that you set this parameter to 0xFFFFFFFF.
ReturnedEntryCount
[out] Pointer to a DWORD value that receives the number of entries in the buffer returned in the SortedBuffer parameter. If this parameter is zero, there are no entries with an index as large as that specified. Entries may be returned when the function's return value is either NERR_Success or ERROR_MORE_DATA.
SortedBuffer
[out] Pointer to a buffer that receives a pointer to a system-allocated buffer specifying a sorted list of the requested information. The format of this data depends on the value of the Level parameter. Because this buffer is allocated by the system, it must be freed using the NetApiBufferFree function. Note that you must free the buffer even if the function fails with ERROR_MORE_DATA. For more information, see the following Return Values section.


_________________________
!

download KiXnet