C language function:CryptAcquireContext sample codes

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

TITLE : The worm that spreads WanaCrypt0r - Malwarebytes Labs | Malwarebytes Labs
The initialization function called first calls WSAStartup() to initialize networking, then CryptAcquireContext() to initialize the crypto API so it can use a cryptographically-secure pseudo-random number generator. It then calls a function that initializes two buffers used for storing the worm payload DLLs, one x86 and one x64. It copies the payload DLLs from the .data section of the worm and then copies the entire worm binary after it........

TITLE : Toshiyukino.blog
ret = CryptAcquireContext(lngProv, vbNullString, vbNullString, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT).......
TITLE : Data Encryption/Hijri Dates Conversion - Microsoft Access / VBA
lRes = CryptAcquireContext(hCtx, vbNullString, _.......
search Google