RE: SPAM-LOW: Re: SPAM-LOW: Re: SPAM-LOW: Re: Re:Referencing a RegKey Object from handle

If the OS gives an abstract enough interface, none of those
problems exist. If however the OS is an amoebalike thing that
wants to minimize what hardware drivers can do, this kind of
problem will pop up all over the place, and let me say it once,
serve them right. They’re shooting themselves on the foot, big
and hard. A solid OS doesn’t break because of a driver, and if a
driver breaks the system - because it mishandles the hardware -
that’s not the OS’s problem nor is that a problem that should
concern the OS. The OS doesn’t own the machine, nor does it
orchestrate anything, it’s just a service program that should do
what it’s told.

As for Norton, I managed SoftICE, BoundsChecker, TrueTime,
TrueCoverage, DriverWorks, DriverNetworks, DriverMonitor, and I
didn’t have any of those issues. The problem, mind you, is the
bizantyne architecture we driver writers have to go through to
get our products working, and let me tell you, the least I have
to negotiate it, the better off I feel.

Alberto.

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”

Sent: Tuesday, August 09, 2005 11:02 PM
Subject: Re:[ntdev] SPAM-LOW: Re: SPAM-LOW: Re: Re:Referencing a
RegKey Object from handle

> You forget one thing. That driver must exist in an environment
> that is not only orchestrated by an OS, but one that is also
> colored and harmonized with by a multitude of other kernel
> drivers provided by a multitude of deveopers and vendors. Most
> of those developers ASSUME that your driver is doing basically
> the same thing as they are, trying to perform the task at hand
> without casuing a ripple that will kill someone else. Your
> driver may work fine in SP2, using undocumented structures and
> function calls but will it in SP3 or Vista? The truth is you
> cannot guarante that you can correct any deltas that may exist
> in SPs before they casue some other vendors driver to crash.
> That is going to lead to uneeded stress and work by the poor
> schmuck trying to do things right. You cannot guarnatee that
> what you do when you decide to run naked through the hardware,
> is not going to cause someone else grief.
>
> Norton AV is proof enough. It has to be uninstalled to
> install to many of the Microsoft released updates, and an
> uninstalled AV is absolutely useless.
>
> –
> the personal opinion of
> Gary G. Little
>
> “Alberto Moreira” wrote in message
> news:xxxxx@ntdev…
>> No, dude, experience. Years of it. A device driver should be
>> machine code on iron - basically it should misbehave because
>> it doesn’t handle the hardware appropriately, or because
>> there’s a programming error, and so on. If a piece of code
>> must spend most of its time negotiating APIs which are
>> basically there to channel a dev out of handling the
>> hardware, sorry, no sympathy from me.
>>
>> Alberto.
>>
>>
>> ----- Original Message -----
>> From: “Arlie Davis”
>> To: “Windows System Software Devs Interest List”
>>
>> Sent: Tuesday, August 09, 2005 11:11 AM
>> Subject: RE: SPAM-LOW: Re: SPAM-LOW: Re: Re:[ntdev]
>> Referencing a RegKey Object from handle
>>
>>
>>> Alberto writes:
>>>
>>>> The more one uses OS services, the more exposure
>>>> one has to nonsense and to uncontrollable behavior.
>>>
>>> Extremist nonsense and fingerpointing. I can cite just as
>>> many examples of
>>> device drivers that do incredibly stupid things than you can
>>> of OS flaws.
>>> And what is the end result of this reasoning? No OS, no
>>> drivers, just apps
>>> talking directly to hardware? Back to the fifties? Perhaps
>>> you should ship
>>> a sealed box, that contains only 100% pure, flawless Moreira
>>> code.
>>>
>>> We must be conservative at all interfaces between
>>> components – between
>>> hardware and software components, and between software
>>> components – to the
>>> degree that is rational and necessary, because those
>>> components change
>>> independently over time. Using undocumented and unsupported
>>> interfaces is
>>> an option, but should only be a last resort, and every
>>> effort should be made
>>> to reduce its impact.
>>>
>>> I suppose you’re still grumpy that the x64 compiler doesn’t
>>> support inline
>>> assembly, too.
>>>
>>> – arlie
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: xxxxx@lists.osr.com
>>> [mailto:xxxxx@lists.osr.com] On Behalf Of
>>> Alberto Moreira
>>> Sent: Monday, August 08, 2005 10:03 PM
>>> To: Windows System Software Devs Interest List
>>> Subject: SPAM-LOW: Re: SPAM-LOW: Re: Re:[ntdev] Referencing
>>> a RegKey Object
>>> from handle
>>>
>>> When it ships, it must be just code running on the machine.
>>> The more one
>>> uses OS services, the more exposure one has to nonsense and
>>> to
>>> uncontrollable behavior. The solution, to me at least, is
>>> obvious: talk to the hardware first, to the OS only when
>>> there’s no
>>> alternative. Minimizing one’s exposure to the OS minimizes
>>> one’s exposure to
>>> events one cannot control.
>>>
>>> So, the only real conservative approach is to talk to the
>>> hardware. That’s
>>> frozen functionality, mind you, it has been around for years
>>> and by and
>>> large it works wonders. Beyond that, it’s basically a kind
>>> of a lottery.
>>>
>>> Alberto.
>>>
>>>
>>> ----- Original Message -----
>>> From: “Arlie Davis”
>>> To: “Windows System Software Devs Interest List”
>>>
>>> Sent: Monday, August 08, 2005 5:05 PM
>>> Subject: RE: SPAM-LOW: Re: Re:[ntdev] Referencing a RegKey
>>> Object from
>>> handle
>>>
>>>
>>>> This isn’t about learning, or debugging. There are
>>>> numerous books on
>>>> Windows internals, targeted at device driver developers and
>>>> developers
>>>> in general. I’m particularly fond of Rajeev Nagar’s File
>>>> System
>>>> Internals, Gary Nebbett’s Windows NT/2000 Native API
>>>> Reference. There
>>>> are also lots of good web resources for this.
>>>>
>>>> This whole argument is about what you ship in your device
>>>> drivers –
>>>> the code that customers place their trust in. All
>>>> experience shows
>>>> that being conservative, especially with kernel-mode
>>>> components, is
>>>> important.
>>>>
>>>> – arlie
>>>
>>>
>>>
>>>
>>> —
>>> Questions? First check the Kernel Driver FAQ at
>>> http://www.osronline.com/article.cfm?id=256
>>>
>>> You are currently subscribed to ntdev as: xxxxx@ieee.org
>>> To unsubscribe send a blank email to
>>> xxxxx@lists.osr.com
>>
>>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com

