Packet Sniffer SDK DLL Edition

HNLBAdapter :: Methods :: LbAdpGetProcessNameByID

 Previous Next

Returns the process name by the process identifier (PID).

Syntax:

DWORD __stdcall LbAdpGetProcessNameByID(DWORD ProcessID, LPTSTR Name, DWORD Size);

Parameters:

ProcessID

[in] System process identifier (PID).

Name

[out] Pointer to the memory buffer for the process name.

Size

[in] Buffer size in bytes.

Return values:

HNERR_OKNo errors.
HNERR_WRONG_OSUnsopported OS.
HNERR_SIZE_ERRBuffer is too small.

Description:

Use LbAdpGetProcessNameByID to get the process name by the process identifier (PID).

Requirements:

Unicode

Implemented as LbAdpGetProcessNameByIdW (Unicode) and LbAdpGetProcessNameByIdA (ANSI).

See also:HNLBAdapter, LbAdpGetProcessFileByID