• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem calling Mach RPC function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: problem calling Mach RPC function
      • From: Bill Appleton <email@hidden>
  • Prev by Date: Re: Process exit notifcation in a kext
  • Next by Date: Re: problem calling Mach RPC function
  • Previous by thread: Re: kextload failure on 10.5
  • Next by thread: Re: problem calling Mach RPC function
  • Index(es):
    • Date
    • Thread