/// <summary> /// Process-wide initialization -- call only once per process. /// </summary> /// <param name="flags">An or'd combination of /// <see cref="CURLinitFlag"/> members.</param> /// <returns>A <see cref="CURLcode"/>, hopefully /// <c>CURLcode.CURLE_OK</c>.</returns> public static CURLcode GlobalInit(int flags) { sm_curlCode = External.curl_global_init(flags); if (sm_curlCode == CURLcode.CURLE_OK) { External.curl_shim_initialize(); } return(sm_curlCode); }