Oh dear God - what sort of absolute muppets define both CRYPT_DELETE_KEYSET and CRYPT_DELETEKEYSET with different values (of the same type) and publishes example code using the wrong one?
Answers on a postcard to: 1 Microsoft Way Redmond, WA 98052, USA