Skip to content

Latest commit

 

History

History
168 lines (131 loc) · 5.36 KB

nf-rpcnsi-rpcnsgroupmbrinqnextw.md

File metadata and controls

168 lines (131 loc) · 5.36 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rpcnsi.RpcNsGroupMbrInqNextW
RpcNsGroupMbrInqNextW function (rpcnsi.h)
The RpcNsGroupMbrInqNext function returns one entry name from a group at a time. (Unicode)
RpcNsGroupMbrInqNext
RpcNsGroupMbrInqNext function [RPC]
RpcNsGroupMbrInqNextW
_rpc_rpcnsgroupmbrinqnext
rpc.rpcnsgroupmbrinqnext
rpcnsi/RpcNsGroupMbrInqNext
rpcnsi/RpcNsGroupMbrInqNextW
rpc\rpcnsgroupmbrinqnext.htm
Rpc
58f32594-85de-4d20-86b2-210367ccb7ce
12/05/2018
RpcNsGroupMbrInqNext, RpcNsGroupMbrInqNext function [RPC], RpcNsGroupMbrInqNextA, RpcNsGroupMbrInqNextW, _rpc_rpcnsgroupmbrinqnext, rpc.rpcnsgroupmbrinqnext, rpcnsi/RpcNsGroupMbrInqNext, rpcnsi/RpcNsGroupMbrInqNextA, rpcnsi/RpcNsGroupMbrInqNextW
rpcnsi.h
Rpc.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
RpcNsGroupMbrInqNextW (Unicode) and RpcNsGroupMbrInqNextA (ANSI)
Rpcns4.lib
Rpcns4.dll
Windows
19H1
RpcNsGroupMbrInqNextW
rpcnsi/RpcNsGroupMbrInqNextW
c++
APIRef
kbSyntax
DllExport
Rpcns4.dll
RpcNsGroupMbrInqNext
RpcNsGroupMbrInqNextA
RpcNsGroupMbrInqNextW

RpcNsGroupMbrInqNextW function

-description

The RpcNsGroupMbrInqNext function returns one entry name from a group at a time.

Note  This function is not supported on Windows Vista and later operating systems.
 

-parameters

-param InquiryContext

Name service handle.

-param MemberName

Returns the address of a pointer to an RPC group member name. The syntax of the returned name was specified by the MemberNameSyntax parameter in the RpcNsGroupMbrInqBegin function.

Specify a null value to prevent RpcNsGroupMbrInqNext from returning the MemberName parameter. In this case, the application does not call the RpcStringFree function.

-returns

Value Meaning
RPC_S_OK
The call succeeded.
RPC_S_INVALID_NS_HANDLE
The name-service handle is invalid.
RPC_S_NO_MORE_MEMBERS
No more members.
RPC_S_NAME_SERVICE_UNAVAILABLE
The name service is unavailable.
 
Note  For a list of valid error codes, see RPC Return Values.
 

-remarks

The RpcNsGroupMbrInqNext function returns one member of the RPC group specified by the GroupName parameter in RpcNsGroupMbrInqBegin. An application can view all the members of an RPC group set by repeatedly calling RpcNsGroupMbrInqNext. When all the group members have been viewed, this function returns an RPC_S_NO_MORE_MEMBERS status code. The returned group members are unordered.

On each call to RpcNsGroupMbrInqNext that returns a member name, the RPC run-time library allocates memory for the returned MemberName. The application is responsible for calling RpcStringFree for each returned MemberName string. After viewing the RPC group's members, the application must call RpcNsGroupMbrInqDone to release the inquiry context.

The order in which group members are returned can be different for each viewing of a group. This means that the order in which group members are returned to an application can be different each time the application is run.

Note  Windows 2000 Active Directory supports this function. Earlier versions of Windows NT support the use of this function with Cell Directory Service (CDS) only.
 

Note

The rpcnsi.h header defines RpcNsGroupMbrInqNext as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

RpcNsGroupMbrInqBegin

RpcNsGroupMbrInqDone

RpcStringFree