Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Subject: RE: Driver help Date: Mon, 18 Aug 2003 11:13:27 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Kiran Bacche" To: "Marcel Telka" Cc: X-OriginalArrivalTime: 18 Aug 2003 05:43:28.0039 (UTC) FILETIME=[A61D3370:01C3654B] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7I5hk621966 The ioperm package was very helpful. Thanks for that. U was now able to compile a sample driver into a .sys file. I used the SCOpenManager and CreateProcess to get it loaded. So in effeect, when a write an application program hPort = CreateFile(  "\\DosDevices\\mydevice",  0,  0,  NULL,  0,  0,  NULL);  if (hPort == (HANDLE)-1)  {  printf("Open failed :%lx\n",hCommPort);  return -1;  } I thought it would succeed. But CreateFile failed! What may be the reason? A snippet of the CYGWIN code for win driver is as follows: RtlInitUnicodeString( &DeviceName, L"\\Device\\mydevice" ); RtlInitUnicodeString( &SymbolicLinkName, L"\\DosDevices\\mydevice" ); IoCreateDevice( DriverObject, 0, &DeviceName, ... IoCreateSymbolicLink( &SymbolicLinkName, &DeviceName... Thanks Kiran -----Original Message----- From: Kiran Bacche Sent: Wednesday, August 13, 2003 5:57 PM To: 'Marcel Telka' Cc: cygwin AT cygwin DOT com Subject: RE: Driver help From where can I download/see the "ioperm" package ? Thanks Kiran -----Original Message----- From: Marcel Telka [mailto:marcel AT telka DOT sk] Sent: Wednesday, August 13, 2003 5:58 PM To: Kiran Bacche Cc: cygwin AT cygwin DOT com Subject: Re: Driver help On Wed, Aug 13, 2003 at 05:53:16PM +0530, Kiran Bacche wrote: > Wow that's geat. > I have an isr.c file (actually a device driver) > I could successfully compile it to generate a ".o" file. > But how can I convert it to a ".sys" file in CYGWIN environment. Please read the ioperm sources... -- +-------------------------------------------+ | Marcel Telka e-mail: marcel AT telka DOT sk | | homepage: http://telka.sk/ | | jabber: marcel AT jabber DOT sk | +-------------------------------------------+ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/