IOCTL problem

Use Google, Genius – You input “windbg download” and THE FIRST HIT you get is:

http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

As far as “the DDK was 3790”… You Google “DDK download” and you’re there. Again, THE FIRST HIT you get.

I know, I know… it’s difficult and finding this stuff takes a miracle.

Peter
OSR

So you chose to use an out of date toolkit, and did not take the 3 minutes
to do the search to find that you could have downloaded WinDBG. Your
stupidity should not be our problem.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

wrote in message news:xxxxx@ntdev…
>@ Mark S. Edwards :
> That’s because in the place I’ve been developed this source code, I didn’t
> have WinDbg, & the DDK was 3790.x & didn’t have windbg included … . at
> least I didn’t find anything … .
>
>
>
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 5385 (20100821)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 5385 (20100821)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

It’s not difficult to find Windows debugging tools or the latest
DDK. They’re available from Microsoft Download, Microsoft Connect or
WHDC. Your lack of acumen in finding these things - all regularly
mentioned in the OSR list archives - is just another facet of your
obvious inability to do your homework.

The goodwill of this list is gained by showing that you have done
your homework and made some attempt at understanding and solving the
problem in front of you. Right now your good will account is well in
to deficit. Fortunately for you, Tim Roberts has a much kinder heart
than most of the rest of us.

Mark.

At 22:23 21/08/2010, xxxxx@yahoo.com wrote:

@ Mark S. Edwards :
That’s because in the place I’ve been developed this source code, I
didn’t have WinDbg, & the DDK was 3790.x & didn’t have windbg
included … . at least I didn’t find anything … .

Powershell, imo, suffers from a common msft tool fate - big, bloated and
needlessly weird in ways that violate what everyone is used to. With SC,
it’s the ‘=’ thing; with powershell, it’s the use of ‘-’ in command names.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pavel A.
Sent: Saturday, August 21, 2010 5:09 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] IOCTL problem

“Mark S. Edwards” wrote in message
news:xxxxx@ntdev…

> Very true, it’s taken Microsoft the best part of 25 years to learn
> that serious data centre administration requires proper command line
> tools that can be scripted. Several generations of their command line
> utilities were obviously written by people who couldn’t understand why
> the gui wasn’t a universal solution.
>

And then… they invented Powershell, which may be perfect from this POV,
but not terribly successful.
MS just has no luck in most of their inventions :frowning:

The biggest problem with sc is not the spaces in command line, it’s that it
won’t return proper exit status on error.
So it is hard to test if the command worked in a batch.

– pa


NTDEV is sponsored by OSR

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

@ Don Burn :
Seems you’re so idiot ! :slight_smile:
If it’s possible to download the WinDbg from microsoft website with a shit slow connection, then there was no reason to put the shit issue here & a fool like you just give me the answer how to Search Google or any other search engine for windbg, so I’m strictly recommend you to put your mouth shut
when you don’t know anything , alright !?

@ to other people who replied at this topic :

Thanks for your replies, the only important thing is : the problem solved !

@ Mark S. Edwards :
Thanks for your advices, all the things your mentioned are correct about me.
so can this satisfy you?

I learned one thing about this list, you should never ask your question before using windbg, even in the situations downloading is impossible to you .
so I recommend to add this as a rule for this list … .

@ Mark S. Edwards :
Also one thing to mention about Tim Roberts,
It’s more related to the identity of people, help others to different situations or not to help !
So, it’s easy , I recommend to just count your posts related to issue that I had & then count the Tim Robert’s posts … .
I think most of the people forgot the days they were newbies in the filed they working on right now !

So, I didn’t post anything on this topic, just thanks to the people who helped to solve this problem & a recommendation to the rest who think they’re so smart : Just don’t say about the things your not totally aware about !

wrote in message news:xxxxx@ntdev…
>@ Don Burn :

> If it’s possible to download the WinDbg from microsoft website with a shit
> slow connection, then there was no reason to put the shit issue here & a
> fool like you just give me the answer how to Search Google or any other
> search engine for windbg, so I’m strictly recommend you to put your mouth
> shut

Did you even try to download it? It isn’t that huge, and the download can
be restarted, in fact I have downloaded it at slightly higher than modem
speeds. So I suspect that like everything else on this subject you took
the dumb way out and did not try to do things right. Note: I also pointed
out to you that there is a good sample that was even in the old DDK you were
using that would have answered you questions without wasting everyones time.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

Information from ESET NOD32 Antivirus, version of virus signature database 5385 (20100821)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