It costs tens of thousands of dollars to rev one version of a
chip, and its half life is way shorter.

Alberto.

----- Original Message -----
From: “Don Burn”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”

Sent: Wednesday, August 10, 2005 7:42 AM
Subject: Re:[ntdev] Re:SPAM-LOW: Re: Re:Referencing a RegKey
Object from handle

> Alberto,
>
> Sorry to disalusion you, but there have been a number
> of studies that have shown that for most hardware the costs of
> the associated software is 5 to 10 times higher than the
> hardware. The concept that the hardware is more expensive
> went out with discrete packages.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
>
>
> “Alberto Moreira” wrote in message
> news:xxxxx@ntdev…
>>
>> Hardware is way harder to develop than software, so, umpteen
>> out of umpteen plus one cases it’s the software that must
>> accommodate the hardware - not the other way around.
>>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com

Actually with FPGA and a lot of the approaches that people use this is not
the case. Even when it is the HW costs are amortized of large amount of
product. The hardware design costs these days is typically comparable to a
small multiplier (2-3) of the initial software costs. What kills you is the
support costs for software which can easily run 10-30 times the cost of the
initial development over the life of the product.

This is why research has shown that the tie things directly to the hardware
approach, or the fix things on every revision of the OS model, cost
companies money and customers.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Alberto Moreira” wrote in message news:xxxxx@ntdev…
> It costs tens of thousands of dollars to rev one version of a chip, and
> its half life is way shorter.
>
> Alberto.
>
>
> ----- Original Message -----
> From: “Don Burn”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, August 10, 2005 7:42 AM
> Subject: Re:[ntdev] Re:SPAM-LOW: Re: Re:Referencing a RegKey Object from
> handle
>
>
>> Alberto,
>>
>> Sorry to disalusion you, but there have been a number of studies
>> that have shown that for most hardware the costs of the associated
>> software is 5 to 10 times higher than the hardware. The concept that the
>> hardware is more expensive went out with discrete packages.
>>
>>
>> –
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Remove StopSpam from the email to reply
>>
>>
>>
>>
>> “Alberto Moreira” wrote in message
>> news:xxxxx@ntdev…
>>>
>>> Hardware is way harder to develop than software, so, umpteen out of
>>> umpteen plus one cases it’s the software that must accommodate the
>>> hardware - not the other way around.
>>>
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@ieee.org
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

