亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? common.vb

?? 以前做NOKIA手機與PC通信時所參考的源代碼,里面包括兩個程序,一個是手機文件夾瀏覽源碼,另一個手機SIS安裝程序.
?? VB
字號:
'Filename    : Common.vb
'Part of     : Application installer VB.NET example
'Description : Main module of VBInstaller.NET example application
'Version     : 3.2
'
'This example is only to be used with PC Connectivity API version 3.2.
'Compability ("as is") with future versions is not quaranteed.
'
'Copyright (c) 2007 Nokia Corporation.
'
'This material, including but not limited to documentation and any related
'computer programs, is protected by intellectual property rights of Nokia
'Corporation and/or its licensors.
'All rights are reserved. Reproducing, modifying, translating, or
'distributing any or all of this material requires the prior written consent
'of Nokia Corporation. Nokia Corporation retains the right to make changes
'to this material at any time without notice. A copyright license is hereby
'granted to download and print a copy of this material for personal use only.
'No other license to any other intellectual property rights is granted. The
'material is provided "as is" without warranty of any kind, either express or
'implied, including without limitation, any warranty of non-infringement,
'merchantability and fitness for a particular purpose. In no event shall
'Nokia Corporation be liable for any direct, indirect, special, incidental,
'or consequential loss or damages, including but not limited to, lost profits
'or revenue,loss of use, cost of substitute program, or loss of data or
'equipment arising out of the use or inability to use the material, even if
'Nokia Corporation has been advised of the likelihood of such damages occurring.

Option Strict Off
Option Explicit On

Imports System.Runtime.InteropServices

