problem calling Mach RPC function
problem calling Mach RPC function
- Subject: problem calling Mach RPC function
- From: Bill Appleton <email@hidden>
- Date: Fri, 18 Jun 2010 07:52:58 -0700
Hi All,
I have read all about calling mach RPC functions and realize it is supposed to be easy, but when I include the header and try to call the function I am getting a link error.
here is the function i need from the "defs" Mig definition file:
simpleroutine PCSetModal(clientPort :mach_port_t;
modal :boolean_t);
here is the definition i found in the generated .h file:
/* SimpleRoutine PCSetModal */
#ifdef mig_external
mig_external
#else
extern
#endif /* mig_external */
kern_return_t WKPCSetModal
(
mach_port_t clientPort,
boolean_t modal
);
but that stuff above just looks like an external fx definition, which triggers the link error. it seems like it needs to drag in all the RPC magic code somehow.
Maybe I have the wrong header? It doesn't look like it has all I need...
Maybe I need to generate my own header from the Mig file? Any help would be appreciated.
thanks,
Bill Appleton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden