Hi,
I develop the VPN accelerater card by using the C++ program. According to the explain of MSND, The function of 'CryptDestroyKey' can destroy the public key hanle and free the memory at the same time. But I got the false result when I use the function. So I wanna know wheather any other funtion can free the memory of accelerater card? Anybody can give me some useful advice? Thank you very much!

Recommended Answers

All 2 Replies

Read the next line of the manual page, update the code and tell us (if you still can't figure it out) what the extended error is.

If the function fails, the return value is zero. For extended error information, call GetLastError.

Also, the function is available for windows and windows ce, so saying which might be useful as well.

Thank you for your advice!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.