On 05/12/14 13:22, Nikolay Sivov wrote:
- state_id = IDS_STATE_MIN;
- while(dwStateBit) {
state_id++;
dwStateBit /= 2;
- }
It looks like ffs() could be used to do that.
fss() returns least significant bit.
Actually it would be
better to find a way to connect those resource ids with actual STATE_SYSTEM_* symbols, not sure if it's possible to do cleanly.
I don't see a clean way of doing it.