Quick way to hash data using WinAPI

Use HashData. // Usage: [sourcecode language=’cpp’]// A magical string to get hashed TCHAR szDataToHash[] = _T( “Oobolooblahblah, abracadabra, ooboboblablah, get this string hashed” ); // Determines the size of hash value to be returned. DWORD HashVal = 0; // Hash now HRESULT hRes = HashData( LPBYTE( szDataToHash ), // Data to hash, can be of […]
Continue reading…

 

Posting message to a thread

Use PostThreadMessage API to post message to threads in windows provided you have the thread id of a thread. Another thing to keep in mind to provide a message loop in your thread proc to watch for messages being posted, which means your thread will be blocked for message processing. E.g. I assume you have […]
Continue reading…