예제 #1
0
 internal static extern int scanDeviceDriversForUpdates(progressCallback pFunc,
     StringBuilder szProductKey,
     StringBuilder szAppDataLoc,
     StringBuilder szTempLoc,
     StringBuilder szRegistryLoc,
     uint dwFlags
     );
예제 #2
0
 public static extern int scanDeviceDriversForUpdates(progressCallback pFunc,
                                                      StringBuilder szProductKey,
                                                      StringBuilder szAppDataLoc,
                                                      StringBuilder szTempLoc,
                                                      StringBuilder szRegistryLoc,
                                                      uint dwFlags
                                                      );
예제 #3
0
 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);
 }
예제 #4
0
 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;
 }
예제 #5
0
 internal static extern int OSMT_scanDeviceDriversForUpdates(
     progressCallback pFunc,
     StringBuilder szProductKey,
     StringBuilder szAppDataLoc,
     StringBuilder szTempLoc,
     StringBuilder szRegistryLoc,
     uint dwFlags,
     int nOsId
     );
예제 #6
0
 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));
 }
예제 #7
0
 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
     );
예제 #8
0
 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 */
     );
예제 #9
0
    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;
    }
예제 #10
0
파일: FormMain.cs 프로젝트: uoi100/TechPro
 /// <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);
     }
 }
예제 #11
0
 public static extern int OSMT_scanDeviceDriversForUpdates(
     progressCallback pFunc,
     StringBuilder szProductKey,
     StringBuilder szAppDataLoc,
     StringBuilder szTempLoc,
     StringBuilder szRegistryLoc,
     uint dwFlags,
     int nOsId
     );
예제 #12
0
 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);
 }
예제 #13
0
 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));
 }
예제 #14
0
 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);
 }
예제 #15
0
 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;
 }