home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!microsoft!hexnut!alistair
- From: alistair@microsoft.com (Alistair Banks)
- Subject: Re: Device Handles
- Message-ID: <1992Nov21.182327.1857@microsoft.com>
- Date: 21 Nov 92 18:23:27 GMT
- Organization: Microsoft Corporation
- References: <2636@cronos.metaphor.com>
- Lines: 13
-
- In article <2636@cronos.metaphor.com> navare@Metaphor.COM (Prashant Navare) writes:
- >Hi
- >
- >How does one get an handle to a device? Using OpenFile?
- >
- >A device driver must create a device object (by calling IoCreateDevice) so that
- >it can accept DeviceIoControl calls. The name it specifies while creating the
- >device object is UNICODE. OpenFile accepts only Win3.1 compatible names. Is that
- >a problem?
-
- As per the openfile description, createfile is the preferred win32 api,
- and openfile is only there for win3.1 compatibility -- Alistair
-
-