static CFBoolean() { var handle = CFObject.dlopen(CFObject.CoreFoundationLibrary, 0); if (handle == IntPtr.Zero) { return; } try { True = new CFBoolean(CFObject.GetCFObjectHandle(handle, "kCFBooleanTrue"), false); False = new CFBoolean(CFObject.GetCFObjectHandle(handle, "kCFBooleanFalse"), false); } finally { CFObject.dlclose(handle); } }
static CFProxy() { IntPtr handle = CFObject.dlopen(CFNetwork.CFNetworkLibrary, 0); //kCFProxyAutoConfigurationHTTPResponseKey = CFObject.GetCFObjectHandle (handle, "kCFProxyAutoConfigurationHTTPResponseKey"); kCFProxyAutoConfigurationJavaScriptKey = CFObject.GetCFObjectHandle(handle, "kCFProxyAutoConfigurationJavaScriptKey"); kCFProxyAutoConfigurationURLKey = CFObject.GetCFObjectHandle(handle, "kCFProxyAutoConfigurationURLKey"); kCFProxyHostNameKey = CFObject.GetCFObjectHandle(handle, "kCFProxyHostNameKey"); kCFProxyPasswordKey = CFObject.GetCFObjectHandle(handle, "kCFProxyPasswordKey"); kCFProxyPortNumberKey = CFObject.GetCFObjectHandle(handle, "kCFProxyPortNumberKey"); kCFProxyTypeKey = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeKey"); kCFProxyUsernameKey = CFObject.GetCFObjectHandle(handle, "kCFProxyUsernameKey"); //kCFProxyTypeNone = CFObject.GetCFObjectHandle (handle, "kCFProxyTypeNone"); kCFProxyTypeAutoConfigurationURL = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeAutoConfigurationURL"); kCFProxyTypeAutoConfigurationJavaScript = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeAutoConfigurationJavaScript"); kCFProxyTypeFTP = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeFTP"); kCFProxyTypeHTTP = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeHTTP"); kCFProxyTypeHTTPS = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeHTTPS"); kCFProxyTypeSOCKS = CFObject.GetCFObjectHandle(handle, "kCFProxyTypeSOCKS"); CFObject.dlclose(handle); }
static CFBoolean() { var handle = CFObject.dlopen(CFObject.CoreFoundationLibrary, 0); if (handle == IntPtr.Zero) return; }
internal CFDate(IntPtr handle, bool owns) { this.handle = handle; if (!owns) CFObject.CFRetain(handle); }