I think this is a total misrepresentation of Amoeba - it in no way
“minimized what hardware drivers can do”. Indeed, in many ways it is
far beyond what we usually discuss here with respect to Windows.

Certainly that was not Tannenbaum’s purpose in constructing it - he was
more interested in exploring micro-kernel operating systems and
distributed systems (much like the work we did at Stanford with V).

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alberto Moreira
Sent: Wednesday, August 10, 2005 7:50 AM
To: ntdev redirect
Subject: Re: Re:[ntdev] SPAM-LOW: Re: SPAM-LOW: Re: Re:Referencing a
RegKey Object from handle

If the OS gives an abstract enough interface, none of those
problems exist. If however the OS is an amoebalike thing that
wants to minimize what hardware drivers can do, this kind of
problem will pop up all over the place, and let me say it once,
serve them right. They’re shooting themselves on the foot, big
and hard. A solid OS doesn’t break because of a driver, and if a
driver breaks the system - because it mishandles the hardware -
that’s not the OS’s problem nor is that a problem that should
concern the OS. The OS doesn’t own the machine, nor does it
orchestrate anything, it’s just a service program that should do
what it’s told.

As for Norton, I managed SoftICE, BoundsChecker, TrueTime,
TrueCoverage, DriverWorks, DriverNetworks, DriverMonitor, and I
didn’t have any of those issues. The problem, mind you, is the
bizantyne architecture we driver writers have to go through to
get our products working, and let me tell you, the least I have
to negotiate it, the better off I feel.

Alberto.

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”

Sent: Tuesday, August 09, 2005 11:02 PM
Subject: Re:[ntdev] SPAM-LOW: Re: SPAM-LOW: Re: Re:Referencing a
RegKey Object from handle