Module Common

    Public hDMHandle As Integer ' Device manager handle
    Public hFSHandle As Integer ' File System handle
    Public MainForm As InstallerDialog ' Main form of application

    Public bAppUninstallSupported As Boolean ' Phone supports appication uninstallation

    '===================================================================
    ' DeviceNotifyCallback
    '
    ' Callback function for device connection notifications
    '
    '===================================================================
    Public Function DeviceNotifyCallback(ByRef iStatus As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal pstrSerialNumber As String) As Integer
        On Error Resume Next

        MainForm.bRefreshPhonecombo = True
        DeviceNotifyCallback = CONA_OK
    End Function

    '===================================================================
    ' FSNotifyCallback
    '
    ' Callback function for file operation notifications
    '
    '===================================================================
    Public Function FSNotifyCallback(ByVal iOperation As Integer, ByVal iStatus As Integer, ByVal iTransferredBytes As Integer, ByVal iAllBytes As Integer) As Integer
        FSNotifyCallback = CONA_OK
        If iOperation = CONAInstallApplicationNtf Then
            If iStatus = CONA_OK_BUT_USER_ACTION_NEEDED Then
                ' Show text stating wait status
                MainForm.labelWait.Visible = True
                MainForm.ProgressBar1.Visible = False
            Else
                MainForm.SetProgress(iStatus)
            End If
        Else
            MainForm.SetProgress(iStatus)
        End If
        If MainForm.IsCancelled Then
            FSNotifyCallback = ECONA_CANCELLED
        End If
    End Function

    '===================================================================
    ' InstallJavaApplication
    '
    ' Install Java application to phone
    '
    '===================================================================
    Public Function InstallJavaApplication(ByVal strJarFile As String, ByVal strJadFile As String) As Integer
        Dim jarFile As String
        Dim jadFile As String
        Dim path As String
        Dim javaFiles As CONAPI_APPLICATION_JAVA
        Dim dwOptions As Integer = CONA_DEFAULT_FOLDER Or CONA_OVERWRITE Or CONA_WAIT_THAT_USER_ACTION_IS_DONE

        If Len(strJarFile) = 0 Then
            MsgBox("File name is missing")
            Exit Function
        End If
        jarFile = System.IO.Path.GetFileName(strJarFile)
        jadFile = System.IO.Path.GetFileName(strJadFile)
        javaFiles.pstrFileNameJar = jarFile
        If Len(jadFile) = 0 Then
            javaFiles.pstrFileNameJad = vbNullString
        Else
            javaFiles.pstrFileNameJad = jadFile
        End If
        path = System.IO.Path.GetDirectoryName(strJarFile)
        InstallJavaApplication = CONAInstallJavaApplication(hFSHandle, CONA_APPLICATION_TYPE_JAVA, javaFiles, dwOptions, path, vbNullString)
        If InstallJavaApplication = CONA_OK Then
            MsgBox("Application installation succeeded")
        ElseIf InstallJavaApplication = CONA_OK_BUT_USER_ACTION_NEEDED Then
            ' Either device does not support waiting or the maximum waiting time exceeded
            MsgBox("User action needed on the device side")
        Else
            ShowErrorMessage("CONAInstallApplication", InstallJavaApplication)
        End If
    End Function

    '===================================================================
    ' InstallSymbianApplication
    '
    ' Install Symbian application to phone
    '
    '===================================================================
    Public Function InstallSymbianApplication(ByVal strFile As String) As Integer
        Dim sisFile As String
        Dim path As String
        Dim sisFiles As CONAPI_APPLICATION_SIS
        Dim dwOptions As Integer = CONA_DEFAULT_FOLDER Or CONA_OVERWRITE Or CONA_WAIT_THAT_USER_ACTION_IS_DONE

        If Len(strFile) = 0 Then
            MsgBox("File name is missing")
            Exit Function
        End If
        sisFile = System.IO.Path.GetFileName(strFile)
        sisFiles.pstrFileNameSis = sisFile
        path = System.IO.Path.GetDirectoryName(strFile)
        InstallSymbianApplication = CONAInstallSymbianApplication(hFSHandle, CONA_APPLICATION_TYPE_SIS, sisFiles, dwOptions, path, vbNullString)
        If InstallSymbianApplication = CONA_OK Then
            MsgBox("Application installation succeeded")
        ElseIf InstallSymbianApplication = CONA_OK_BUT_USER_ACTION_NEEDED Then
            ' Either device does not support waiting or the maximum waiting time exceeded
            MsgBox("User action needed on the device side")
        Else
            ShowErrorMessage("CONAInstallApplication", InstallSymbianApplication)
        End If
    End Function

    '===================================================================
    ' InstallTheme
    '
    ' Install theme to phone
    '
    '===================================================================
    Public Function InstallTheme(ByVal strFile As String) As Integer
        Dim strNthFile As String
        Dim path As String
        Dim nthFile As CONAPI_APPLICATION_FILE
        Dim dwOptions As Integer = CONA_DEFAULT_FOLDER Or CONA_OVERWRITE Or CONA_WAIT_THAT_USER_ACTION_IS_DONE

        If Len(strFile) = 0 Then
            MsgBox("File name is missing")
            Exit Function
        End If
        strNthFile = System.IO.Path.GetFileName(strFile)
        nthFile.pstrFileName = strNthFile
        path = System.IO.Path.GetDirectoryName(strFile)
        InstallTheme = CONAInstallTheme(hFSHandle, CONA_APPLICATION_TYPE_THEMES, nthFile, dwOptions, path, vbNullString)
        If InstallTheme = CONA_OK Then
            MsgBox("Application installation succeeded")
        ElseIf InstallTheme = CONA_OK_BUT_USER_ACTION_NEEDED Then
            ' Either device does not support waiting or the maximum waiting time exceeded
            MsgBox("User action needed on the device side")
        Else
            ShowErrorMessage("CONAInstallApplication", InstallTheme)
        End If
    End Function

    '===================================================================
    ' InstallNGageApplication
    '
    ' Install NGage application to phone
    '
    '===================================================================
    Public Function InstallNGageApplication(ByVal strFile As String) As Integer
        Dim nGageFile As String
        Dim sourcePath As String
        Dim targetPath As String = "\\C:\Data\" 'Phone memory is used
        Dim nGageFolder As String = "N-Gage"
        Dim iOptions As Integer = CONA_DIRECT_PC_TO_PHONE Or CONA_OVERWRITE
        Dim iResult As Integer

        If Len(strFile) = 0 Then
            MsgBox("File name is missing")
            Exit Function
        End If
        ' Split source file name in path and file name
        nGageFile = System.IO.Path.GetFileName(strFile)
        sourcePath = System.IO.Path.GetDirectoryName(strFile)
        ' Create n-gage folder on Phone
        iResult = CONACreateFolder(hFSHandle, nGageFolder, targetPath)
        If iResult <> CONA_OK And iResult <> ECONA_FOLDER_ALREADY_EXIST Then
            ShowErrorMessage("CONACreateFolder", iResult)
        End If
        ' Append n-gage foldr to target path
        targetPath = targetPath & nGageFolder
        ' N-Gage application is installed by copying file to predefined folder,
        InstallNGageApplication = CONACopyFile(hFSHandle, iOptions, nGageFile, sourcePath, targetPath)
        If InstallNGageApplication = CONA_OK Then
            MsgBox("Application installation succeeded")
        Else
            ShowErrorMessage("CONACopyFile", InstallNGageApplication)
        End If
    End Function

    '===================================================================
    ' UnInstallApplication
    '
    ' UnInstalls application from phone
    '
    '===================================================================
    Public Function UnInstallApplication(ByVal strAppName As String, ByVal strAppUID As String) As Integer
        Dim iOptions As Integer
        iOptions = CONA_SILENT_UNINSTALLATION
        UnInstallApplication = CONAUninstallApplication(hFSHandle, iOptions, strAppName, strAppUID)
        If UnInstallApplication <> CONA_OK Then
            ShowErrorMessage("CONAUninstallApplication", UnInstallApplication)
        End If
    End Function
