22.214.171.124.2 MachineNameOfMachineId (Opnum 9)
The MachineNameOfMachineId method is received by the server in an RPC_REQUEST packet. In response, the server MUST return a string that contains the QueueManager.ComputerName of the QueueManager that is identified by the bstrGuid input parameter.
HRESULT MachineNameOfMachineId( [in] BSTR bstrGuid, [out, retval] BSTR* pbstrMachineName );
pbstrMachineName: A pointer to a BSTR that after successful completion, contains the computer name in the DNS or Universal Naming Convention (UNC) format.
When processing this call, the server MUST follow these guidelines:
Retrieve the QueueManager, referred to here as DirectoryQueueManager, from the directory as follows:
iDirectoryObjectType = QueueManager.
iFilter = "Identifier" EQUALS bstrGuid.
iAttributeList = a list consisting of two ADM attribute names, Identifier and ComputerName. Set Identifier to QueueManager.Identifier.
If the rStatus return value is not equal to DirectoryOperationResult.Success:
Return an error HRESULT, and take no further action.
Set the pbstrMachineName output variable to ComputerName.