C language function:CryptGenKey sample codes

Search sample code in the internet.It is the result.

TITLE : 0x3a - Security Specialist and programmer by trade - Analysis of a piece of ransomware in development: the story of ‘CryptoApp’
* A 'filef key (MSDN will refer to it as s session key) is generated by calling [CryptGenKey()] using the previously initialized Cryptographic provider and using PROV_RSA_FULL.......

TITLE : gPetyah ransomware inspired by gWannaCryh hits European countries – Trustlook
v5 = CryptGenKey(*(_DWORD *)(a1 + 8), 0x660Eu, 1u, (HCRYPTKEY *)(a1 + 20));.......
search Google