RpcNsProfileEltInqNext function
The RpcNsProfileEltInqNext function returns one element at a time from a profile.
Syntax
RPC_STATUS RPC_ENTRY RpcNsProfileEltInqNext( RPC_NS_HANDLE InquiryContext, RPC_IF_ID *IfId, unsigned char **MemberName, unsigned long *Priority, unsigned char **Annotation );
Parameters
- InquiryContext
-
Name-service handle returned from the RpcNsProfileEltInqBegin function.
- IfId
-
Returns a pointer to the interface identification of the profile element.
- MemberName
-
Returns a pointer to a pointer to the profile element's member name.The syntax of the returned name was specified by the MemberNameSyntax parameter in the RpcNsProfileEltInqBegin function.
Specify a null value to prevent RpcNsProfileEltInqNext from returning the MemberName parameter. In this case, the application does not call the RpcStringFree function.
- Priority
-
Returns a pointer to the profile-element priority.
- Annotation
-
Returns a pointer to a pointer to the annotation string for the profile element. If there is no annotation string in the profile element, the string \0 is returned.
Specify a null value to prevent RpcNsProfileEltInqNext from returning the Annotation parameter. In this case, the application does not need to call the RpcStringFree function.
Return value
| Value | Meaning |
|---|---|
|
The call succeeded. |
|
The name is incomplete. |
|
The name service is unavailable. |
|
No more elements. |
Remarks
The RpcNsProfileEltInqNext function returns one element from the profile specified by the ProfileName parameter in RpcNsProfileEltInqBegin. Regardless of the value of InquiryType in RpcNsProfileEltInqBegin, RpcNsProfileEltInqNext returns all the components (interface identification, member name, priority, annotation string) of a profile element.
An application can view all the selected profile entries by repeatedly calling the RpcNsProfileEltInqNext function. When all the elements have been viewed, this function returns a RPC_S_NO_MORE_ELEMENTS status code. The returned elements are unordered.
On each call to RpcNsProfileEltInqNext that returns a profile element, the RPC run-time library allocates memory for the returned member name and annotation string. The application is responsible for calling the RpcStringFree function for each returned member name and annotation string. After viewing the profile's elements, the application must call RpcNsProfileEltInqDone to release the inquiry context.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
RpcNsProfileEltInqNextW (Unicode) and RpcNsProfileEltInqNextA (ANSI) |
See also