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

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

?? dmapidefinitions.vb

?? 以前做NOKIA手機與PC通信時所參考的源代碼,里面包括兩個程序,一個是手機文件夾瀏覽源碼,另一個手機SIS安裝程序.
?? VB
?? 第 1 頁 / 共 2 頁
字號:
'Filename    : CONADefinitions.vb
'Part of     : PCSAPI VB.NET examples
'Description : Connectivity API data definitions, converted from CONADefinitions.h
'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 CONADefinitions

    '=========================================================
    ' Device definitions used in Connectivity API
    '
    'Connection info structure
    Public Structure CONAPI_CONNECTION_INFO
        Dim iDeviceID As Integer
        Dim iMedia As Integer
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrDeviceName As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrAddress As String
        Dim iState As Integer
    End Structure

    'Device info structure
    Public Structure CONAPI_DEVICE
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrSerialNumber As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrFriendlyName As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrModel As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrManufacturer As String
        Dim iNumberOfItems As Integer
        Dim pItems As IntPtr    'Pointer to CONAPI_CONNECTION_INFO structures
    End Structure

    ' General device info structure
    Public Structure CONAPI_DEVICE_GEN_INFO
        Dim iSize As Integer
        Dim iType As Integer
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrTypeName As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrSWVersion As String
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrUsedLanguage As String
        Dim iSyncSupport As Integer
        Dim iFileSystemSupport As Integer
    End Structure

    ' Device product info structure
    Public Structure CONAPI_DEVICE_INFO_PRODUCT
        Dim iSize As Integer
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrProductCode As String
    End Structure

    ' Device device icon structure
    Public Structure CONAPI_DEVICE_INFO_ICON
        Dim iSize As Integer                                        ' [in] Size
        Dim iParam As Integer                                       ' [in] Reserved for future use. Must be 0.
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrTarget As String  ' [in] Target drive info. Must include memory type (e.g. "MMC" or "DEV").
        Dim iDataLength As Integer                                  ' [out]Icon data length.
        Dim pData As IntPtr                                         ' [out]Pointre to icon data.
    End Structure

    ' Device property info structure
    Public Structure CONAPI_GET_PROPERTY
        Dim iSize As Integer                                                ' [in] Size
        Dim iTargetPropertyType As Integer                                  ' [in] Target property type
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrPropertyName As String    ' [in] Target Property name
        Dim iResult As Integer                                          ' [out] Result code. CONA_OK if succeeded, otherwise error code
        <MarshalAs(UnmanagedType.LPWStr)> Dim pstrPropertyValue As String   ' [out] Result string. If not found pointer is NULL 
    End Structure

    Public Structure CONAPI_DEVICE_INFO_PROPERTIES
        Dim iSize As Integer                    ' [in] Size
        Dim iNumberOfStructs As Integer         ' [in] Count of CONAPI_GET_PROPERTY struct
        Dim pGetPropertyInfoStructs As IntPtr   ' [in] Pointer toCONAPI_GET_PROPERTY structs
    End Structure

    ' ----------------------------------------------------

    ' Search definitions used with CONASearchDevices function:
    Public Const CONAPI_DEVICE_NOT_FUNCTIONAL As Integer = &H0  ' Device is not working or unsupported device.
    Public Const CONAPI_DEVICE_UNPAIRED As Integer = &H1        ' Device is not paired
    Public Const CONAPI_DEVICE_PAIRED As Integer = &H2          ' Device is paired
    Public Const CONAPI_DEVICE_PCSUITE_TRUSTED As Integer = &H4 ' Device is PC Suite trusted
    Public Const CONAPI_DEVICE_WRONG_MODE As Integer = &H8      ' Device is connected in wrong mode.

    Public Const CONAPI_ALLOW_TO_USE_CACHE As Integer = &H1000  ' Get all devices from cache if available
    Public Const CONAPI_GET_ALL_PHONES As Integer = &H2000      ' Get all phones from target media
    Public Const CONAPI_GET_PAIRED_PHONES As Integer = &H4000   ' Get all paired phones from target media
    Public Const CONAPI_GET_TRUSTED_PHONES As Integer = &H8000  ' Get all PC Suite trusted phones from target media.

    ' Search macros used to check device's trusted/paired state: 
    Public Function CONAPI_IS_DEVICE_UNPAIRED(ByVal iState As Integer) As Integer
        CONAPI_IS_DEVICE_UNPAIRED = (iState And &H1)       ' Returns 1 if true
    End Function
    Public Function CONAPI_IS_DEVICE_PAIRED(ByVal iState As Integer) As Integer
        CONAPI_IS_DEVICE_PAIRED = ((iState >> 1) And &H1)  ' Returns 1 if true
    End Function
    Public Function CONAPI_IS_PCSUITE_TRUSTED(ByVal iState As Integer) As Integer
        CONAPI_IS_PCSUITE_TRUSTED = ((iState >> 2) And &H1) ' Returns 1 if true
    End Function

    ' Definitions used with CONAChangeDeviceTrustedState function:
    Public Const CONAPI_PAIR_DEVICE As Integer = &H100           ' Pair device
    Public Const CONAPI_UNPAIR_DEVICE As Integer = &H200         ' Unpair device
    Public Const CONAPI_SET_PCSUITE_TRUSTED As Integer = &H400   ' Set device to PC Suite trusted 
    Public Const CONAPI_SET_PCSUITE_UNTRUSTED As Integer = &H800 ' Remove PC Suite trusted information.
    ' Definitions used with CONAGetDeviceInfo function:
    Public Const CONAPI_DEVICE_GENERAL_INFO As Integer = &H10000      ' Get CONAPI_DEVICE_GEN_INFO struct.
    Public Const CONAPI_DEVICE_PRODUCT_INFO As Integer = &H100000     ' Get CONAPI_DEVICE_INFO_PRODUCT struct.
    Public Const CONAPI_DEVICE_PROPERTIES_INFO As Integer = &H1000000 ' Get CONAPI_DEVICE_INFO_PROPERTIES struct.
    Public Const CONAPI_DEVICE_ICON_INFO As Integer = &H10000000      ' Get CONAPI_DEVICE_ICON struct.

    ' Definitions used with CONAPI_DEVICE_INFO_PROPERTIES struct
    Public Const CONAPI_DEVICE_GET_PROPERTY As Integer = &H1     ' Get value from configuration file.
    '                                                            ' pstrPropertyName must be include target property name.
    Public Const CONAPI_DEVICE_IS_APP_SUPPORTED As Integer = &H2 ' Check is the application supported in configuration file.
    '                                                            ' pstrPropertyName must be include target application name.
    ' The next properties are returned from device's OBEX Capability object:
    Public Const CONAPI_DEVICE_GET_CURRENT_NETWORK As Integer = &H1000004   ' Get Current Network string.
    Public Const CONAPI_DEVICE_GET_COUNTRY_CODE As Integer = &H2000004      ' Get Country Code string.
    Public Const CONAPI_DEVICE_GET_NETWORK_ID As Integer = &H3000004        ' Get Network ID string.
    Public Const CONAPI_DEVICE_GET_VERSION As Integer = &H100004            ' Get Version string from CONAPI_CO_xxx_SERVICE Service.
    Public Const CONAPI_DEVICE_GET_UUID As Integer = &H200004               ' Get UUID string from CONAPI_CO_xxx_SERVICE Service.
    Public Const CONAPI_DEVICE_GET_OBJTYPE As Integer = &H300004            ' Get Object type string from CONAPI_CO_xxx_SERVICE Service.
    Public Const CONAPI_DEVICE_GET_FILEPATH As Integer = &H400004           ' Get file path string from CONAPI_CO_xxx_SERVICE Service.
    '                                                                       ' pstrPropertyName must be include type of file.
    Public Const CONAPI_DEVICE_GET_FOLDERPATH As Integer = &H500004         ' Get folder path string from CONAPI_CO_xxx_SERVICE Service.
    '                                                                       ' pstrPropertyName must be include type of folder (e.g. "Images").
    Public Const CONAPI_DEVICE_GET_FOLDERMEMTYPE As Integer = &H600004      ' Get folder memory type string from CONAPI_CO_xxx_SERVICE Service. 
    '                                                                       ' pstrPropertyName must be include type of folder.
    Public Const CONAPI_DEVICE_GET_FOLDEREXCLUDE As Integer = &H700004      ' Get folder exclude path string from CONAPI_CO_xxx_SERVICE Service.
    '                                                                       ' pstrPropertyName must be include type of folder.
    Public Const CONAPI_DEVICE_GET_ALL_VALUES As Integer = &H800004         ' Get all values from CONAPI_CO_xxx_SERVICE Service. Values are separated with hash mark (#).
    '                                                                       ' pstrPropertyName must be include type of item.
    ' Definitions for Services
    Public Const CONAPI_DS_SERVICE As Integer = &H1000              ' Data Synchronication Service
    Public Const CONAPI_DM_SERVICE As Integer = &H2000              ' Device Management Service
    Public Const CONAPI_NEF_SERVICE As Integer = &H3000             ' NEF Service
    Public Const CONAPI_DS_SMS_SERVICE As Integer = &H4000          ' Data Synchronication SMS Service
    Public Const CONAPI_DS_MMS_SERVICE As Integer = &H5000          ' Data Synchronication MMS Service
    Public Const CONAPI_DS_BOOKMARKS_SERVICE As Integer = &H6000    ' Data Synchronication Bookmarks Service
    Public Const CONAPI_FOLDER_BROWSING_SERVICE As Integer = &H7000 ' Folder-Browsing Service
    Public Const CONAPI_USER_DEFINED_SERVICE As Integer = &H8000    ' User defined Service. The service name must be set to pstrPropertyName. 
    ' Definitions used with General device info structure
    ' Device types:
    Public Const CONAPI_UNKNOWN_DEVICE As Integer = &H0            ' Unknown device.
    Public Const CONAPI_SERIES40_DEVICE As Integer = &H1000001     ' Series 40 device
    Public Const CONAPI_SERIES60_2ED_DEVICE As Integer = &H2000010 ' Series 60 the 2nd edition device.
    Public Const CONAPI_SERIES60_3ED_DEVICE As Integer = &H2000020 ' Series 60 the 3nd edition device.
    Public Const CONAPI_SERIES80_DEVICE As Integer = &H2000100     ' Series 80 device.
    Public Const CONAPI_NOKIA7710_DEVICE As Integer = &H2001000    ' Nokia 7710 device.
    ' Synchronication support:
    Public Const CONAPI_SYNC_NOT_SUPPORTED As Integer = &H0     ' Device is not supporting synchronication.
    Public Const CONAPI_SYNC_SA_DS As Integer = &H1             ' Device is supporting Server Alerted (SA) Data Synchronication. 
    Public Const CONAPI_SYNC_SA_DM As Integer = &H2             ' Device is supporting Server Alerted (SA) Device Management. 
    Public Const CONAPI_SYNC_CI_DS As Integer = &H10            ' Device is supporting Client Initated (CI) Data Synchronication.
    ' File System support: 
    Public Const CONAPI_FS_NOT_SUPPORTED As Integer = &H0               ' Device is not support file system.
    Public Const CONAPI_FS_SUPPORTED As Integer = &H1                   ' Device is support file system.
    Public Const CONAPI_FS_INSTALL_JAVA_APPLICATIONS As Integer = &H10  ' Device is supporting Java MIDlet installation.
    Public Const CONAPI_FS_INSTALL_SIS_APPLICATIONS As Integer = &H20   ' Device is supporting SIS applications installation. 
    Public Const CONAPI_FS_INSTALL_SISX_APPLICATIONS As Integer = &H40  ' Device supports SISX applications' installation. 
    Public Const CONAPI_FS_FILE_CONVERSION As Integer = &H100           ' Device is supporting file conversion.
    Public Const CONAPI_FS_LIST_APPLICATIONS As Integer = &H200         ' Device supports installed applications' listing.
    Public Const CONAPI_FS_UNINSTALL_APPLICATIONS As Integer = &H400    ' Device supports installed applications' uninstallation.
    Public Const CONAPI_FS_EXTENDED_OPERATIONS As Integer = &H800       ' Device supports extended File System operations (e.g. Copy folder).

    ' Definitions used in CONASetDeviceListOption function
    ' Option types:
    Public Const DMAPI_OPTION_SET_MANUFACTURER As Integer = &H1 ' pstrValue contains the manufacturer name

    ' ----------------------------------------------------
    ' DeviceNotifyCallbackFunction
    '
    '	This is the function prototype of the callback method
    '
    '	DWORD DeviceNotifyCallbackFunction(	DWORD dwStatus, WCHAR* pstrSerialNumber);
    '	
    '	Status value uses the following format:
    '
    '		----------------DWORD------------------
    '		WORD for info		WORD for status
    '		0000 0000 0000 0000 0000 0000 0000 0000
    '
    '	Status value is the one of the values defined below describing main reason for the notification.
    '	Info part consist of two parts:
    '		LOBYTE: Info part contains change info value. See info values below.
    '		HIBYTE:	Info data value. Depends of info value.
    '	See info value definitions for more information.
    '	Use predefined macros to extract needed part from the status value.
    '
    Public Delegate Function DeviceNotifyCallbackDelegate(ByRef iStatus As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal pstrSerialNumber As String) As Integer

    'Device callback status values
    Public Const CONAPI_DEVICE_LIST_UPDATED As Integer = &H0 ' List is updated. No any specific information.
    Public Const CONAPI_DEVICE_ADDED As Integer = &H1        ' A new device is added to the list.
    Public Const CONAPI_DEVICE_REMOVED As Integer = &H2      ' Device is removed from the list.
    Public Const CONAPI_DEVICE_UPDATED As Integer = &H4      ' Device is updated. A connection is added or removed
    ' Device callback info values
    Public Const CONAPI_CONNECTION_ADDED As Integer = &H1   ' Note! HIBYTE == media, LOBYTE == CONAPI_CONNECTION_ADDED
    Public Const CONAPI_CONNECTION_REMOVED As Integer = &H2 ' Note! HIBYTE == media, LOBYTE == CONAPI_CONNECTION_REMOVED
    Public Const CONAPI_DEVICE_RENAMED As Integer = &H4     ' Friendly name of the device is changed

    ' Device callback macros
    Public Function GET_CONAPI_CB_STATUS(ByVal iStatus As Integer) As Integer
        GET_CONAPI_CB_STATUS = (&HFFFF And iStatus)
    End Function
	Public Function GET_CONAPI_CB_INFO(ByVal iStatus As Integer) As Integer
        GET_CONAPI_CB_INFO = ((&HFF0000 And iStatus) >> 16)
    End Function
	Public Function GET_CONAPI_CB_INFO_DATA(ByVal iStatus As Integer) As Integer
        GET_CONAPI_CB_INFO_DATA = ((&HFF000000 & iStatus) >> 24)
    End Function

    ' ----------------------------------------------------------------------
    ' DeviceSearchOperationCallbackFunction
    '
    ' Description
    ' Device Search operation callback functions are defined as: 
    '	DWORD (DeviceSearchOperationCallbackFunction)(DWORD dwState, 
    '					CONAPI_CONNECTION_INFO* pConnInfoStructure)
    '
    '	The Connectivity API calls this function at least every time period 
    '	(or if the System has found the device during this time) and adds one 
    '	to the function state value. The used time period counted by using 
    '	dwSearchTime parameter. E.g. If dwSearchTime paramater value is 240,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品美女一区二区| 成人黄色国产精品网站大全在线免费观看| 久久精品欧美一区二区三区麻豆| 欧美一区永久视频免费观看| 欧美日韩中字一区| 欧洲激情一区二区| av在线一区二区| 欧美变态口味重另类| 欧美一级夜夜爽| 精品欧美一区二区三区精品久久| 欧美精品 日韩| 欧美一区二区视频在线观看| 日韩欧美国产高清| 欧美激情资源网| 中文字幕中文字幕一区| 亚洲一线二线三线视频| 视频在线在亚洲| 久久9热精品视频| 国产91精品露脸国语对白| 9人人澡人人爽人人精品| 欧美午夜理伦三级在线观看| 欧美精品三级日韩久久| 久久奇米777| 亚洲女厕所小便bbb| 亚洲 欧美综合在线网络| 久久66热偷产精品| 亚洲美女在线国产| 中文字幕日韩精品一区| 亚洲午夜久久久久久久久久久| 亚洲第一av色| 国产成人精品三级| 在线视频中文字幕一区二区| 日韩一区二区电影网| 欧美韩国日本不卡| 亚洲风情在线资源站| 国产乱人伦偷精品视频免下载| 91在线云播放| 精品噜噜噜噜久久久久久久久试看| 国产视频一区在线观看| 亚洲福利视频导航| 成人午夜精品在线| 欧美一级理论片| 亚洲日本va在线观看| 狠狠网亚洲精品| 777xxx欧美| 亚洲男人天堂av网| 成人午夜视频在线观看| 欧美大片拔萝卜| 亚洲视频在线观看三级| 久久91精品国产91久久小草| 色婷婷激情综合| 国产精品麻豆99久久久久久| 精品一区二区三区久久| 欧美日韩国产乱码电影| 亚洲色图一区二区| 成人综合婷婷国产精品久久| 日韩色视频在线观看| 亚洲h动漫在线| 91麻豆国产自产在线观看| 日本一区二区成人| 国产美女在线精品| 欧美本精品男人aⅴ天堂| 一区二区在线电影| 972aa.com艺术欧美| 国产欧美日韩麻豆91| 国产91在线看| 91精品国产一区二区三区香蕉| 日韩av电影一区| 日本韩国精品一区二区在线观看| 欧美电影免费观看高清完整版在线 | 青青青伊人色综合久久| 欧美日韩精品欧美日韩精品一综合| 1024成人网色www| 成人av电影在线网| 国产亚洲欧美中文| 国产精品一区二区三区四区| 久久一日本道色综合| 极品少妇一区二区三区精品视频 | 精品第一国产综合精品aⅴ| 日韩福利电影在线| 盗摄精品av一区二区三区| 精品国产凹凸成av人网站| 五月婷婷另类国产| 欧美日韩成人综合| 秋霞av亚洲一区二区三| 欧美一级黄色片| 国产美女主播视频一区| 欧美激情一区二区三区| 91在线观看视频| 亚洲成人www| 日韩一区二区视频| 国产精品影视天天线| 亚洲国产成人午夜在线一区| 91麻豆高清视频| 三级在线观看一区二区| 精品999久久久| k8久久久一区二区三区| 亚洲一区二区视频在线| 欧美一区二区三区在线观看视频| 99精品国产99久久久久久白柏| 天使萌一区二区三区免费观看| 欧美日韩二区三区| 精品一区二区三区免费毛片爱| 精品美女在线播放| 91小视频免费观看| 日本美女一区二区| 中文字幕一区二区三区不卡| 欧美色综合久久| 国产一区二区免费看| 亚洲蜜臀av乱码久久精品 | 日韩激情视频在线观看| 日韩精品自拍偷拍| 91丨九色porny丨蝌蚪| 日韩av电影免费观看高清完整版 | 日本久久一区二区| 欧美高清性hdvideosex| 精品一区免费av| 国产精品国产三级国产aⅴ原创 | 一本大道久久精品懂色aⅴ| 亚洲成av人片在线观看| 中文字幕国产一区| 777精品伊人久久久久大香线蕉| 成人免费视频免费观看| 捆绑变态av一区二区三区| 亚洲欧美日韩人成在线播放| www久久久久| 欧美嫩在线观看| 色94色欧美sute亚洲线路一ni| 国产美女av一区二区三区| 日本亚洲视频在线| 一区二区在线观看视频在线观看| 久久久蜜桃精品| 日韩精品一区二区三区视频播放 | 国产亚洲综合av| 在线国产电影不卡| 粉嫩久久99精品久久久久久夜| 蜜臀久久99精品久久久久宅男| 亚洲欧美经典视频| 国产欧美日韩久久| 亚洲精品一线二线三线| 欧美精品久久99| 欧美做爰猛烈大尺度电影无法无天| 国产超碰在线一区| 国产成人自拍高清视频在线免费播放| 奇米精品一区二区三区在线观看一 | 欧美xxxxx牲另类人与| 欧美日韩国产美| 欧美电影在线免费观看| 欧美视频一区二区三区四区| 91视频你懂的| av一二三不卡影片| 91性感美女视频| 色又黄又爽网站www久久| 91在线播放网址| 国产精品99久久久| 精品在线免费观看| 精品一区二区精品| 国精产品一区一区三区mba桃花 | 高清不卡在线观看| 成人av网站免费| 成人av综合一区| 一本一本久久a久久精品综合麻豆| 91久久精品一区二区二区| 色哟哟精品一区| 欧美特级限制片免费在线观看| 精品视频在线视频| 精品欧美一区二区三区精品久久| 久久蜜臀精品av| 一区视频在线播放| 亚洲国产日韩a在线播放 | 久久综合色婷婷| 国产欧美综合在线| 一区二区免费看| 美女任你摸久久| 911精品国产一区二区在线| 从欧美一区二区三区| 99久久伊人久久99| 欧美私模裸体表演在线观看| 欧美日韩电影在线| 久久精品视频网| 樱花影视一区二区| 另类人妖一区二区av| 成人毛片在线观看| 欧美色区777第一页| 久久综合色8888| 亚洲女同女同女同女同女同69| 三级亚洲高清视频| 成人激情综合网站| 56国语精品自产拍在线观看| 久久一区二区三区四区| 亚洲一区欧美一区| 国产一区二区福利视频| 欧美影片第一页| 国产日产欧产精品推荐色 | 日韩一级免费一区| 亚洲精品视频一区二区| 精品一区二区三区免费观看| 91麻豆.com| 国产校园另类小说区| 一区二区三区四区五区视频在线观看 |