Hi Nikolay,
+ dev_mgr->token = MFGetSystemTime();This truncates result which is not pretty. Maybe it's enough to have global counter for this?
How about 'object->token = MFGetSystemTime() >> 16;'?
Then it will be a lower probability to generate duplicate
token.
Thanks for the review.