home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / win32 / 2098 < prev    next >
Encoding:
Text File  |  1992-11-21  |  874 b   |  24 lines

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