Following my prior post: Recover your XP product key from the registry using C#, I have had many requests to provide the same code in unmanaged C++ - so here goes: // KeyDecoder.h #pragma once #ifndef byte typedef unsigned char byte; #endif // byte class KeyDecoder { public: enum Key { XP, Office10, Office11 }; static int DecodeProductKey(KeyDecoder... key, char* pDecodedKey); protected: static byte* GetRegistryDigitalProductId... key); static char* DecodeProductKey(byte* digitalProductId); ......
An interesting adventure - if anyone is interested in how to do this contact me. We used the following devices: SAGEM MSO-series fingerprint reader pcPRox RFID reader ADAM primarily, with some AD integration to hold the fingerprint-minutae data What made this interesting was writing the application entirely in 'Unmanaged' C++ and integrating the SAGEM SDK (MorphoSmart API) and the pcProxlib API SDK. Both these APIs are provided as native C++ DLLs and ultimately drove our decision to go the complete ......
We needed to write an application that would automatically execute a time-out action, the time-out being a prescribed length of time that has expired without any user input occurring during that period. Not as easy as it sounds. One way to do it is to setup a set of system-hooks using the message hook APIs provided by Win32. I personally did not like this approach for the following reasons: Using system-hooks is intrusive and reduces overall system performance. Its more work, because the hooks provide ......