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_OK | No errors. |
| HNERR_WRONG_OS | Unsopported OS. |
| HNERR_SIZE_ERR | Buffer is too small. |
Description:
Use LbAdpGetProcessFileByID to get exefile name by the process identifier (PID).
Requirements:
Unicode
Implemented as LbAdpGetProcessFileByIdW (Unicode) and LbAdpGetProcessFileByIdA (ANSI).