… ANOTHER rule that we should probably add is not to use the name Genius in the forum unless you ARE one.

Peter
OSR

This failure is not limited to this NG. I regularly find people in the MFC
newsgroups who say “My program crashed, what went wrong?”. Of course, they
can’t tell a runtime error from an exception from an ASSERT failure, and in
all cases, if we ask “what did you learn from the debugger?” they answer is
“What’s a debugger?” or words to that effect. Then it is a challenge to get
them to understand what a stack backtrace is, and how to examine variables
and parameters. Debuggers remain one of those dark mysteries. I’ve even
known people who think debuggers are a crutch for those incompetent to read
code and deduce behavior by inspection.

I have no idea why there is such an opposition to the concept of using a
debugger, but it seems to be one of the failures of new programmers.
joe

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Saturday, August 21, 2010 10:00 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] IOCTL problem

… ANOTHER rule that we should probably add is not to use the name
Genius in the forum unless you ARE one.

Peter
OSR


NTDEV is sponsored by OSR

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


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

I can offer two reasons why I think that there is opposition. The first is
that the documentation hasn’t been maintained in years and completely sucks.
The second is that debuggers are quite complicated and I think that when
combined with the former, they form the steepest part of the learning curve
(initially) so I can see how some might feel like they would be fine were it
not for this damn debugger.

Totally incorrect, of course, but I think that it’s an emotional issue.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Joseph M. Newcomer
Sent: Saturday, August 21, 2010 10:37 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] IOCTL problem

This failure is not limited to this NG. I regularly find people in the MFC
newsgroups who say “My program crashed, what went wrong?”. Of course, they
can’t tell a runtime error from an exception from an ASSERT failure, and in
all cases, if we ask “what did you learn from the debugger?” they answer is
“What’s a debugger?” or words to that effect. Then it is a challenge to get
them to understand what a stack backtrace is, and how to examine variables
and parameters. Debuggers remain one of those dark mysteries. I’ve even
known people who think debuggers are a crutch for those incompetent to read
code and deduce behavior by inspection.

I have no idea why there is such an opposition to the concept of using a
debugger, but it seems to be one of the failures of new programmers.
joe

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Saturday, August 21, 2010 10:00 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] IOCTL problem

[quote]
I learned one thing about this list, you should never ask your question
before using windbg …
so I recommend to add this as a rule for this list [/quote]

… ANOTHER rule that we should probably add is not to use the name
Genius in the forum unless you ARE one.

Peter
OSR


NTDEV is sponsored by OSR

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


This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


NTDEV is sponsored by OSR

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

most of the ps commands are abbreviated to stuff without ‘-’, but that is a
minor flaw. The fact that you have to jump through hoops just to run a
script is fatal. Every now and then I find some useful ps script, and then I
have to remember all the gyrations to get it to actually execute. It a very
powerful scripting language that is basically useless.

Mark Roddy

On Sat, Aug 21, 2010 at 6:07 PM, M. M. O’Brien <
xxxxx@gmail.com> wrote:

Powershell, imo, suffers from a common msft tool fate - big, bloated and
needlessly weird in ways that violate what everyone is used to. With SC,
it’s the ‘=’ thing; with powershell, it’s the use of ‘-’ in command names.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pavel A.
Sent: Saturday, August 21, 2010 5:09 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] IOCTL problem

“Mark S. Edwards” wrote in message
> news:xxxxx@ntdev…
> …
> > Very true, it’s taken Microsoft the best part of 25 years to learn
> > that serious data centre administration requires proper command line
> > tools that can be scripted. Several generations of their command line
> > utilities were obviously written by people who couldn’t understand why
> > the gui wasn’t a universal solution.
> >
>
> And then… they invented Powershell, which may be perfect from this POV,
> but not terribly successful.
> MS just has no luck in most of their inventions :frowning:
>
> The biggest problem with sc is not the spaces in command line, it’s that it
> won’t return proper exit status on error.
> So it is hard to test if the command worked in a batch.
>
> – pa
>
>
>
> —
> NTDEV is sponsored by OSR
>
> 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
>
> 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
>

+1

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Roddy
Sent: Saturday, August 21, 2010 10:56 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] IOCTL problem

most of the ps commands are abbreviated to stuff without ‘-’, but that is a
minor flaw. The fact that you have to jump through hoops just to run a
script is fatal. Every now and then I find some useful ps script, and then I
have to remember all the gyrations to get it to actually execute. It a very
powerful scripting language that is basically useless.