End Module

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区日韩二区欧美三区| 麻豆精品视频在线观看视频| 国产日韩欧美一区二区三区乱码 | 欧美在线视频不卡| 91免费看`日韩一区二区| 国产不卡视频一区| 福利电影一区二区三区| 成人综合激情网| 91在线一区二区三区| yourporn久久国产精品| 91麻豆swag| 欧美日韩亚洲综合一区二区三区| 在线观看日韩电影| 91精品国产色综合久久ai换脸 | 91麻豆精品国产91久久久资源速度| 欧洲色大大久久| 在线观看www91| 日韩欧美aaaaaa| 久久精品亚洲乱码伦伦中文| 中文字幕乱码日本亚洲一区二区 | 亚洲国产精品麻豆| 三级亚洲高清视频| 国产精品一区二区男女羞羞无遮挡| 国产乱码精品一区二区三区五月婷 | 中文字幕中文乱码欧美一区二区| 中文字幕亚洲在| 天天亚洲美女在线视频| 国产乱码字幕精品高清av| 9久草视频在线视频精品| 在线观看中文字幕不卡| 日韩精品一区在线观看| 中文一区一区三区高中清不卡| 一区二区三区中文在线| 美美哒免费高清在线观看视频一区二区 | 91麻豆高清视频| 日韩一区二区在线观看视频| 欧美经典一区二区| 日韩国产欧美在线播放| 国产一区二区久久| 欧美日韩一区 二区 三区 久久精品| 日韩一区二区在线看| 亚洲欧美偷拍卡通变态| 麻豆精品一区二区综合av| 91香蕉视频mp4| 久久毛片高清国产| 日韩av一区二| 欧洲精品视频在线观看| 国产亚洲成年网址在线观看| 亚洲一区在线观看免费观看电影高清 | 亚洲国产欧美在线人成| 成人午夜又粗又硬又大| 欧美一区二区三区视频在线观看| 国产精品福利av| 国产精品一区在线观看你懂的| 欧美日本一区二区在线观看| 亚洲国产精品激情在线观看 | 久久久久久久久久美女| 婷婷久久综合九色国产成人 | 欧美精品日韩精品| 一区二区免费视频| 色综合色综合色综合| 国产丝袜美腿一区二区三区| 免费观看一级特黄欧美大片| 在线观看不卡一区| 夜夜操天天操亚洲| 欧美在线免费播放| 亚洲宅男天堂在线观看无病毒| www.亚洲精品| 国产精品日韩成人| 国产精品 欧美精品| 久久综合精品国产一区二区三区| 老司机午夜精品99久久| 欧美一卡二卡在线观看| 日本欧美一区二区在线观看| 欧美久久久久久蜜桃| 亚洲高清免费视频| 91精品国产aⅴ一区二区| 图片区日韩欧美亚洲| 欧美色涩在线第一页| 亚洲一二三四区| 欧美亚洲日本国产| 三级不卡在线观看| 久久精品亚洲麻豆av一区二区 | 国产亚洲人成网站| 国产成人一区二区精品非洲| 欧美激情艳妇裸体舞| 成人av网站在线| 亚洲美女视频在线观看| 色先锋久久av资源部| 亚洲国产日韩a在线播放| 宅男在线国产精品| 国内精品写真在线观看| 久久久久久久久蜜桃| 99久久综合狠狠综合久久| 亚洲精品日日夜夜| 欧美日韩大陆一区二区| 青青草国产精品97视觉盛宴| 精品美女在线观看| youjizz久久| 亚洲成人先锋电影| 国产亚洲欧美日韩在线一区| 成人国产精品视频| 亚洲高清免费观看| 久久久高清一区二区三区| 成人毛片老司机大片| 亚洲 欧美综合在线网络| 2020国产精品久久精品美国| 99视频热这里只有精品免费| 午夜久久久久久久久久一区二区| 久久婷婷色综合| 在线亚洲高清视频| 国产一区 二区 三区一级| 亚洲色图色小说| 精品电影一区二区| 在线观看av一区二区| 成人一级片网址| 日本视频在线一区| 亚洲女人的天堂| 久久蜜桃av一区精品变态类天堂| 一本久久a久久精品亚洲| 人禽交欧美网站| 国产精品白丝在线| 精品国产a毛片| 欧美日韩精品三区| av男人天堂一区| 激情成人综合网| 水野朝阳av一区二区三区| 中文字幕在线播放不卡一区| 欧美不卡一区二区三区四区| 欧美在线视频全部完| 成人午夜激情影院| 国产美女精品一区二区三区| 午夜久久电影网| 亚洲国产日韩a在线播放性色| 欧美激情综合网| 337p日本欧洲亚洲大胆精品 | 蜜臀国产一区二区三区在线播放| 中文字幕一区二区在线观看| 久久午夜色播影院免费高清| 中国色在线观看另类| 精品日本一线二线三线不卡| 欧美精品 国产精品| 欧日韩精品视频| 91高清视频在线| 91同城在线观看| av中文字幕在线不卡| 成人自拍视频在线观看| 国产mv日韩mv欧美| 国产激情视频一区二区三区欧美| 老司机免费视频一区二区三区| 天天综合色天天综合色h| 五月天亚洲婷婷| 日韩精品乱码免费| 日本不卡一区二区三区| 日本不卡高清视频| 青青草91视频| 久久99精品久久久| 国产一区视频导航| 成人97人人超碰人人99| 99久久久国产精品| 色哟哟亚洲精品| 精品视频1区2区3区| 欧美精品 国产精品| 欧美sm极限捆绑bd| 久久久精品天堂| 亚洲少妇屁股交4| 天天色图综合网| 久久99日本精品| 99在线精品一区二区三区| 一本高清dvd不卡在线观看| 色婷婷综合久久久久中文一区二区 | 成人黄色电影在线| 一本一道波多野结衣一区二区| 欧洲一区二区三区在线| 欧美一二三区在线| 国产亚洲美州欧州综合国| 自拍偷拍欧美激情| 日韩和欧美一区二区| 国产毛片精品视频| 色94色欧美sute亚洲13| 欧美一区二区三区日韩视频| 久久精品人人做人人综合| 亚洲另类春色国产| 美女精品自拍一二三四| 不卡av在线免费观看| 欧美丝袜丝交足nylons图片| 亚洲精品在线观看视频| 最新中文字幕一区二区三区| 日本va欧美va瓶| www.一区二区| 精品国产乱码久久久久久久| 亚洲天堂久久久久久久| 麻豆国产精品官网| 一本色道久久综合亚洲91| 日韩三级视频在线观看| 亚洲精品一二三| 国产成人在线视频播放| 91精品国产综合久久久久| 国产精品美女久久久久久2018| 日韩av电影免费观看高清完整版|