Re: Macro calling kernel function



David wrote:
Hi,
I am using header file for driver so Can I define macro to call Kernel
function ?

A macro works by textual replacement. You can use a macro to do whatever you want; if the resultant code is correct, all is well.

What are the generatl rules for defining macro.

There are none, other than `use sparingly'.

HTH,
--ag

[The question you've asked indicates that you have no real understanding of how C works. *Please* get a good book. See http://www.accu.org for suggestions.]

--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"
.



Relevant Pages

  • Re: Driver Model
    ... If the driver does not contain the appropriate ... > If the MODULE_LICENSEmacro is what determines taint, ... the module is GPL and (after you've shipped ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [RFC] add kobject to struct module
    ... > - Are we opening the floodgates for another round of races and driver ... If you set the "perm" portion of the module_parammacro to 0, ... perm sets the visibility in driverfs: ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: time
    ... > Then I would like for the macro to take those results and put them ... > means that the driver can not work more than 70 hours in an 8 day ... If the calculation gets to 0 or above, the cell changes color to ... > That part of the sheet works perfectly. ...
    (microsoft.public.excel.misc)
  • Re: Creating a Macro to print from Word in duplex mode on printer.
    ... driver controls is to create separate printer drivers for the same printer ... > Does anyone know how to create a macro to assist in printing documents ... > Letterhead, Continuation, Plain etc.), but the duplex function appears as ... > own Print Setup panel itself, so recording a macro with duplexing enabled ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Printing to Multiple Trays Problem
    ... I have tried installing the ... driver locally and am still getting the same problem. ... >> I have the following macro that used to work for our ... >> wdSeekCurrentPageHeader ...
    (microsoft.public.word.vba.general)