Mark Roddy

On Sat, Aug 21, 2010 at 6:07 PM, M. M. O’Brien
wrote:

Powershell, imo, suffers from a common msft tool fate - big, bloated and
needlessly weird in ways that violate what everyone is used to. With SC,
it’s the ‘=’ thing; with powershell, it’s the use of ‘-’ in command names.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pavel A.
Sent: Saturday, August 21, 2010 5:09 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] IOCTL problem

“Mark S. Edwards” wrote in message
news:xxxxx@ntdev…

> Very true, it’s taken Microsoft the best part of 25 years to learn
> that serious data centre administration requires proper command line
> tools that can be scripted. Several generations of their command line
> utilities were obviously written by people who couldn’t understand why
> the gui wasn’t a universal solution.
>

And then… they invented Powershell, which may be perfect from this POV,
but not terribly successful.
MS just has no luck in most of their inventions :frowning:

The biggest problem with sc is not the spaces in command line, it’s that it
won’t return proper exit status on error.
So it is hard to test if the command worked in a batch.

– pa



NTDEV is sponsored by OSR

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

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 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

@ Peter :
lol, it’s so obvious : my username Genius, Geni or such a like stuff somewhat burned you :slight_smile: lol … .
Around internet , forums or anything else anybody could choice a username for himself , just learn it!
So if you have any problem with my nick, you could delete it , then choice it for ya, I think it’s a better solution to you .

HaHa!
What's your opinion if someone give himself a name like: IAMGod!

... ANOTHER rule that we should probably add is not to use the name Genius in the forum unless you ARE one.
Peter
OSR

NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:

To unsubscribe, visit the List Server section of OSR Online at ListServer/Forum

That he or she has exceedingly bad taste or a psychological disorder.

Date: Sun, 22 Aug 2010 21:09:02 +0800
From: xxxxx@gmail.com
To: xxxxx@lists.osr.com
Subject: Re: RE:[ntdev] IOCTL problem

HaHa!
What’s your opinion if someone give himself a name like: IAMGod!

PeterGV would send lightning bolt?

Thomas


From: “changpei1982”
Sent: Sunday, August 22, 2010 9:09 AM
To: “Windows System Software Devs Interest List”
Subject: Re: RE:[ntdev] IOCTL problem

> HaHa!
> What’s your opinion if someone give himself a name like: IAMGod!
>
>
>>


> … ANOTHER rule that we should probably add is not to use the name
> Genius in the forum unless you ARE one.
> Peter
> OSR
> —
> NTDEV is sponsored by OSR
> 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
>
> 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

Nop, it’s time for garbage collection to be more aggressive!. Meaning, collect the garbage, smash it or compact it, then send for recycling. Basically trash collection, and send to recycle …

How do one does in this case ? Obvious, push the button to make it trash, and never expect to get it back again.

-pro

On Aug 22, 2010, at 6:16 AM, Thomas F. Divine wrote:

PeterGV would send lightning bolt?

Thomas


From: “changpei1982”
> Sent: Sunday, August 22, 2010 9:09 AM
> To: “Windows System Software Devs Interest List”
> Subject: Re: RE:[ntdev] IOCTL problem
>
>> HaHa!
>> What’s your opinion if someone give himself a name like: IAMGod!
>>
>>
>>>


>> … ANOTHER rule that we should probably add is not to use the name Genius in the forum unless you ARE one.
>> Peter
>> OSR
>> —
>> NTDEV is sponsored by OSR
>> 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
>>
>> 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
>
> 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

> …by the Object Manager. But, and I am sure of THIS, the low two bits are used by some drivers in the

system to signify various things. The textbook case in AFD.

Really? So, AFD interprets the handle values? is it in the case where handles are passed to it via IOCTL buffers?

I’m not sure what you mean by kernel handle …

Handle known to the kernel. All Win32 handles except IIRC consoles.

(As an aside, I am highly skeptical that zero is actually a valid handle value

This was my point.

If it is not valid for events - then why for files?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

>To be fair, our friend sc.exe started out as test code many, many years ago (I believe it was even an

SDK sample for a few releases

In Support Tools IIRC.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

> lol, it’s so obvious : my username Genius, Geni or such a like stuff somewhat burned you :slight_smile: lol … .

Around internet , forums or anything else anybody could choice a username for himself , just learn it!

If you want to be a cause of fun of this whole forum - then continue.

Very small amount of people on this forum use nicknames, BTW.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com