https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptexportkey?redirectedfrom=MSDN
CryptExportKey function (wincrypt.h) - Win32 apps | Microsoft Learn
Exports a cryptographic key or a key pair from a cryptographic service provider (CSP) in a secure manner.
functionhappsmicrosoftlearn