I am trying to create a device handle using CreateFile function. This handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
Also if there is more than one device, is it possible to have an array of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
Harsha Inamdar wrote:
I am trying to create a device handle using CreateFile function. This
handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
Follow this with a call to GetLastError to find out what the problem was.
if( Device_Handle == INVALID_HANDLE_VALUE )
{
char sz[80];
sprintf( sz, “CreateFile failed, error %d”, GetLastError() );
MessageBox( 0, sz, “CreateFile”, MB_OK );
return;
}
Also if there is more than one device, is it possible to have an array
of device handles?
HANDLE Device_Handle[3] is it possible?
Sure, but it requires three separate calls to CreateFile, and you would
have to have some way to distinguish between the instances in the file
name. You can’t magically open all 3 at once.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Do the next logical step. If it returns INVALID_HANDLE_VALUE, check
GetLastError(). That will tell you *why* the call is failing.
Once you have a handle to the file object, you can do whatever you want with
it. You can stick it in arrays. You can count the 1 bits. You can heap
sort’em, quick sort’em, merge sort’em, and even bubble sort’em. You can
find the largest prime that is less than or equal to it. You can cast it to
a double and then raise it to a power. You can…
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 5:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This handle
is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
Also if there is more than one device, is it possible to have an array of
device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:t=39663/*http://voice.yahoo.com></http:>
I hope you checked if the file open succeeded by comparing return of
CreateFile to INVALID_HANDLE_VALUE. If the create fails you can get more
information by calling GetLastError
what do you mean by array of handles? Make one DeviceIoControl call
using an array of handles? Thats not possible - please see the function
prototype. You can overlap calls using the overlapped structure to more
than one devices if you are worried about blocking.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This
handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the
system.
Also if there is more than one device, is it possible to have an array
of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
rates. — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:m/evt=39663/*http://voice.yahoo.com></http:>
You might try dropping FILE_SHARE_READ. IIRC the I/O manager doesn’t
let you specify any sharing for devices (exclusivity is controlled by
the driver, not by the app for devices).
Yes. A HANDLE is a fixed-size data type so you can declare an array of
them.
-p
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This
handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the
system.
Also if there is more than one device, is it possible to have an array
of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
rates. — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:m/evt=39663/*http://voice.yahoo.com></http:>
I hope you checked if the file open succeeded by comparing return of
CreateFile to INVALID_HANDLE_VALUE. If the create fails you can get more
information by calling GetLastError
what do you mean by array of handles? Make one DeviceIoControl call
using an array of handles? Thats not possible - please see the function
prototype. You can overlap calls using the overlapped structure to more
than one devices if you are worried about blocking.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This
handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the
system.
Also if there is more than one device, is it possible to have an array
of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
rates. — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:m/evt=39663/*http://voice.yahoo.com></http:>
> I/O manager doesn’t let you specify any sharing for devices
No, it’s ok to open
sprintf(volumeName, “\\.\%c:”, driveLetter); // ends up in smth like “\.\C:”
DWORD le = S_OK;
hVolume = CreateFileA(volumeName, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
if(hVolume == INVALID_HANDLE_VALUE) {
le = GetLastError();
. . .
}
. . .
Same is true for
sprintf(driveName, “\\.\PHYSICALDRIVE%d”, driveNumber); // ends up in smth like “\.\PHYSICALDRIVE0”
But what kind of device Harsha opens, I don’t know, so the idea to drop sharing may help.
[I suspect that this is not the real reason of failure though…]
----- Original Message -----
From: Peter Wieland
To: Windows System Software Devs Interest List
Sent: Wednesday, April 05, 2006 5:52 PM
Subject: RE: [ntdev] Handle couldn’t be created to the device.
You might try dropping FILE_SHARE_READ. IIRC the I/O manager doesn’t let you specify any sharing for devices (exclusivity is controlled by the driver, not by the app for devices).
Yes. A HANDLE is a fixed-size data type so you can declare an array of them.
-p
------------------------------------------------------------------------------
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
Also if there is more than one device, is it possible to have an array of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
------------------------------------------------------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
storage devices are magical beasts, so you can’t use those as a generic
example.
-p
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of sh_alex
Sent: Wednesday, April 05, 2006 4:51 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Handle couldn’t be created to the device.
I/O manager doesn’t let you specify any sharing for devices
No, it’s ok to open
sprintf(volumeName, “\\.\%c:”, driveLetter); // ends up in
smth like “\.\C:”
DWORD le = S_OK;
hVolume = CreateFileA(volumeName, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, 0,
OPEN_EXISTING, 0, 0);
if(hVolume == INVALID_HANDLE_VALUE) {
le = GetLastError();
. . .
}
. . .
Same is true for
sprintf(driveName, “\\.\PHYSICALDRIVE%d”, driveNumber); //
ends up in smth like “\.\PHYSICALDRIVE0”
But what kind of device Harsha opens, I don’t know, so the idea to drop
sharing may help.
[I suspect that this is not the real reason of failure though…]
----- Original Message -----
From: Peter Wieland mailto:xxxxx
To: Windows System Software Devs Interest List
mailto:xxxxx
Sent: Wednesday, April 05, 2006 5:52 PM
Subject: RE: [ntdev] Handle couldn’t be created to the device.
You might try dropping FILE_SHARE_READ. IIRC the I/O manager
doesn’t let you specify any sharing for devices (exclusivity is
controlled by the driver, not by the app for devices).
Yes. A HANDLE is a fixed-size data type so you can declare an
array of them.
-p
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function.
This handle is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into
the system.
Also if there is more than one device, is it possible to have an
array of device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone
call rates. — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:m/evt=39663/*http://voice.yahoo.com>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></mailto:xxxxx></mailto:xxxxx>
I am getting Errorcode = 87.
DWORD Errorcode = GetLastError();
What is error code 87?
Thanks,
Harsha
Arlie Davis wrote:
Do the next logical step. If it returns INVALID_HANDLE_VALUE, check
GetLastError(). That will tell you why the call is failing.
Once you have a handle to the file object, you can do whatever you want with
it. You can stick it in arrays. You can count the 1 bits. You can heap
sort’em, quick sort’em, merge sort’em, and even bubble sort’em. You can
find the largest prime that is less than or equal to it. You can cast it to
a double and then raise it to a power. You can…
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 5:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function. This handle
is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
Also if there is more than one device, is it possible to have an array of
device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
t=39663/*http://voice.yahoo.com>
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
Aren’t you able to do the simplest developers tasks? Sorry but this is drivers developer list and not basic course for Win32 programmers.
net helpmsg 87
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Harsha Inamdar[SMTP:xxxxx@yahoo.com]
Reply To: Windows System Software Devs Interest List
Sent: Thursday, April 06, 2006 3:41 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Handle couldn’t be created to the device.
I am getting Errorcode = 87.
DWORD Errorcode = GetLastError();
What is error code 87?
Thanks,
Harsha
Arlie Davis wrote:
>
> Do the next logical step. If it returns INVALID_HANDLE_VALUE, check
> GetLastError(). That will tell you why the call is failing.
>
> Once you have a handle to the file object, you can do whatever you want with
> it. You can stick it in arrays. You can count the 1 bits. You can heap
> sort’em, quick sort’em, merge sort’em, and even bubble sort’em. You can
> find the largest prime that is less than or equal to it. You can cast it to
> a double and then raise it to a power. You can…
>
>
>
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
> Sent: Wednesday, April 05, 2006 5:32 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Handle couldn’t be created to the device.
>
>
> I am trying to create a device handle using CreateFile function. This handle
> is given as a input to DeviceIoControl function.
>
> Device_Handle =CreateFile(
> pDeviceInterfaceDetailData->DevicePath,
> GENERIC_READ,
> FILE_SHARE_READ,
> NULL,
> OPEN_EXISTING,
> 0,
> NULL
> )
>
> But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
>
> Also if there is more than one device, is it possible to have an array of
> device handles?
>
> HANDLE Device_Handle[3] is it possible?
>
> Thanks,
> Harsha
>
>
>
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> t=39663/*http://voice.yahoo.com>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> _____
>
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer http:
></http:>
User formatMessage to find out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk4
0/html/cerefformatmessage.asp
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
Sent: Wednesday, April 05, 2006 6:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Handle couldn’t be created to the device.
I am getting Errorcode = 87.
DWORD Errorcode = GetLastError();
What is error code 87?
Thanks,
Harsha
Arlie Davis wrote:
Do the next logical step. If it returns INVALID_HANDLE_VALUE,
check
GetLastError(). That will tell you why the call is failing.
Once you have a handle to the file object, you can do whatever
you want with
it. You can stick it in arrays. You can count the 1 bits. You
can heap
sort’em, quick sort’em, merge sort’em, and even bubble sort’em.
You can
find the largest prime that is less than or equal to it. You can
cast it to
a double and then raise it to a power. You can…
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harsha
Inamdar
Sent: Wednesday, April 05, 2006 5:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Handle couldn’t be created to the device.
I am trying to create a device handle using CreateFile function.
This handle
is given as a input to DeviceIoControl function.
Device_Handle =CreateFile(
pDeviceInterfaceDetailData->DevicePath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL
)
But it returns INVALID_HANDLE_VALUE. The driver is loaded into
the system.
Also if there is more than one device, is it possible to have an
array of
device handles?
HANDLE Device_Handle[3] is it possible?
Thanks,
Harsha
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone
call rates.
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe,
visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
t=39663/*http://voice.yahoo.com>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
________________________________
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call
rates. — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:m/evt=39663/*http://voice.yahoo.com></http:>
Thanks & sorry. I am new in this field. I don’t know many things. If you can please suggest me a good book for Win32 programming, it will be a very good help.
Thanks again,
Harsha
Michal Vodicka wrote:
Aren’t you able to do the simplest developers tasks? Sorry but this is drivers developer list and not basic course for Win32 programmers.
net helpmsg 87
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
> ----------
> From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Harsha Inamdar[SMTP:xxxxx@yahoo.com]
> Reply To: Windows System Software Devs Interest List
> Sent: Thursday, April 06, 2006 3:41 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Handle couldn’t be created to the device.
>
> I am getting Errorcode = 87.
>
> DWORD Errorcode = GetLastError();
>
> What is error code 87?
>
> Thanks,
> Harsha
>
> Arlie Davis wrote:
>
> Do the next logical step. If it returns INVALID_HANDLE_VALUE, check
> GetLastError(). That will tell you why the call is failing.
>
> Once you have a handle to the file object, you can do whatever you want with
> it. You can stick it in arrays. You can count the 1 bits. You can heap
> sort’em, quick sort’em, merge sort’em, and even bubble sort’em. You can
> find the largest prime that is less than or equal to it. You can cast it to
> a double and then raise it to a power. You can…
>
>
>
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
> Sent: Wednesday, April 05, 2006 5:32 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Handle couldn’t be created to the device.
>
>
> I am trying to create a device handle using CreateFile function. This handle
> is given as a input to DeviceIoControl function.
>
> Device_Handle =CreateFile(
> pDeviceInterfaceDetailData->DevicePath,
> GENERIC_READ,
> FILE_SHARE_READ,
> NULL,
> OPEN_EXISTING,
> 0,
> NULL
> )
>
> But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
>
> Also if there is more than one device, is it possible to have an array of
> device handles?
>
> HANDLE Device_Handle[3] is it possible?
>
> Thanks,
> Harsha
>
>
>
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> t=39663/*http://voice.yahoo.com>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> _____
>
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Sorry, I never read any. Win32 can be easily learnt from MSDN docs and samples. But my point was different. This list is for discussions about NT driver programming, not about Win32. For this purpose please subscribe different list or newsgroup (try Google to find some).
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Harsha Inamdar[SMTP:xxxxx@yahoo.com]
Reply To: Windows System Software Devs Interest List
Sent: Thursday, April 06, 2006 4:26 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Handle couldn’t be created to the device.
Thanks & sorry. I am new in this field. I don’t know many things. If you can please suggest me a good book for Win32 programming, it will be a very good help.
Thanks again,
Harsha
Michal Vodicka wrote:
>
> Aren’t you able to do the simplest developers tasks? Sorry but this is drivers developer list and not basic course for Win32 programmers.
>
> net helpmsg 87
>
> Best regards,
>
> Michal Vodicka
> UPEK, Inc.
> [xxxxx@upek.com, http://www.upek.com]
>
>
> > ----------
> > From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Harsha Inamdar[SMTP:xxxxx@yahoo.com]
> > Reply To: Windows System Software Devs Interest List
> > Sent: Thursday, April 06, 2006 3:41 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Handle couldn’t be created to the device.
> >
> > I am getting Errorcode = 87.
> >
> > DWORD Errorcode = GetLastError();
> >
> > What is error code 87?
> >
> > Thanks,
> > Harsha
> >
> > Arlie Davis wrote:
> >
> > Do the next logical step. If it returns INVALID_HANDLE_VALUE, check
> > GetLastError(). That will tell you why the call is failing.
> >
> > Once you have a handle to the file object, you can do whatever you want with
> > it. You can stick it in arrays. You can count the 1 bits. You can heap
> > sort’em, quick sort’em, merge sort’em, and even bubble sort’em. You can
> > find the largest prime that is less than or equal to it. You can cast it to
> > a double and then raise it to a power. You can…
> >
> >
> >
> >
> >
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Harsha Inamdar
> > Sent: Wednesday, April 05, 2006 5:32 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Handle couldn’t be created to the device.
> >
> >
> > I am trying to create a device handle using CreateFile function. This handle
> > is given as a input to DeviceIoControl function.
> >
> > Device_Handle =CreateFile(
> > pDeviceInterfaceDetailData->DevicePath,
> > GENERIC_READ,
> > FILE_SHARE_READ,
> > NULL,
> > OPEN_EXISTING,
> > 0,
> > NULL
> > )
> >
> > But it returns INVALID_HANDLE_VALUE. The driver is loaded into the system.
> >
> > Also if there is more than one device, is it possible to have an array of
> > device handles?
> >
> > HANDLE Device_Handle[3] is it possible?
> >
> > Thanks,
> > Harsha
> >
> >
> >
> > How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
> > — Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> > Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
> > t=39663/*http://voice.yahoo.com>
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer>
> >
> >
> >
> >
> >
> > How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
> >
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>
>
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls http: to the US (and 30+ countries) for 2?/min or less. — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
></http:>