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_OK | No errors. |
| HNERR_WRONG_OS | Unsopported OS. |
| HNERR_SIZE_ERR | Buffer 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).