The MachineIdOfMachineName method returns the machine identifier for a specified computer. The machine identifier can be used to create the format name of a machine journal.
machineId=MachineIdOfMachineName("MachineName")As String
For information on return codes, see MSMQ Error and Information Codes.
The machine identifier of a dependent client computer cannot be retrieved because dependent clients are not known by Active Directory.
To retrieve the identifier of an independent client or MSMQ server, use the VB constant vbNullString as shown below.
strMachineId = MachineIdOfMachineName(vbNullString)
When calling MachineIdOfMachineName, the MSMQApplication object does not have to be explicitly referenced. For an example of the different ways this method can be called, see MSMQApplication.
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.