Wrapping WinAPI FindNextVolume as std iterator
This answer by another user to a similar question lists the whole set of features required by the Standard for a fully compatible iterator type. The list is quite long, and you probably won't need all those features, so this comment is mostly FYI.

You have chosen to make your class an Input Iterator, however, it is not fully compliant with the specification for such. It is missing the post-increment (it++) operator and the -&gt; dereference operator, which are important and should at least be added.



The comparison operators are not const, which is a mistake, since they do not mutate member data. The proper signature would be, for instance with operator ==: 

bool operator == (FindVolumeWrapper const&amp; other) const;


Also, this calling syntax for operator == is not wrong, but it is unusual (though you've correctly reused it to implement !=):


 bool operator != (FindVolumeWrapper const&amp; other)
 {
    return !operator == (other);
 }



I would expect this instead:

bool operator != (FindVolumeWrapper const&amp; other) const
{
    return !(*this == other);
}


No special syntax, just a plain comparison.



This comparison is hard to read, too many conditions being checked at once:


bool operator == (FindVolumeWrapper const&amp; other)
{
    return (this-&gt;m_dwError == ERROR_SUCCESS 
            &amp;&amp; other.m_dwError == ERROR_SUCCESS 
            &amp;&amp; wcscmp(m_curVolName, other.m_curVolName) == 0)
         || (this-&gt;m_dwError != ERROR_SUCCESS &amp;&amp; other.m_dwError != ERROR_SUCCESS);
}



Some auxiliary variables would help:

bool operator == (FindVolumeWrapper const&amp; other) const
{
    const bool bothGood = (this-&gt;m_dwError == ERROR_SUCCESS) &amp;&amp;
                          (other.m_dwError == ERROR_SUCCESS);
    const bool bothBad  = (this-&gt;m_dwError != ERROR_SUCCESS) &amp;&amp;
                          (other.m_dwError != ERROR_SUCCESS);
    const bool sameName = (wcscmp(m_curVolName, other.m_curVolName) == 0);

    return (bothGood &amp;&amp; sameName) || bothBad;
}


Yes this will always evaluate all expressions, though the improvement in readability is still worth it in my book. The comparisons are negligible in any modern machine, so I wouldn't worry about that. The string comparison has the potential to be expensive, so if you really mind that, add an if to avoid wcscmp when the first condition is not met.



Instead of defining one constructor that takes a boolean and one that takes no parameters, with the objective of creating the start and end iterators, you could use a more descriptive method by defining two dummy types and using those instead. Example:

// These are empty, we just need the names
struct StartIteratorTag { };
struct EndIteratorTag   { };

class FindVolumeWrapper 
{
public:
    FindVolumeWrapper(StartIteratorTag) { ... }
    FindVolumeWrapper(EndIteratorTag) { ... }
};

std::set&lt;std::wstring&gt; volumeNames(FindVolumeWrapper(StartIteratorTag()), FindVolumeWrapper(EndIteratorTag()));


Your current method is also not bad thought, this is just another alternative.



Finally, this SO question also discusses about iterator types, I recommend a look at it for further reference. And this one compares the Input/Forward Iterator types.