> You forget one thing. That driver must exist in an environment
> that is not only orchestrated by an OS, but one that is also
> colored and harmonized with by a multitude of other kernel
> drivers provided by a multitude of deveopers and vendors. Most
> of those developers ASSUME that your driver is doing basically
> the same thing as they are, trying to perform the task at hand
> without casuing a ripple that will kill someone else. Your
> driver may work fine in SP2, using undocumented structures and
> function calls but will it in SP3 or Vista? The truth is you
> cannot guarante that you can correct any deltas that may exist
> in SPs before they casue some other vendors driver to crash.
> That is going to lead to uneeded stress and work by the poor
> schmuck trying to do things right. You cannot guarnatee that
> what you do when you decide to run naked through the hardware,
> is not going to cause someone else grief.
>
> Norton AV is proof enough. It has to be uninstalled to
> install to many of the Microsoft released updates, and an
> uninstalled AV is absolutely useless.
>
> –
> the personal opinion of
> Gary G. Little
>
> “Alberto Moreira” wrote in message
> news:xxxxx@ntdev…
>> No, dude, experience. Years of it. A device driver should be
>> machine code on iron - basically it should misbehave because
>> it doesn’t handle the hardware appropriately, or because
>> there’s a programming error, and so on. If a piece of code
>> must spend most of its time negotiating APIs which are
>> basically there to channel a dev out of handling the
>> hardware, sorry, no sympathy from me.
>>
>> Alberto.
>>
>>
>> ----- Original Message -----
>> From: “Arlie Davis”
>> To: “Windows System Software Devs Interest List”
>>
>> Sent: Tuesday, August 09, 2005 11:11 AM
>> Subject: RE: SPAM-LOW: Re: SPAM-LOW: Re: Re:[ntdev]
>> Referencing a RegKey Object from handle
>>
>>
>>> Alberto writes:
>>>
>>>> The more one uses OS services, the more exposure
>>>> one has to nonsense and to uncontrollable behavior.
>>>
>>> Extremist nonsense and fingerpointing. I can cite just as
>>> many examples of
>>> device drivers that do incredibly stupid things than you can
>>> of OS flaws.
>>> And what is the end result of this reasoning? No OS, no
>>> drivers, just apps
>>> talking directly to hardware? Back to the fifties? Perhaps
>>> you should ship
>>> a sealed box, that contains only 100% pure, flawless Moreira
>>> code.
>>>
>>> We must be conservative at all interfaces between
>>> components – between
>>> hardware and software components, and between software
>>> components – to the
>>> degree that is rational and necessary, because those
>>> components change
>>> independently over time. Using undocumented and unsupported
>>> interfaces is
>>> an option, but should only be a last resort, and every
>>> effort should be made
>>> to reduce its impact.
>>>
>>> I suppose you’re still grumpy that the x64 compiler doesn’t
>>> support inline
>>> assembly, too.
>>>
>>> – arlie
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: xxxxx@lists.osr.com
>>> [mailto:xxxxx@lists.osr.com] On Behalf Of
>>> Alberto Moreira
>>> Sent: Monday, August 08, 2005 10:03 PM
>>> To: Windows System Software Devs Interest List
>>> Subject: SPAM-LOW: Re: SPAM-LOW: Re: Re:[ntdev] Referencing
>>> a RegKey Object
>>> from handle
>>>
>>> When it ships, it must be just code running on the machine.
>>> The more one
>>> uses OS services, the more exposure one has to nonsense and
>>> to
>>> uncontrollable behavior. The solution, to me at least, is
>>> obvious: talk to the hardware first, to the OS only when
>>> there’s no
>>> alternative. Minimizing one’s exposure to the OS minimizes
>>> one’s exposure to
>>> events one cannot control.
>>>
>>> So, the only real conservative approach is to talk to the
>>> hardware. That’s
>>> frozen functionality, mind you, it has been around for years
>>> and by and
>>> large it works wonders. Beyond that, it’s basically a kind
>>> of a lottery.
>>>
>>> Alberto.
>>>
>>>
>>> ----- Original Message -----
>>> From: “Arlie Davis”
>>> To: “Windows System Software Devs Interest List”
>>>
>>> Sent: Monday, August 08, 2005 5:05 PM
>>> Subject: RE: SPAM-LOW: Re: Re:[ntdev] Referencing a RegKey
>>> Object from
>>> handle
>>>
>>>
>>>> This isn’t about learning, or debugging. There are
>>>> numerous books on
>>>> Windows internals, targeted at device driver developers and
>>>> developers
>>>> in general. I’m particularly fond of Rajeev Nagar’s File
>>>> System
>>>> Internals, Gary Nebbett’s Windows NT/2000 Native API
>>>> Reference. There
>>>> are also lots of good web resources for this.
>>>>
>>>> This whole argument is about what you ship in your device
>>>> drivers –
>>>> the code that customers place their trust in. All
>>>> experience shows
>>>> that being conservative, especially with kernel-mode
>>>> components, is
>>>> important.
>>>>
>>>> – arlie
>>>
>>>
>>>
>>>
>>> —
>>> Questions? First check the Kernel Driver FAQ at
>>> http://www.osronline.com/article.cfm?id=256
>>>
>>> You are currently subscribed to ntdev as: xxxxx@ieee.org
>>> To unsubscribe send a blank email to
>>> xxxxx@lists.osr.com
>>
>>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Oh please. Strcpy is evil, and they’re doing their best to push people away
from it. It’s marked “obsolete”. It wasn’t removed from the CRT, because
you can’t be C without the CRT.

