The RpcObjectSetInqFn function registers an object-inquiry function. A null value turns off a previously registered object-inquiry function.
This function is supported by both 32-bit platforms — Windows NT and Windows 95.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcObjectSetInqFn(
RPC_OBJECT_INQ_FN InquiryFn
);
The following C-language definition for RPC_OBJECT_INQ_FN illustrates the prototype for the object-inquiry function:
typedef void ( * RPC_OBJECT_INQ_FN) (
UUID * ObjectUuid,
UUID * TypeUuid,
RPC_STATUS * Status);
The TypeUuid and Status values are returned as the output from the RpcObjectInqType routine.
A server application calls the RpcObjectSetInqFn routine to specify a function to determine an object's type. If an application privately maintains an object/type registration, the specified inquiry function returns the type UUID of an object.
The RPC run-time library automatically calls the inquiry function when the application calls RpcObjectInqType and the object of interest was not previously registered with the RpcObjectSetType routine.
Value | Meaning |
---|---|
RPC_S_OK | Success |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpcdce.h.
Import Library: Link with rpcrt4.lib.
RpcObjectInqType, RpcObjectSetType