JCL Help:GetMacAddresses

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Retrieves the MAC addresses for a computer.


Pascal

 function GetMacAddresses(const Machine: string; const Addresses: TStrings): Integer;


Parameters

Parameters Description
const Machine: string Netbios name of the computer who's MAC addresses you want. This can be the 'standard' computer name of a computer on the network or a '*' for the local computer (you can also use the local computer name or an empty string).
const Addresses: TStrings On output a list of all MAC address found.


Return Value

The function returns the number of MAC addresses that are available for the specified computer. The Addresses list may contain fewer addresses though. The function attempts to get all the addresses but might fail for some of them, in which case it continues to retrieve the remaining addresses. In case of complete failure the function returns -1 and the Addresses list will be empty.


Description

GetMacAddresses returns a list of all MAC addresses for the specified computer. The computer can be the local computer or a computer on the network.


About

Unit

JclSysInfo


Donator

Marcel van Brakel


Notes

This function is an adapted conversion from the Platform SDK example described in knowledge base article Q118623.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page