rpc_ns_profile_elt_inq_begin(3rpc)Creates an inquiry context for viewing the elements in a profile Used by client, server, or management applications. Synopsis #include <dce/rpc.h> void rpc_ns_profile_elt_inq_begin( unsigned32 profile_name_syntax, unsigned_char_t *profile_name, unsigned32 inquiry_type, rpc_if_id_t *if_id, unsigned32 vers_option, unsigned32 member_name_syntax, unsigned_char_t *member_name, rpc_ns_handle_t *inquiry_context, unsigned32 *status); Parameters Input
profile_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide rpc_c_ns_syntax_default.
profile_name
inquiry_type
if_id Specifies the interface identifier of the profile elements to be returned by rpc_ns_profile_elt_inq_next( ). This parameter is used only when specifying a value of either rpc_c_profile_match_by_if or rpc_c_profile_match_by_both for the inquiry_type parameter. Otherwise, this parameter is ignored and you can specify the value NULL.
vers_option This parameter is used only when specifying a value of either rpc_c_profile_match_by_if or rpc_c_profile_match_by_both for the inquiry_type parameter. Otherwise, this parameter is ignored and you can specify the value 0 (zero). The following table describes the valid values for this parameter:
An integer value that specifies the syntax of the member_name parameter in this routine and the syntax of the member_name parameter in rpc_ns_profile_elt_inq_next( ). To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide rpc_c_ns_syntax_default.
member_name This parameter is used only when specifying a value of either rpc_c_profile_match_by_mbr or rpc_c_profile_match_by_both for the inquiry_type parameter. Otherwise, this parameter is ignored and you specify the value NULL. Output
inquiry_context
status
Description Using the inquiry_type and vers_option parameters, an application specifies which of the following profile elements will be returned from calls to rpc_ns_profile_elt_inq_next( ): · The default element. · All elements. · Those elements with the specified interface identifier. · Those elements with the specified member name. · Those elements with both the specified interface identifier and member name. Before calling rpc_ns_profile_elt_inq_next( ), the application must first call this routine to create an inquiry context. When finished viewing the profile elements, the application calls the rpc_ns_profile_elt_inq_done( ) routine to delete the inquiry context.
Permissions Required
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
rpc_s_incomplete_name
rpc_s_invalid_inquiry_type
rpc_s_invalid_name_syntax
rpc_s_invalid_vers_option
rpc_s_unsupported_name_syntax
Related Information rpc_ns_mgmt_handle_set_exp_age(3rpc) rpc_ns_profile_elt_inq_done(3rpc) rpc_ns_profile_elt_inq_next(3rpc)
|