Changeset 28 for branches/1.0/src/splpd.c
- Timestamp:
- Apr 21, 2010, 8:26:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/src/splpd.c
r27 r28 30 30 ULONG ulBootDrive; 31 31 ULONG rcLoadMod; 32 CHAR 32 CHAR szPathName[260]; 33 33 34 34 if (!pulReturned || … … 67 67 } 68 68 69 70 71 69 /* 70 ** check number of ports info we can fit in supplied buffer 71 */ 72 72 *pulTotal = MAX_PORTS; 73 73 *pcbRequired = CalcBufLength (hab, hModule); 74 74 *pulReturned = NumPortsCanFit (hab, hModule, cbBuf); 75 75 76 77 78 76 /* 77 ** return error if we can not fit one port. 78 */ 79 79 if (!(*pulReturned)) 80 80 { … … 372 372 PVOID pPrtOpenStruct) 373 373 { 374 APIRET rc;375 ULONG ulAction = 0;/* Action taken by DosOpen */376 ULONG ulBytesRead = 0;/* Number of bytes read by DosRead */377 ULONG ulWrote = 0;/* Number of bytes written by DosWrite */378 ULONG ulLocal = 0;/* File pointer position after DosSetFilePtr */379 char szTemp[ 256];380 char tmp[256];381 ULONG pcbWritten ;382 USHORT i;383 HFILE control;384 char filename[256];374 APIRET rc; 375 ULONG ulAction = 0; /* Action taken by DosOpen */ 376 ULONG ulBytesRead = 0; /* Number of bytes read by DosRead */ 377 ULONG ulWrote = 0; /* Number of bytes written by DosWrite */ 378 ULONG ulLocal = 0; /* File pointer position after DosSetFilePtr */ 379 char szTemp[ 256]; 380 char tmp[256]; 381 ULONG pcbWritten ; 382 USHORT i; 383 HFILE control; 384 char filename[256]; 385 385 DATETIME dt; 386 char spool_dir[256];387 PEAOP2 pEABuf = NULL;386 char spool_dir[256]; 387 PEAOP2 pEABuf = NULL; 388 388 389 389 … … 404 404 sprintf(filename,"%s\\UNI\\%02d_%02d_%02d_%02d_%s",spool_dir,dt.hours,dt.minutes,dt.seconds,dt.hundredths,pszPortName); 405 405 rc = DosOpen(filename, 406 phFile, /* File handle */406 phFile, /* File handle */ 407 407 &ulAction, /* Action taken */ 408 100L, 409 FILE_ARCHIVED | FILE_NORMAL, 408 100L, /* File primary allocation */ 409 FILE_ARCHIVED | FILE_NORMAL, /* File attribute */ 410 410 OPEN_ACTION_CREATE_IF_NEW | 411 OPEN_ACTION_OPEN_IF_EXISTS, 411 OPEN_ACTION_OPEN_IF_EXISTS, /* Open function type */ 412 412 OPEN_FLAGS_NOINHERIT | 413 413 OPEN_SHARE_DENYNONE | 414 414 OPEN_ACCESS_READWRITE, /* Open mode of the file */ 415 0L); /* No extended attribute */415 0L); /* No extended attribute */ 416 416 /* DosWrite(*phFile,pszPSHeader,strlen(pszPSHeader),&cbHeader); */ 417 417 sprintf(szTemp,"PM_%s",pszPortName); … … 484 484 ULONG nbr_lu; 485 485 ULONG ulAction; 486 char szTemp[256];487 HFILE control;488 char binfile[256];489 char arg[256];490 char *j_parms;491 char j_id[3];492 char parameters[256];493 char workingdir[256] ;494 char j_title[256];495 char j_copies[3];496 char j_options[8];497 char filename[256];498 char ip_add[256];499 char queue_name[256];500 char workgroup[256];501 char username[256];502 char password_enc[256];503 char password_dec[256];504 char errorstr[256];486 char szTemp[256]; 487 HFILE control; 488 char binfile[256]; 489 char arg[256]; 490 char *j_parms; 491 char j_id[3]; 492 char parameters[256]; 493 char workingdir[256] ; 494 char j_title[256]; 495 char j_copies[3]; 496 char j_options[8]; 497 char filename[256]; 498 char ip_add[256]; 499 char queue_name[256]; 500 char workgroup[256]; 501 char username[256]; 502 char password_enc[256]; 503 char password_dec[256]; 504 char errorstr[256]; 505 505 USHORT pos; 506 char spool_dir[256];506 char spool_dir[256]; 507 507 ULONG ulBootDrive; 508 508
Note:
See TracChangeset
for help on using the changeset viewer.