They can scold us for using it, but the Whidbey
plan to issue “deprecation” warning errors when
strcpy is used shows one heck of a lot of chutzpah.

It shows they have some balls. It shows they aren’t afraid to actually push
people to solve real problems, problems which have, in the last two years,
demonstrably been a HUGE pain in the neck, for all concerned in the
industry.

– arlie

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Tuesday, August 09, 2005 8:07 PM
To: Windows System Software Devs Interest List
Subject: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from handle

Maxim S. Shatskih wrote:

>Windows obsoletes a great bunch of “compliant” drivers. Some stupid
>guys from Microsoft even want to obsolete innocent strcpy(). That’s of
>course an
>
>

Well, strcpy() is obsoleted for a reason, but why RtlCompressBuffer is
undocumented?

Actually, the strcpy() thing is, in my opinion, strong evidence of arrogance
(perhaps accidental) on the part of Microsoft.

Microsoft has every right to obsolete SetPixel if they want. They invented
it. strcpy, on the other hand, does not belong to Microsoft, and never has.
It is part of the ISO C and C++ Standard run-time libraries. Microsoft
cannot arbitrarily deprecate strcpy. They can scold us for using it, but
the Whidbey plan to issue “deprecation”
warning errors when strcpy is used shows one heck of a lot of chutzpah.

I wrote to the Whidbey project manager when this was announced in MSDN
Magazine a few months ago. He basically patted me kindly on the head and
told me not to worry so much. (That’s not actually what he said, of course.
He was politically correct.)


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stonestreetone.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Way back when the FlashPath was a useful device FPGAs were too small and
ASICs with a processor was the only solution. Even with $50k to have Atmel
rev one, it was not that expensive considering the number of people being
employed. We had the ASIC engineer, mechanical engineer, ee for board
design, two firmware engineers, a tech to do the in-house work and six
software engineers for doing the drivers and application software.

The first devices that were done in house with the FPGAs in a big external
box were very expensive. After the ASICs were ready, manufacturing costs in
the US were about $60. After it was done in the Philippines with a major
Japanese hardware company, the costs dropped to less than $15. Making 200k
units per month sure gets the costs reduced in a hurry and the ASIC NRE
becomes a minor consideration.

If the number of devices to be sold is limited, then you can’t reduce the
costs. You might have to ‘fix’ a problem with the hardware in software, but
it is not a good idea and when possible, the hardware should be fixed ASAP.
Of course, I don’t think any modern video card can use anything except
custom ASICs. That is also why only two makers of video cards are left. I
wonder what Intel will do with Vista since I don’t think the normal low end
video in their chipsets can handle its requirements. Maybe that explains
$500+ video cards.

