Exemplo n.º 1
0
        unsafe public static string getDeviceUdid(void *device)
        {
            string s = string.Empty;

            //Program.logIt("getDeviceUdid ++", false);
            try
            {
                IntPtr pp = CFManzana.MobileDevice.AMDeviceCopyDeviceIdentifier(device);
                CoreFoundation.CFString cfs = new CoreFoundation.CFString(pp);
                s = cfs.ToString();
            }
            catch (System.Exception)
            {
            }
            return(s);
        }
Exemplo n.º 2
0
 public static bool StartAtLogin(bool value)
 {
     CoreFoundation.CFString id = new CoreFoundation.CFString("net.readify.loginitemtesthelper");
     return(SMLoginItemSetEnabled(id.Handle, value));
 }