title: Accessing enum variable declared within a Structure in C++
body: <p>This is the structure, defined as shown in the following code snippet.</p>
  
  <pre><code>struct EPSecODSStat {
  
     uint64 flags;
     uint32 maxPause;
     uint32 timeToAutoFinish;
     uint64 scanned;
     uint64 lowResourceSkipped;
     uint64 aclSkipped;
     uint64 sharingSkipped;
     uint64 otherSkipped;
     EPSecODSState state;
     uint32 elapsedTime;
  }
  </code></pre>
  
  <p>odsStat is pointer to structre EPSecODSStat..</p>
  
  <pre><code>enum EPSecODSState {
     EPSEC_ODS_RUNNING     = 0x0001,
     EPSEC_ODS_PAUSED      = 0x0002,
     EPSEC_ODS_PAUSING     = 0x0003,
     EPSEC_ODS_FINISHED    = 0x0004,
     EPSEC_ODS_TERMINATING = 0x0005,
     EPSEC_ODS_READY       = 0x0006,
  } EPSecODSState;
  </code></pre>
  
  <p>Now how do I access the members of the enum using the structure EPSecODSStat? Can any one please help me out through this one..</p>