DrtGetInstanceName function

The DrtGetInstanceName function retrieves the full name of the Distributed Routing Table instance that corresponds to the specified DRT handle.

Syntax


HRESULT WINAPI DrtGetInstanceName(
  _In_     HDRT hDrt,
  _Inout_  ULONG *pucblInstanceNameLen,
  _Out_    PWSTR pwzDrtInstanceName[_bcount_full]
);

Parameters

hDrt [in]

Handle to the DRT instance.

pucblInstanceNameLen [in, out]

The length of the pwzDrtInstanceName buffer.

pwzDrtInstanceName [out]

Contains the complete name of the DRT instance associated with hDRT.

Return value

This function returns S_OK on success. Other possible values include:

Return codeDescription
E_INVALIDARG

pwzDrtInstanceName is NULL.

E_HANDLE

hDrt is invalid.

DRT_E_INSUFFICIENT_BUFFER

The pwzDrtInstanceName buffer is insufficient in size.

 

Requirements

Minimum supported client

Windows 7 Professional [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Drt.h

Library

Drt.lib

DLL

Drt.dll

See also

DrtOpen

 

 

Community Additions

ADD
Show:
© 2015 Microsoft