3.5.4.5.1 GetStringFromId Method (Opnum 3)

The GetStringFromId method returns the string corresponding to the specified string ID. 

 HRESULT GetStringFromId ([in] UINT stringId, [out] BSTR * pBstrName); 

stringId: This is of type UINT and MUST be set to one of the values specified in the table below.

pBstrName: This is a localized string of type pointer to BSTR that contains the message that corresponds to the specified stringId.

stringId

pBstrName (in English)

0x64

Remrras

0x67

Remote RRAS configuration

0xC8

Microsoft Routing and Remote Access Service Authentication Servers

0xC9

Microsoft Routing and Remote Access Service Accounting Servers

0xCA

Microsoft Routing and Remote Access Service Policy

0xFB

Remrras enables remote RRAS configuration

0xFC

Routing and Remote Access Remote Management

0xFD

Routing and Remote Access Remote Management (DCOM-In)

0xFE

Inbound rule to allow DCOM traffic for Routing and Remote Access (RRAS) to be remotely managed

0x280C

Rules for remote management of Routing and Remote Access (RRAS) through the Routing and Remote Access snap-in

0x12F

Routing and Remote Access Remote management (RPC-In)

0x130

Inbound rule for Routing and Remote Access (RRAS) to be remotely managed by RPC/TCP

Return Values: The server MUST return zero if it successfully processes the message. If processing fails, the server MUST return a nonzero HRESULT error code as defined in the [MS-DTYP] section 2.2.18, between 0x80000000 and 0xFFFFFFFF, as specified in [MS-ERREF] section 2.1. For protocol purposes, all nonzero values MUST be treated as equivalent failures.

When processing this call, the RRASM server MUST do the following:

  • Call the abstract interface Invoke REMRAS method (section 3.5.6.1) specifying the operation and the parameters to enable RRAS server to perform the required management task.

  • Return any error status the RRAS server returns. Otherwise return ERROR_SUCCESS.

    No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].