#ifndef SYSUTILS_H #define SYSUTILS_H ///////////////////////////////////////////////////////////////// // sysUtils.H - utility classes to support Win32 API // // ver 1.0 // // Language: Visual C++, ver 6.0, SP 5 // // Platform: Dell Dimension 8100, Win 2000 Pro, SP 2 // // Application: CSE691/791 - SWM&A Demonstration // // Author: Jim Fawcett, CST 2-187, Syracuse Univ // // (315) 443-3948, jfawcett@twcny.rr.com // ///////////////////////////////////////////////////////////////// /* Module Operations: ================== This module provides several classes that provide information and error checking for Win32 operations. Public Interface - sysError: ============================ sysError myErr; // create sysError object string err = myErr.getLastMsg(); // get last system error message Public Interface - procInfo: ============================ procInfo pi; // create procInfo object string path = pi.getSpawnPath(); // process spawned on this path string name = pi.getFileName(); // process spawned from this file */ /////////////////////////////////////////////////////////////// // Build Process // /////////////////////////////////////////////////////////////// // Required Files: // // sysUtils.h, sysUtils.cpp // // // // Compiler Command // // cl /GX /DTEST_SYSUTILS sysUtils.cpp // // // /////////////////////////////////////////////////////////////// /* Maintenance History =================== ver 1.0 : 23 Oct 2001 - first release */ // #include /////////////////////////////////////////////////////////////// // sysError class declaration class sysError { public: sysError() {} ~sysError() {} std::string getLastMsg(); private: std::string _msg; }; /////////////////////////////////////////////////////////////// // procInfo class declaration class procInfo { public: procInfo() { } ~procInfo() { } std::string getSpawnPath(); std::string getFileName(); private: }; #endif