“Don Burn” wrote in message news:xxxxx@ntdev…
> Actually with FPGA and a lot of the approaches that people use this is not
> the case. Even when it is the HW costs are amortized of large amount of
> product. The hardware design costs these days is typically comparable to
> a small multiplier (2-3) of the initial software costs. What kills you is
> the support costs for software which can easily run 10-30 times the cost
> of the initial development over the life of the product.
>
> This is why research has shown that the tie things directly to the
> hardware approach, or the fix things on every revision of the OS model,
> cost companies money and customers.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
>
> “Alberto Moreira” wrote in message news:xxxxx@ntdev…
>> It costs tens of thousands of dollars to rev one version of a chip, and
>> its half life is way shorter.
>>
>> Alberto.
>>
>>
>> ----- Original Message -----
>> From: “Don Burn”
>> Newsgroups: ntdev
>> To: “Windows System Software Devs Interest List”
>> Sent: Wednesday, August 10, 2005 7:42 AM
>> Subject: Re:[ntdev] Re:SPAM-LOW: Re: Re:Referencing a RegKey Object from
>> handle
>>
>>
>>> Alberto,
>>>
>>> Sorry to disalusion you, but there have been a number of studies
>>> that have shown that for most hardware the costs of the associated
>>> software is 5 to 10 times higher than the hardware. The concept that
>>> the hardware is more expensive went out with discrete packages.
>>>
>>>
>>> –
>>> Don Burn (MVP, Windows DDK)
>>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>>> Remove StopSpam from the email to reply
>>>
>>>
>>>
>>>
>>> “Alberto Moreira” wrote in message
>>> news:xxxxx@ntdev…
>>>>
>>>> Hardware is way harder to develop than software, so, umpteen out of
>>>> umpteen plus one cases it’s the software that must accommodate the
>>>> hardware - not the other way around.
>>>>
>>>
>>>
>>>
>>> —
>>> Questions? First check the Kernel Driver FAQ at
>>> http://www.osronline.com/article.cfm?id=256
>>>
>>> You are currently subscribed to ntdev as: xxxxx@ieee.org
>>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>
>
>

strcpy() is really bad. “You can’t be C” only means - the C authors
overlooked this issue, and now this flaw is enshrined as a standard C function.

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

----- Original Message -----
From: “Arlie Davis”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 10, 2005 6:43 PM
Subject: RE: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from handle

> Oh please. Strcpy is evil, and they’re doing their best to push people away
> from it. It’s marked “obsolete”. It wasn’t removed from the CRT, because
> you can’t be C without the CRT.
>
> > They can scold us for using it, but the Whidbey
> > plan to issue “deprecation” warning errors when
> > strcpy is used shows one heck of a lot of chutzpah.
>
> It shows they have some balls. It shows they aren’t afraid to actually push
> people to solve real problems, problems which have, in the last two years,
> demonstrably been a HUGE pain in the neck, for all concerned in the
> industry.
>
> – arlie
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
> Sent: Tuesday, August 09, 2005 8:07 PM
> To: Windows System Software Devs Interest List
> Subject: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from handle
>
> Maxim S. Shatskih wrote:
>
> >>Windows obsoletes a great bunch of “compliant” drivers. Some stupid
> >>guys from Microsoft even want to obsolete innocent strcpy(). That’s of
> >>course an
> >>
> >>
> >
> >Well, strcpy() is obsoleted for a reason, but why RtlCompressBuffer is
> >undocumented?
> >
> >
>
> Actually, the strcpy() thing is, in my opinion, strong evidence of arrogance
> (perhaps accidental) on the part of Microsoft.
>
> Microsoft has every right to obsolete SetPixel if they want. They invented
> it. strcpy, on the other hand, does not belong to Microsoft, and never has.
> It is part of the ISO C and C++ Standard run-time libraries. Microsoft
> cannot arbitrarily deprecate strcpy. They can scold us for using it, but
> the Whidbey plan to issue “deprecation”
> warning errors when strcpy is used shows one heck of a lot of chutzpah.
>
> I wrote to the Whidbey project manager when this was announced in MSDN
> Magazine a few months ago. He basically patted me kindly on the head and
> told me not to worry so much. (That’s not actually what he said, of course.
> He was politically correct.)
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@stonestreetone.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

>> strcpy() is really bad

> Strcpy is evil

To take this a step further, I would say that all is cr*ap, except of urine.
Maxim, you recently advocated using undocumented RtlCompressBuffer. I can
imaging how hard you struggled to call strcpy in a safe manner, comparing
with the safe piece of RtlCompressBuffer cake, and how huge was the relief
in the form of the safe string equivalent! :slight_smile:

