Mounir IDRASSI mounir.idrassi@idrix.fr writes:
case PP_KEYSTORAGE:dwTemp = GetVersion();/* for Windows NT, 95,98, Me, return CRYPT_PSTORE | CRYPT_UI_PROMPT | CRYPT_SEC_DESCR* for the others, return CRYPT_SEC_DESCR*/if(dwTemp < 0x80000000 && ((dwTemp & 0x000000FF) != 0x00000004))dwTemp = CRYPT_SEC_DESCR;elsedwTemp = CRYPT_PSTORE | CRYPT_UI_PROMPT | CRYPT_SEC_DESCR;
You shouldn't add such version checks, unless you have a real life app that depends on the difference.