home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / system / rivatuner / RivaTuner20RC16.exe / SDK / Include / RTEQSharedMemory.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-21  |  1.8 KB  |  54 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // This header file defines event queue shared memory format
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. #ifndef _RTEQ_SHARED_MEMORY_INCLUDED_
  7. #define _RTEQ_SHARED_MEMORY_INCLUDED_
  8. /////////////////////////////////////////////////////////////////////////////
  9. typedef struct RTEQ_SHARED_MEMORY
  10. {
  11.     DWORD    dwSignature;
  12.         //signature allows applications to verify status of shared memory
  13.  
  14.         //The signature can be set to:
  15.         //'RTEQ'    - event queue memory is initialized and contains 
  16.         //            valid data 
  17.         //0xDEAD    - event queue memory is marked for deallocation and
  18.         //            no longer contain valid data
  19.         //otherwise    the memory is not initialized
  20.     DWORD    dwVersion;
  21.         //structure version ((major<<16) + minor)
  22.         //must be set to 0x00010000 for v1.0 structure
  23.  
  24.     DWORD    dwEventEntrySize;
  25.         //size of RTEQ_SHARED_MEMORY_OSD_ENTRY for compatibility with future versions
  26.     DWORD    dwEventArrOffset;
  27.         //offset of arrEvent array for compatibility with future versions
  28.     DWORD    dwEventArrSize;
  29.         //size of arrEvent array for compatibility with future versions
  30.  
  31.     //event descriptor structure
  32.  
  33.     typedef struct RTEQ_SHARED_MEMORY_EVENT_ENTRY
  34.     {
  35.         //application identification related fields
  36.  
  37.         DWORD    dwProcessID;
  38.             //process ID
  39.         char    szName[MAX_PATH];
  40.             //process executable name
  41.         DWORD    dwTime;
  42.             //event registration time (in GetTickCount ticks)
  43.  
  44.         char    szText[MAX_PATH];
  45.             //event text
  46.  
  47.     } RTEQ_SHARED_MEMORY_EVENT_ENTRY, *LPRTEQ_SHARED_MEMORY_EVENT_ENTRY;
  48.  
  49.     RTEQ_SHARED_MEMORY_EVENT_ENTRY arrEvent[256];
  50.         //array of event descriptors
  51.  
  52. } RTEQ_SHARED_MEMORY, *LPRTEQ_SHARED_MEMORY;
  53. /////////////////////////////////////////////////////////////////////////////
  54. #endif //_RTEQ_SHARED_MEMORY_INCLUDED_