internal static extern int scanDeviceDriversForUpdates(progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags );
public static extern int scanDeviceDriversForUpdates(progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags );
public static void addPackFile(string _name, petitionCallback _onDone = null, progressCallback _onProgress = null, System.Object _userData = null) { if (m_daemon == null) m_daemon = new GameObject("StreamingDaemon", typeof(StreamingDaemon)).GetComponent<StreamingDaemon>(); if (m_packs.ContainsKey(_name)) { AssetBundle ab = m_packs[_name].addRef(); if (_onDone != null) _onDone(ab, _userData); } else addFileToStream(_name, _onDone, _onProgress, _userData); }
public Petition Clone(petitionCallback _onDone, progressCallback _onProgress, System.Object _userData) { Petition tmp = new Petition(); tmp.www = www; tmp.userData = _userData; tmp.onDone = _onDone; tmp.onProgress = _onProgress; return tmp; }
internal static extern int OSMT_scanDeviceDriversForUpdates( progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags, int nOsId );
public void addFile(string _name, petitionCallback _onDone, progressCallback _onProgress, System.Object _userData){ foreach (Petition pet in m_petitions){ if (pet.www.url == _name) { m_petitions.Add( pet.Clone(_onDone, _onProgress, _userData) ); return; } } this.gameObject.SetActive(true); m_petitions.Add(new Petition(_name, _onDone, _onProgress, _userData)); }
public static extern int updateDeviceDriversEx( [In, Out] progressCallback pFunc, [In] StringBuilder szProductKey, [In] StringBuilder szAppDataLoc, [In] StringBuilder szTempLoc, [In] StringBuilder szRegistryLoc, [In] downloadProgressCallback pDownloadCallbackFunc, [In, Out] IntPtr Scandata, [In, Out] IntPtr DevicesToUpdates, [In] int driversSize, [In] StringBuilder szRestorePointName );
public static extern int OSMT_updateDeviceDriversEx( [In, Out] progressCallback pFunc, [In] StringBuilder szProductKey, [In] StringBuilder szAppDataLoc, [In] StringBuilder szTempLoc, [In] StringBuilder szRegistryLoc, [In] downloadProgressCallback pDownloadCallbackFunc, [In, Out] IntPtr Scandata, [In, Out] IntPtr DevicesToUpdates, [In] int driversSize, [In] StringBuilder szRestorePointName, [In] int nOsId, [In] uint nUpdateFlag, [In] StringBuilder szArchiveLoc /* value to pass if want to store downloads or if want restore from archive */ );
public Petition(string _url, petitionCallback _onDone, progressCallback _onProgress, System.Object _userData){ userData = _userData; onDone = _onDone; onProgress = _onProgress; #if (!UNITY_WEBPLAYER) www = new WWW(_url); #else // www = WWW.LoadFromCacheOrDownload(_url, 1); www = new WWW(_url); /* MemoryStream ms = new MemoryStream(); GZipStream Compress = new GZipStream(ms, CompressionMode.Decompress); Compress.Write( www.bytes, 0, www.bytes.Length ); Compress.Close(); byte[] bt = ms.GetBuffer(); */ #endif www.threadPriority = ThreadPriority.Normal; }
/// <summary> /// Description: Recursive function that updates the value of the progress bar until it is full. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void worker_Progress_DoWork(object sender, DoWorkEventArgs e) { if (this.InvokeRequired) { progressCallback d = new progressCallback(worker_Progress_DoWork); this.Invoke(d, new object[] { sender, e }); } else if (progressBar1.Value < progressBar1.Maximum) { if (progressBar1.Value + progressBar1.Step < progressBar1.Maximum) { progressBar1.Value += progressBar1.Step; } else { progressBar1.Value = progressBar1.Maximum; } worker_Progress.ReportProgress(progressBar1.Value); worker_Progress_DoWork(sender, e); } }
public static extern int OSMT_scanDeviceDriversForUpdates( progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags, int nOsId );
public static int DUSDK_scanDeviceDriversForUpdatesForOS(progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags, int nOsId) { return OSMT_scanDeviceDriversForUpdates(pFunc, szProductKey, szAppDataLoc, szTempLoc, szRegistryLoc, dwFlags, nOsId); }
public static int DUSDK_scanDeviceDriversForUpdatesForOS(progressCallback pFunc, StringBuilder szProductKey, StringBuilder szAppDataLoc, StringBuilder szTempLoc, StringBuilder szRegistryLoc, uint dwFlags, int nOsId) { return(OSMT_scanDeviceDriversForUpdates(pFunc, szProductKey, szAppDataLoc, szTempLoc, szRegistryLoc, dwFlags, nOsId)); }
protected static void addFileToStream(string _name, petitionCallback _onDone = null, progressCallback _onProgress = null, System.Object _userData = null) { if (m_daemon == null) m_daemon = new GameObject("StreamingDaemon", typeof(StreamingDaemon)).GetComponent<StreamingDaemon>(); m_daemon.addFile(_name, _onDone, _onProgress, _userData); }
public StreamingPack( string _name, petitionCallback _onDone, progressCallback _onProgress = null, System.Object _userData = null ){ //m_name = _name; m_onDone = _onDone; m_onProgress = _onProgress; m_userData = _userData; }