Re: One more bug - please vote

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



> (2) The uint64( ( -int64( ...) ) ) syntax *IS* a C++ typecast and a C++
> constructor. It's a typecast in this particular case. Anyway, if you prefer,

This is called "typecast by constructor" in C++ :)

> IMHO the below is more compact and clear.
>
> ui64DueTime = uint64( ( -int64( ui64DueTime - m_uliTickCounter.QuadPart )
> * 10000i64 ) );

Yes, drop the Hungarian notation and the things will be even clearer :)

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com


.



Relevant Pages

  • Re: Pen Drive Initialization
    ... It must have the valid filesystem metadata with 100% of data space marked ... >> Maxim Shatskih, Windows DDK MVP ... >>> When I do that, windows keeps repeating the reading commands, and there ...
    (microsoft.public.development.device.drivers)
  • Re: Replacing MdlAddress of an IRP. Can we do that?
    ... If the partial MDL was built - then a master MDL which was used as a base ... Maxim Shatskih, Windows DDK MVP ... Apparently I have to use a IoBuildPartialMdl (PreviousMdl, SwapMdl, ...
    (microsoft.public.development.device.drivers)
  • Re: Accessing the adapter context in an NDIS driver
    ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ... >>> I don't know how to get to my adapter context from my dispatch routine, ...
    (microsoft.public.development.device.drivers)
  • Re: USBSTOR.SYS
    ... > interpret certain sectors. ... >>> Maxim Shatskih, Windows DDK MVP ... >>> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)
  • Re: sharing serial ports among applications
    ... > has to be acquired before the applications can access the com port. ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)