Error codes are unsigned 32-bit values which are private to each
calling thread. Most functions will set the last error code value
when they fail; a few functions set it when they succeed. Function
failure is typically indicated by a return value such as FALSE, NULL,
INVALID_CLIENT or LLM_ERROR. Those functions which call
LlmSetLastError when they succeed are noted on the function
reference page.
Applications can retrieve the value saved by this function by
using the LlmGetLastError function. The use of
LlmGetLastError is optional; an application can call the
function to determine the specific reason for a function failure.