[Mono-dev] Help Finding this Function?

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Fri Jun 27 13:34:44 UTC 2014

> From: Miguel de Icaza [mailto:miguel at xamarin.com]
> rand.c has several implementations, the CryptAcquireContext is part of the
> Win32 support, and is a Win32 API call.
> There is also a Native client implementation and a Unix one.

Thanks - But - What am I missing?  I don't have any "wincrypt.h" file anywhere in my mono source tree.  So I guess wincrypt.h exists in windows and not unix/linux...  I guess if you build on windows, it probably calls the Win32 API directly, and otherwise, some other functionally equivalent implementation takes its place...

I'm confused about the meaning of a "native" implementation versus a "unix" one.  If I build on mac or linux, does that imply it uses the unix one?  Are you saying non-windows platforms (mac/linux) implement this call in a native library that's included in the OS?

Sorry, I'm just still confused about how that gets hooked in, where it comes from....

More information about the Mono-devel-list mailing list