Surfing the web, I’ve seen a lot of people saying ‘goto’ is evil, ‘break’ is
evil, and even Microsoft itself was called evil once :slight_smile:

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> strcpy() is really bad. “You can’t be C” only means - the C authors
> overlooked this issue, and now this flaw is enshrined as a standard C
> function.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Arlie Davis”
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, August 10, 2005 6:43 PM
> Subject: RE: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from
> handle
>
>
>> Oh please. Strcpy is evil, and they’re doing their best to push people
>> away
>> from it. It’s marked “obsolete”. It wasn’t removed from the CRT,
>> because
>> you can’t be C without the CRT.
>>
>> > They can scold us for using it, but the Whidbey
>> > plan to issue “deprecation” warning errors when
>> > strcpy is used shows one heck of a lot of chutzpah.
>>
>> It shows they have some balls. It shows they aren’t afraid to actually
>> push
>> people to solve real problems, problems which have, in the last two
>> years,
>> demonstrably been a HUGE pain in the neck, for all concerned in the
>> industry.
>>
>> – arlie
>>
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
>> Sent: Tuesday, August 09, 2005 8:07 PM
>> To: Windows System Software Devs Interest List
>> Subject: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from handle
>>
>> Maxim S. Shatskih wrote:
>>
>> >>Windows obsoletes a great bunch of “compliant” drivers. Some stupid
>> >>guys from Microsoft even want to obsolete innocent strcpy(). That’s of
>> >>course an
>> >>
>> >>
>> >
>> >Well, strcpy() is obsoleted for a reason, but why RtlCompressBuffer is
>> >undocumented?
>> >
>> >
>>
>> Actually, the strcpy() thing is, in my opinion, strong evidence of
>> arrogance
>> (perhaps accidental) on the part of Microsoft.
>>
>> Microsoft has every right to obsolete SetPixel if they want. They
>> invented
>> it. strcpy, on the other hand, does not belong to Microsoft, and never
>> has.
>> It is part of the ISO C and C++ Standard run-time libraries. Microsoft
>> cannot arbitrarily deprecate strcpy. They can scold us for using it, but
>> the Whidbey plan to issue “deprecation”
>> warning errors when strcpy is used shows one heck of a lot of chutzpah.
>>
>> I wrote to the Whidbey project manager when this was announced in MSDN
>> Magazine a few months ago. He basically patted me kindly on the head and
>> told me not to worry so much. (That’s not actually what he said, of
>> course.
>> He was politically correct.)
>>
>> –
>> Tim Roberts, xxxxx@probo.com
>> Providenza & Boekelheide, Inc.
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@stonestreetone.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

> Surfing the web, I’ve seen a lot of people

saying ‘goto’ is evil, ‘break’ is evil, and
even Microsoft itself was called evil once :slight_smile:

Just once? Welcome to the web. ;]

Having done both:

In order of difficulty:

Analog HW
Software
Digital HW

Digital HW, these days, is nothing more the software with a long and
expensive compile. (And I’d argue the ability to get your HW right
before you build it is a lot better than SW these days)

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Wednesday, August 10, 2005 4:42 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re:SPAM-LOW: Re: Re:Referencing a RegKey Object from
handle

Alberto,

Sorry to disalusion you, but there have been a number of studies

that have shown that for most hardware the costs of the associated
software
is 5 to 10 times higher than the hardware. The concept that the
hardware is
more expensive went out with discrete packages.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Alberto Moreira” wrote in message
news:xxxxx@ntdev…
>
> Hardware is way harder to develop than software, so, umpteen out of
> umpteen plus one cases it’s the software that must accommodate the
> hardware - not the other way around.
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nvidia.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

RtlCompressBuffer, goto and break do not decrease the reliability.
strcpy() - does decrease.

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

