Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1616 connectés 

  FORUM HardWare.fr
  Programmation

  [ c ] : chui ds la m...

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[ c ] : chui ds la m...

n°99458
MAX_BAUD
Posté le 12-02-2002 à 16:18:38  profilanswer
 

Quand je fais :
 if ((COMDEV( npTTYInfo ) =
      CreateFile( szPort, GENERIC_READ | GENERIC_WRITE,
                  0,                    // exclusive access
                  NULL,                 // no security attrs
                  OPEN_EXISTING,
//                  FILE_ATTRIBUTE_NORMAL |
                  FILE_FLAG_OVERLAPPED, // overlapped I/O
                  NULL )) == (HANDLE) -1 )
      return ( FALSE ) ;
   else
   {
   
   
 
     
      // get any early notifications
      SetCommMask( COMDEV( npTTYInfo ), /*EV_RXCHAR*/0 ) ;
 
      // setup device buffers
      SetupComm( COMDEV( npTTYInfo ), 4096, 4096 ) ;
 
      // purge any information in the buffer
      PurgeComm( COMDEV( npTTYInfo ), PURGE_TXABORT | PURGE_RXABORT |
                                      PURGE_TXCLEAR | PURGE_RXCLEAR ) ;
 
      // set up for overlapped I/O
      CommTimeOuts.ReadIntervalTimeout = 0xFFFFFFFF ;
      CommTimeOuts.ReadTotalTimeoutMultiplier = 0 ;
      CommTimeOuts.ReadTotalTimeoutConstant = 1000 ;
      CommTimeOuts.WriteTotalTimeoutMultiplier = 0 ;
      CommTimeOuts.WriteTotalTimeoutConstant = 1000 ;
      SetCommTimeouts( COMDEV( npTTYInfo ), &CommTimeOuts ) ;
   }
 
 
est ce que le Handle de mon CreatFile peut me servir pour configurer mon modem??

mood
Publicité
Posté le 12-02-2002 à 16:18:38  profilanswer
 

n°99820
MAX_BAUD
Posté le 13-02-2002 à 11:50:50  profilanswer
 

t'en py pour moi


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [ c ] : chui ds la m...

 

Sujets relatifs
UBB6 j'aurai besoin d'aide svp (chui paumé) 
Plus de sujets relatifs à : [ c ] : chui ds la m...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR