The NetWkstaTransportEnum function supplies information about transport protocols that are managed by the redirector, which is the software on the client computer that generates file requests to the server computer.
No special group membership is required to successfully execute NetWkstaTransportEnum.
NET_API_STATUS NetWkstaTransportEnum(
LPWSTR servername,
DWORD level,
LPBYTE *bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resumehandle
);
Value | Meaning |
---|---|
0 | The bufptr parameter points to a WKSTA_TRANSPORT_INFO_0 structure. |
If the function is successful, it returns NERR_SUCCESS.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
ERROR_MORE_DATA | Additional information is available. |
ERROR_INVALID_LEVEL | The level parameter, which indicates what level of data structure information is available, is invalid. |
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmwksta.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetWkstaTransportAdd, NetWkstaTransportDel