Changeset 20 for rxutilex/trunk/rxutilex.c
- Timestamp:
- Oct 7, 2014, 4:25:50 PM (11 years ago)
- File:
-
- 1 edited
-
rxutilex/trunk/rxutilex.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rxutilex/trunk/rxutilex.c
r18 r20 73 73 #define SZ_LIBRARY_NAME "RXUTILEX" // Name of this library 74 74 #define SZ_ERROR_NAME "SYS2ERR" // REXX variable used to store error codes 75 #define SZ_VERSION "0. 0.5" // Current version of this library75 #define SZ_VERSION "0.1.0" // Current version of this library 76 76 77 77 // Maximum string lengths... … … 1956 1956 CHAR szName[ CCHMAXPATH ] = {0}, // Fully-qualified name of process 1957 1957 szNoExt[ CCHMAXPATH ] = {0}; // Program name without extension 1958 PPIB ppib; // pointer to current process info block 1958 1959 PSZ pszCurrent, // Program name of a queried process 1959 1960 c; // Pointer to substring … … 1964 1965 APIRET rc; // Return code 1965 1966 1967 1968 // Use current process when PID is 0 and program name is not specified 1969 if (( pszProgram == NULL ) && ( *pulPID == 0 )) { 1970 rc = DosGetInfoBlocks( NULL, &ppib ); 1971 if ( rc != NO_ERROR ) { 1972 WriteErrorCode( rc, "DosGetInfoBlocks"); 1973 return ( rc ); 1974 } 1975 *pulPID = ppib->pib_ulpid; 1976 } 1966 1977 1967 1978 #ifdef USE_DQPS
Note:
See TracChangeset
for help on using the changeset viewer.