----- Original Message -----
From: “cristalink”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Thursday, August 11, 2005 1:35 AM
Subject: Re:[ntdev] SPAM-LOW: Re: Re:Referencing a RegKey Object from handle

> >> strcpy() is really bad
> >> Strcpy is evil
>
> To take this a step further, I would say that all is cr*ap, except of urine.
> Maxim, you recently advocated using undocumented RtlCompressBuffer. I can
> imaging how hard you struggled to call strcpy in a safe manner, comparing
> with the safe piece of RtlCompressBuffer cake, and how huge was the relief
> in the form of the safe string equivalent! :slight_smile:
>
> Surfing the web, I’ve seen a lot of people saying ‘goto’ is evil, ‘break’ is
> evil, and even Microsoft itself was called evil once :slight_smile:
>
> –
>
>
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
> > strcpy() is really bad. “You can’t be C” only means - the C authors
> > overlooked this issue, and now this flaw is enshrined as a standard C
> > function.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Arlie Davis”
> > To: “Windows System Software Devs Interest List”
> > Sent: Wednesday, August 10, 2005 6:43 PM
> > Subject: RE: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from
> > handle
> >
> >
> >> Oh please. Strcpy is evil, and they’re doing their best to push people
> >> away
> >> from it. It’s marked “obsolete”. It wasn’t removed from the CRT,
> >> because
> >> you can’t be C without the CRT.
> >>
> >> > They can scold us for using it, but the Whidbey
> >> > plan to issue “deprecation” warning errors when
> >> > strcpy is used shows one heck of a lot of chutzpah.
> >>
> >> It shows they have some balls. It shows they aren’t afraid to actually
> >> push
> >> people to solve real problems, problems which have, in the last two
> >> years,
> >> demonstrably been a HUGE pain in the neck, for all concerned in the
> >> industry.
> >>
> >> – arlie
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: xxxxx@lists.osr.com
> >> [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
> >> Sent: Tuesday, August 09, 2005 8:07 PM
> >> To: Windows System Software Devs Interest List
> >> Subject: SPAM-LOW: Re: [ntdev] Re:Referencing a RegKey Object from handle
> >>
> >> Maxim S. Shatskih wrote:
> >>
> >> >>Windows obsoletes a great bunch of “compliant” drivers. Some stupid
> >> >>guys from Microsoft even want to obsolete innocent strcpy(). That’s of
> >> >>course an
> >> >>
> >> >>
> >> >
> >> >Well, strcpy() is obsoleted for a reason, but why RtlCompressBuffer is
> >> >undocumented?
> >> >
> >> >
> >>
> >> Actually, the strcpy() thing is, in my opinion, strong evidence of
> >> arrogance
> >> (perhaps accidental) on the part of Microsoft.
> >>
> >> Microsoft has every right to obsolete SetPixel if they want. They
> >> invented
> >> it. strcpy, on the other hand, does not belong to Microsoft, and never
> >> has.
> >> It is part of the ISO C and C++ Standard run-time libraries. Microsoft
> >> cannot arbitrarily deprecate strcpy. They can scold us for using it, but
> >> the Whidbey plan to issue “deprecation”
> >> warning errors when strcpy is used shows one heck of a lot of chutzpah.
> >>
> >> I wrote to the Whidbey project manager when this was announced in MSDN
> >> Magazine a few months ago. He basically patted me kindly on the head and
> >> told me not to worry so much. (That’s not actually what he said, of
> >> course.
> >> He was politically correct.)
> >>
> >> –
> >> Tim Roberts, xxxxx@probo.com
> >> Providenza & Boekelheide, Inc.
> >>
> >>
> >> —
> >> Questions? First check the Kernel Driver FAQ at
> >> http://www.osronline.com/article.cfm?id=256
> >>
> >> You are currently subscribed to ntdev as: xxxxx@stonestreetone.com
> >> To unsubscribe send a blank email to xxxxx@lists.osr.com
> >>
> >>
> >>
> >>
> >> —
> >> Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >>
> >> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> >> To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com