home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / include2 / v / vos.h < prev    next >
C/C++ Source or Header  |  1999-01-20  |  1KB  |  36 lines

  1. //===============================================================
  2. // vos. - the OS interface object
  3. //
  4. // Copyright (C) 1995,1996  Bruce E. Wampler
  5. //
  6. // This file is part of the V C++ GUI Framework, and is covered
  7. // under the terms of the GNU Library General Public License,
  8. // Version 2. This library has NO WARRANTY. See the source file
  9. // vapp.cxx for more complete information about license terms.
  10. //===============================================================
  11. #ifndef VOS_H
  12. #define VOS_H
  13.  
  14. #include <v/v_defs.h>
  15.  
  16.   class V_EXPORT vOS
  17.   {
  18.     public:
  19.       vOS();
  20.       ~vOS();
  21.  
  22.       int vChDrive(int drive);
  23.       int vGetEnvVal(char* name, char* val, int maxlen=255);
  24.       int vGetUserName( char* s, int len);
  25.       void vGetHostName(char* s, int len);
  26.       long vGetPid();
  27.       int vGetCWD(char* buf, int len);
  28.       int vChDir(const char *path);
  29.       void vSleep(long ms);
  30.       int vDeleteFile(const char* filename);
  31.       int vRunProcess(const char* cmd, const char* StdOut = 0,
  32.       const char* StdErr = 0, const int Wait = 0, const int minimize = 0);
  33.   };
  34.  
  35.   #endif
  36.