亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品免费丝袜| 国产乱子伦一区二区三区国色天香| 首页综合国产亚洲丝袜| 久久99国产精品久久99果冻传媒| 色婷婷综合久久| 久久婷婷综合激情| 国产91在线观看| 欧美精品在线一区二区三区| 国产精品麻豆网站| 国产精品88888| 欧美一级欧美三级在线观看| 亚洲国产一区二区三区 | 91热门视频在线观看| 日韩免费视频线观看| 亚洲一区精品在线| 99久久久精品免费观看国产蜜| 久久女同互慰一区二区三区| 日韩二区在线观看| 欧美天天综合网| 亚洲蜜臀av乱码久久精品| 成人动漫一区二区| 欧美极品美女视频| 国产成人精品一区二区三区四区 | 日本乱码高清不卡字幕| 欧美国产精品一区| 国产激情一区二区三区| 2023国产精华国产精品| 裸体一区二区三区| 欧美一级午夜免费电影| 日本伊人色综合网| 欧美一区二区高清| 精品一区二区综合| 久久精品欧美日韩精品| 国产电影一区在线| 国产精品青草久久| 99热99精品| 亚洲午夜影视影院在线观看| 欧美专区亚洲专区| 日本vs亚洲vs韩国一区三区| 日韩一级二级三级| 国产精品99久久久久久久女警| 精品国产一区a| 成人永久aaa| 一区二区三区日韩欧美| 欧美日韩三级一区二区| 久久国产日韩欧美精品| 久久久亚洲午夜电影| 成人免费毛片a| 亚洲精选视频免费看| 欧美在线看片a免费观看| 日韩激情中文字幕| 国产亚洲1区2区3区| 99精品久久99久久久久| 亚洲va韩国va欧美va| 日韩欧美精品三级| 福利一区福利二区| 亚洲综合色成人| 日韩欧美色综合网站| 成人久久视频在线观看| 亚洲成人高清在线| 久久久一区二区三区捆绑**| 日本道色综合久久| 激情久久五月天| 亚洲激情综合网| 精品福利在线导航| 97久久精品人人做人人爽50路| 天堂精品中文字幕在线| 久久理论电影网| 欧美性猛交xxxxxx富婆| 国产高清一区日本| 首页欧美精品中文字幕| 国产欧美一二三区| 欧美疯狂性受xxxxx喷水图片| 国产精品原创巨作av| 亚洲va国产天堂va久久en| 欧美激情中文字幕一区二区| 欧美日韩在线观看一区二区| 国产成人在线视频网站| 天天色综合天天| 亚洲黄色av一区| 国产精品午夜久久| 亚洲精品在线一区二区| 欧美精品123区| 94色蜜桃网一区二区三区| 精品午夜久久福利影院 | 亚洲欧洲日韩在线| 日韩视频免费直播| 欧美视频一区二区| 色呦呦国产精品| 波多野结衣一区二区三区| 奇米综合一区二区三区精品视频| 亚洲免费伊人电影| 国产精品国产精品国产专区不蜜| 精品久久久久久久人人人人传媒 | 国内精品嫩模私拍在线| 亚洲电影在线免费观看| 综合激情网...| 中文字幕中文乱码欧美一区二区| 精品卡一卡二卡三卡四在线| 欧美一区二区三区精品| 欧美日韩视频第一区| 91黄视频在线观看| 91无套直看片红桃| 不卡视频一二三| 暴力调教一区二区三区| 国产精品12区| 福利电影一区二区| 国产成人综合网站| 国产福利一区二区三区视频| 国产精品资源站在线| 国产乱国产乱300精品| 国产美女精品在线| 精品一区二区在线看| 激情深爱一区二区| 国产精品原创巨作av| 国产成人自拍高清视频在线免费播放| 紧缚奴在线一区二区三区| 九一九一国产精品| 国内一区二区视频| 高清国产午夜精品久久久久久| 成人午夜av在线| 91美女在线视频| 在线观看91视频| 91精品蜜臀在线一区尤物| 91精品一区二区三区在线观看| 91精品国产综合久久精品性色| 日韩欧美一区二区不卡| www日韩大片| 国产精品蜜臀av| 亚洲午夜一区二区三区| 欧美aa在线视频| 成人性生交大片免费看中文网站| 成人白浆超碰人人人人| 色菇凉天天综合网| 在线播放亚洲一区| 久久久噜噜噜久久人人看| 一色桃子久久精品亚洲| 五月婷婷激情综合| 精品一区二区三区av| 99久久精品一区二区| 欧美日韩高清一区二区| 久久久精品影视| 亚洲国产中文字幕| 韩日精品视频一区| 91农村精品一区二区在线| 777久久久精品| 欧美国产成人精品| 日韩国产欧美三级| 暴力调教一区二区三区| 7777精品久久久大香线蕉| 久久精品视频免费| 亚州成人在线电影| 国产成人午夜精品影院观看视频 | 成人av电影免费观看| 欧美日本一道本| 国产精品二三区| 日本不卡高清视频| 日本乱人伦aⅴ精品| 2024国产精品视频| 舔着乳尖日韩一区| 99国内精品久久| 久久综合成人精品亚洲另类欧美| 亚洲欧美日韩中文字幕一区二区三区| 麻豆国产一区二区| 在线免费观看日本一区| 久久久蜜桃精品| 蜜臀av一区二区| 欧美影院午夜播放| 亚洲欧美自拍偷拍色图| 国产一区 二区 三区一级| 欧美性猛交一区二区三区精品| 欧美国产日产图区| 韩国三级中文字幕hd久久精品| 91成人在线免费观看| 中文字幕免费不卡在线| 精彩视频一区二区三区| 欧美日免费三级在线| 中文字幕日本不卡| 成人午夜视频免费看| 欧美精品一区二区在线播放| 亚洲高清免费一级二级三级| 一本久道久久综合中文字幕| 亚洲一区二区三区视频在线播放 | 午夜视频一区在线观看| 一道本成人在线| 亚洲色图.com| 成人va在线观看| 中文字幕在线一区二区三区| 岛国精品在线播放| 国产精品久久久久久久久快鸭| 国产成人三级在线观看| 久久久久综合网| 国产成人自拍网| 国产欧美日产一区| 成人免费看的视频| 最近中文字幕一区二区三区| 99国产精品久| 亚洲一区成人在线| 欧美电影在线免费观看| 日韩在线一区二区|