Skip to content
Start free evaluation

pdcomm_opcua_license_host_id

Function

Copies the host id of this machine, PDH1-XXXX-XXXX-XXXX-XXXX.

int32_t pdcomm_opcua_license_host_id(uint8_t *output, size_t capacity, size_t *required)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.h>

Host-bound licenses (SECS/GEM runtime licenses) name this id. It is derived from the operating system's machine id and is 24 bytes without a terminator.

Parameters

NameDescription
outputDestination, or null when capacity is zero.
capacitySize of output in bytes.
requiredReceives the size of the host id.

Returns

#PDCOMM_OPCUA_OK, #PDCOMM_OPCUA_BUFFER_TOO_SMALL, #PDCOMM_OPCUA_INVALID_INPUT, #PDCOMM_OPCUA_RUNTIME_ERROR when the machine id cannot be read (see pdcomm_opcua_last_error_copy()), or #PDCOMM_OPCUA_INTERNAL_ERROR.

Notes

  • Added in ABI 0.2.