Packet Sniffer SDK DLL Edition

HNLBAdapter :: Methods :: LbAdpGetProcessFileByID

 Previous Next

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

Syntax:

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

Parameters:

ProcessID

[in] System process identifier (PID).

Name

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

Size

[in] Buffer size in bytes.

Return values:

HNERR_OKNo errors.
HNERR_WRONG_OSUnsopported OS.
HNERR_SIZE_ERRBuffer is too small.

Description:

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

Requirements:

Unicode

Implemented as LbAdpGetProcessFileByIdW (Unicode) and LbAdpGetProcessFileByIdA (ANSI).

See also:HNLBAdapter, LbAdpGetProcessNameByID