RE: Re: [ntdev] convert LARGE_INTEGER to DWORD

+1

I’ve done this for clients over the years. It is really funny to take “totally tested and working code” from Linux, put in the SAL and see the errors pop out. My favorite was a client whose architect was very biased toward Linux, who ended up asking if we could somehow use the Microsoft tools on all their Linux code (I had to disappoint him by pointing to the license).

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Marion Bond
Sent: Tuesday, May 12, 2015 8:01 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: [ntdev] convert LARGE_INTEGER to DWORD

You can make your one version of no_sal.h to use with other tools. This is what I do and it defines all of those annotations as empty macros so they have no effect.

I disagree about the ability for humans to read the code. IMHO it improves the ability to read a function declaration as you immediately not only know the type of the parameters but their usage as well

Sent from Surface Pro

From: xxxxx@hotmail.com
Sent: ‎Tuesday‎, ‎May‎ ‎12‎, ‎2015 ‎7‎:‎07‎ ‎PM
To: Windows System Software Devs Interest List mailto:xxxxx

I really want to love the SAL and use it when I can, but I find myself stripping it out at release time. My product team maintains Windows and Linux variants of device functionality simultaneously. We make a strong effort to decouple the core functionality from the associated operating system. So what happens is the places where SAL is most useful breaks compatibility.

It would be an improvement for me if I could annotate my function declarations outside of the file containing the function definitions. I could then manage the complexity of the SAL stuff using the IDE to connect the annotated declarations to the definitions. I could then decouple the SAL annotations from the executing code and maintain cross-platform development code bases.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx>