Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

HOw to use CreateFile() in windows9x?

I try to use createfile in windows9x but i couldn't. the result is -1
In WINNT.4.0 it's work. lpFilename ="\\\\.\\a:" is good in NT but
in 9x doesn't work.
Please, if you try this function and it's work in 9x, send me an example
Thanks!
[274 byte] By [Marginean Lucian] at [2007-11-10 0:20:43]
# 1 Re: HOw to use CreateFile() in windows9x?
>I try to use createfile in windows9x but i couldn't. the result is -1
>In WINNT.4.0 it's work. lpFilename ="\\\\.\\a:" is good in NT but
>in 9x doesn't work.

Marginean,

That's simply not supported on Windows 9x. What are you doing with the
handle returned on Windows NT/2000? Perhaps there's some workaround
for Windows 9x.

Mattias

__________________________________________________
Mattias Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Mattias Sjgren at 2007-11-11 20:03:06 >
# 2 Re: HOw to use CreateFile() in windows9x?
>I try to use createfile in windows9x but i couldn't. the result is -1
>In WINNT.4.0 it's work. lpFilename ="\\\\.\\a:" is good in NT but
>in 9x doesn't work.

Marginean,

That's simply not supported on Windows 9x. What are you doing with the
handle returned on Windows NT/2000? Perhaps there's some workaround
for Windows 9x.

Mattias

__________________________________________________
Mattias Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Mattias Sjgren at 2007-11-11 20:04:05 >