Редагувати

Поділитися через


GetProtocolFromName function

The GetProtocolFromName function returns a handle to a protocol of a given name.

Syntax

HPROTOCOL WINAPI GetProtocolFromName(
  _In_ LPSTR ProtocolName
);

Parameters

ProtocolName [in]

Protocol name (for example, IP).

Return value

If the function is successful, the return value is a protocol handle.

If the function is unsuccessful, the return value is NULL.

Remarks

Experts and parsers can call the GetProtocolFromName function.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Netmon.h
Library
Nmapi.lib
DLL
Nmapi.dll