Software design, development, installation, test and support services for industrial automation |
|
Home | About | News | Products and Services | Downloads | Contact us | Resources |
These classes are written to simplify access to WIN32 API from C++ software. Tested under Microsoft Visual C++ 5.0, however, should be easily portable to other compilers. The author of this code can be contacted at . Your comments, suggestions and bug reports are very welcome.
Download Profiler (zip, 2KB)
- classes for code fragment execution time measurement with 0.8 microseconds precision.
API function used - QueryPerformanceCounter ().
Profiler usage example can be found here.
Download ComPort (zip, 3KB)
- class for serial port access.
API functions used - CreateFile (), CloseHandle (), GetCommState (), SetCommState (), BuildCommDCBAndTimeouts (), SetCommTimeouts (), ReadFile (), WriteFile (), GetComTimeouts (), GetCommProperties (), GetCommModemStatus ().
ComPort class usage example can be found here.
Download PhysicalDisk (zip, 4KB)
- class for retrieving hard disk parameters and reading physical sectors. Requires Windows NT/2000.
API functions used - CreateFile (), CloseHandle (), DeviceIoControl (), SetFilePointer (), ReadFile ().
Download CritSec (zip, 2KB) - classes for thread synchronization using Critical Sections. API functions used - InitializeCriticalSection (), DeleteCriticalSection (), EnterCriticalSection (), LeaveCriticalSection ().
Download EvSem (zip, 2KB) - class for thread synchronization using Event Semaphores. API functions used - CreateEvent (), OpenEvent (), CloseHandle (), ResetEvent (), WaitForSingleObject (), SetEvent (), PulseEvent ().
Download MuxSem (zip, 2KB) - classes for thread synchronization using Mutex Semaphores. API functions used - CreateMutex (), OpenMutex (), CloseHandle (), WaitForSingleObject (), ReleaseMutex ().
Download Semap (zip, 2KB) - class for thread synchronization using Semaphores. API functions used - CreateSemaphore (), OpenSemaphore (), CloseHandle (), WaitForSingleObject (), ReleaseSemaphore ().
Download VersInfo (zip, 2KB)
- class for retrival of executable file and product version information from VERSIONINFO resource.
API functions used - GetFileVersionInfoSize (), GetFileVersionInfo (), VerQueryValue ().
The code should be linked with version.lib from Windows SDK.
VersionInfo class usage example can be found here.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Copyright © 2000-2007 UAB "Midpoint Systems". All Rights Reserved.
All brand names and products names are trademarks or registered trademarks of their respective companies. |