title: Not sure how to marshal a DWORD constant from the Dism API in C#
body: <p>I'm very new to Windows programming and C#, so hopefully I'm asking this question the right way. I'm trying to put a C# wrapper around the C++ Dism API for Windows, but I'm not sure how to marshal a DWORD constant (aside from this, I've managed to figure out marshaling and p/invoke for the most part).</p>
  
  <p>Basically the "DismCommitFunction" <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/hh825835.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/hh825835.aspx</a> has a signature which requires a DWORD constant. The constant names are defined on this page <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/hh824739.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/hh824739.aspx</a> but there are no values.</p>
  
  <p>The example in C++ (msdn.microsoft.com/en-us/library/windows/desktop/hh824804.aspx) just seems to use the constants, but I'm not sure how to do this in C#. </p>
  
  <p>Do I need to know the values of these constants, or can I get them from the Dism API header?</p>
  
  <p>Any advice is greatly appreciated!</p>