Getting handle to IrDA device

Hi,

I have a Infrared device attached to my system and the driver is loaded.

Now When run the object viewer I see a symbolic link \Device\IrDA, but when
I use the same name in CreateFile() to get the handle it is failing.

Could anyone suggest me about what could be the problem.

Thanks,
Kedar.

kedar wrote:

Hi,

I have a Infrared device attached to my system and the driver is loaded.

Now When run the object viewer I see a symbolic link \Device\IrDA, but when
I use the same name in CreateFile() to get the handle it is failing.

Could anyone suggest me about what could be the problem.

The kernel namespace is different from the user-mode namespace. Are you
trying to open \.\IrDA, which would be represented in C as “\\.\IrDA”?