The Init method is received by the server in an RPC_REQUEST packet. In response, the server initializes the object to represent the state of a Queue. The represented Queue MUST have Queue.Active set to True. If the represented Queue.Active is False, or the Pathname and FormatName input parameters cannot be resolved, this method MUST return an error without setting the ObjectIsInitialized instance variable to True. This method MUST be called prior to calling any other operation on MSMQManagement.

 HRESULT Init(
   [in, optional] VARIANT* Machine,
   [in, optional] VARIANT* Pathname,
   [in, optional] VARIANT* FormatName
 );

Machine: A pointer to a VARIANT that contains a BSTR that contains a string representation of a computer name in the DNS or NetBIOS format. If this parameter is not specified or is NULL, the server MUST ignore this parameter.

Pathname: A pointer to a VARIANT that contains a BSTR that contains a string representation of the path name describing a Queue.

FormatName: A pointer to a VARIANT that contains a BSTR that contains a string representation of the format name describing a Queue.

Return Values: The method MUST return S_OK (0x00000000) to indicate success or an implementation-specific error HRESULT on failure.

When processing this call, the server MUST follow these guidelines: