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

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

?? conafilesystem.vb

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

    '=========================================================
    '
    '=========================================================
    ' FSAPI_Initialize
    '
    ' Description:
    '	FSAPI_Initialize initializes the API. This must be called once and before any other FSAPI call!
    '  It's not allowed to call this function like this 
    '		FSAPI_Initialize(FSAPI_GetAPIVersion(), NULL);
    '	You must call it like this
    '		FSAPI_Initialize(FSAPI_VERSION_32, NULL);
    '
    ' Parameters:
    '	dwAPIVersion	[in] FSAPI version requested.
    '	pdwParam		[in] Reserved for future use. Must be NULL.
    '
    ' Return values:
    '
    Public Declare Function FSAPI_Initialize Lib "ConnAPI" (ByVal iAPIVersion As Integer, ByVal pdwParam As IntPtr) As Integer

    '=========================================================
    '
    '=========================================================
    ' FSAPI_Terminate
    '
    ' Description:
    '	FSAPI_Terminate terminates the API. This must be called once and as the last FSAPI call!
    '
    ' Parameters:
    '	pdwParam		[in] Reserved for future use. Must be NULL.
    '
    ' Return values:
    '
    Public Declare Function FSAPI_Terminate Lib "ConnAPI" (ByVal pdwParam As IntPtr) As Integer

    '=========================================================
    '
    '=========================================================
    ' FSAPI_GetAPIVersion
    '
    ' Description:
    '	Returns currently installed version of this FSAPI.
    '
    ' Parameters:
    '
    ' Return values:
    '	API version number. 
    '
    Public Declare Function FSAPI_GetAPIVersion Lib "ConnAPI" () As Integer


    '///////////////////////////////////////////////////////////
    ' ConnectivityAPI File System functions
    '///////////////////////////////////////////////////////////

    '=========================================================
    ' CONAOpenFS
    '
    ' Description:
    '	CONAOpenFS opens a file system (FS) connection to the target 
    '	device. The function sets the FS Connection handle, which 
    '	identifies different client connections. It will be placed 
    '	into the given pointer. 
    '	
    '	If the media type is API_MEDIA_ALL, the ServiceLayer selects 
    '	the used media type automatically by applying the following rule:
    '	If there is an open FS connection to the device, it will be used. 
    '	Otherwise the ServiceLayer tries to open the FS connection in the 
    '	following order: USB, Seria, Irda and BT (if the device is 
    '	connected via medias). The function also sets the DeviceID, 
    '	which can be used to identify the used media type.
    '	
    '	If the Serial Number is an empty string, the function tries to 
    '	open the FS connection by using the piDeviceID parameter. The 
    '	piMedia parameter is not used in the exemplary case.
    '
    ' Parameters:
    '	pstrSerialNumber [in]     The device's serial number, which must be set.
    '	piMedia		     [in,out] In: Media type, which defines the target
    '					          media for the Device's FS connection.
    '							  Out:If the value is API_MEDIA_ALL, the 
    '							  target media is selected automatically 
    '							  and the used media type is returned.
    '	phFSHandle		 [out]	  Handle to the opened FS connection
    '	piDeviceID		 [in,out] In: Device ID. Used only when the Serial 
    '							  number is empty string.
    '							  Out: Returned Device ID value of the connected device.
    '
    ' Return values:
    ' CONA_OK
    ' ECONA_DEVICE_NOT_FOUND
    ' ECONA_NO_CONNECTION_VIA_MEDIA
    ' ECONA_NOT_SUPPORTED_DEVICE
    ' ECONA_CONNECTION_FAILED
    ' ECONA_CONNECTION_BUSY
    ' ECONA_CONNECTION_LOST
    ' ECONA_FAILED_TIMEOUT
    ' ECONA_INVALID_POINTER
    ' ECONA_NOT_INITIALIZED
    ' ECONA_NOT_SUPPORTED_MANUFACTURER
    ' ECONA_NOT_ENOUGH_MEMORY
    ' ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONAOpenFS Lib "ConnAPI" (<MarshalAs(UnmanagedType.LPWStr)> ByVal pstrSerialNumber As String, ByRef piMedia As Integer, ByRef phFSHandle As Integer, ByRef piDeviceID As Integer) As Integer
    '=========================================================

    '=========================================================
    ' CONACloseFS
    '
    ' Description:
    '	CONACloseFS closes the given file system connection.
    '
    ' Parameters:
    '	hFSHandle	[in] Existing file system handle
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_NOT_INITIALIZED
    '	ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONACloseFS Lib "ConnAPI" (ByVal hFSHandle As Integer) As Integer
    '=========================================================

    '=========================================================
    ' CONARegisterFSNotifyCallback
    '
    ' Description:
    ' CONARegisterFSNotifyCallback registers or unregisters the 
    ' callback function for the file functions' status notifications.
    ' 
    ' During file operations, the connectionAPI calls this function 
    ' with the parameter's state (0-100%), connection handle, and 
    ' operation code.

    '
    ' Parameters:
    '	hFSHandle	[in] File System handle
    '	iState		[in] Register flag:
    '					  API_REGISTER:   Registers a callback function
    '					  API_UNREGISTER: Unregisters a callback function
    '	pFSNotify	[in] Pointer to a function.
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_INVALID_POINTER
    '	ECONA_INVALID_PARAMETER
    '	ECONA_NOT_INITIALIZED
    '	ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONARegisterFSNotifyCallback Lib "ConnAPI" (ByVal hFSHandle As Integer, ByVal iState As Integer, ByVal pFSNotify As FSNotifyCallbackDelegate) As Integer
    '=========================================================

    '=========================================================
    ' CONARefreshDeviceMemoryValues
    '
    ' Description:
    '	CONARefreshDeviceMemoryValues refreshes the memory values 
    ' from the device. The function caches the memory values, so 
    ' it must be called if it is required to get the latest information.
    '
    ' Parameters:
    '	hFSHandle	[in] File system handle
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_CONNECTION_BUSY
    '	ECONA_CONNECTION_LOST
    '	ECONA_INVALID_DATA_DEVICE
    '	ECONA_CANCELLED
    '	ECONA_FAILED_TIMEOUT
    '	ECONA_UNKNOWN_ERROR_DEVICE
    '	ECONA_NOT_INITIALIZED
    '	ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONARefreshDeviceMemoryValues Lib "ConnAPI" (ByVal hFSHandle As Integer) As Integer
    '=========================================================

    '=========================================================
    ' CONAGetMemoryTypes
    '
    ' Description:
    ' CONAGetMemoryTypes receives all memory types that currently 
    ' exist in the device. The format of its string is 
    ' "Memory type string" comma "next Memory type string". An 
    ' example of a string is "DEV,MMC,APPL". 
    ' 
    ' The device can include different memory types. For example, 
    ' the memory types can be "DEV" (device memory), "MMC" 
    ' (memory card), or "APPL" (device special memory).	
    '
    ' Parameters:
    '	hFSHandle			[in]  File system handle.
    '	ppstrMemoryTypes	[out] Memory types.
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_INVALID_POINTER
    '	ECONA_NOT_SUPPORTED_DEVICE
    '	ECONA_NOT_INITIALIZED
    '	ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONAGetMemoryTypes Lib "ConnAPI" (ByVal hFSHandle As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByRef ppstrMemoryTypes As String) As Integer
    '=========================================================

    '=========================================================
    ' CONAGetMemoryValues
    '
    ' Description:
    '	CONAGetDeviceMemory returns info about the given device memory type.
    '
    ' Parameters:
    '	hFSHandle		[in]  File System handle.
    '	pstrMemoryType	[in]  Inquired device memory.E.g. "DEV", "MMC", 
    '                        or "APPL".If the value is NULL, the used value is "DEV".
    '	pdlFree			[out] Pointer to the variable receiving the 
    '						  information on the amount of free memory.
    '						  If not available, the value is -1.
    '	pdlTotal		[out] Pointer to the variable receiving 
    '						  the information on the total memory.
    '						  If not available, the value is -1.
    '	pdlUsed			[out] Pointer to the variable receiving 
    '						  the information on the used memory.
    '						  If not available, the value is -1.
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_INVALID_POINTER
    '	ECONA_INVALID_PARAMETER
    '	ECONA_NOT_SUPPORTED_DEVICE
    '	ECONA_NOT_INITIALIZED
    '	ECONA_UNKNOWN_ERROR
    '
    Public Declare Function CONAGetMemoryValues Lib "ConnAPI" (ByVal hFSHandle As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal pstrMemoryType As String, ByRef pdlFree As Int64, ByRef pdlTotal As Int64, ByRef pdlUsed As Int64) As Integer
    '=========================================================

    '=========================================================
    ' CONASetCurrentFolder
    '
    ' Description:
    ' CONASetCurrentFolder sets the device's current folder. All 
    ' file and folder operations with a relative path reference 
    ' will use this value. After the connection is established, 
    ' the default value is the device's root-folder. Only backslashes 
    ' ("\") are permissible folder separators.
    ' 
    ' Any other FS operation does not change the current folder. 
    ' If CONASetCurrentFolder fails, the currect folder is not changed. 
    '
    ' Parameters:
    '	hFSHandle	[in] File System handle
    '	pstrPath	[in] Name of the new current folder. Its value may 
    '					 be a relative or absolute reference. If the 
    '					 absolute path is used, the first two characters 
    '					 must be backslashes "\\". If you set the current 
    '					 folder to the root-folder, the path must include 
    '					 only two backslash characters "\\".
    '					 If the current folder is required to move sub folder, 
    '					 the path must not include any backslashes.
    '					 If the current folder is required to change the 
    '					 parent folder, the first two characters must be dots
    '					 and the third character must be a backslash "..\". 
    '
    ' Return values:
    '	CONA_OK
    '	ECONA_INVALID_HANDLE
    '	ECONA_INVALID_PARAMETER
    '	ECONA_CONNECTION_BUSY
    '	ECONA_CONNECTION_LOST
    '	ECONA_CURRENT_FOLDER_NOT_FOUND
    '	ECONA_FOLDER_PATH_TOO_LONG
    '	ECONA_FOLDER_NAME_INVALID_DEVICE
    '	ECONA_FOLDER_NO_PERMISSION

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一级特黄在线播放| 精品国产三级a在线观看| 日韩高清电影一区| 国产精品青草综合久久久久99| 在线亚洲免费视频| 成人免费视频一区二区| 日韩av网站免费在线| 亚洲欧美中日韩| 欧美xxx久久| 在线成人高清不卡| 色综合咪咪久久| 国产福利一区二区三区在线视频| 日韩高清国产一区在线| 亚洲乱码一区二区三区在线观看| 26uuu久久天堂性欧美| 7777精品伊人久久久大香线蕉超级流畅 | 婷婷开心久久网| 国产精品久久久久久亚洲伦 | 欧美日韩日本视频| 91丨国产丨九色丨pron| 国产91精品一区二区麻豆亚洲| 日韩高清在线观看| 午夜日韩在线电影| 亚洲影视在线播放| 1000精品久久久久久久久| 国产亚洲1区2区3区| 欧美精品一区二区精品网| 欧美一区二区三区免费在线看 | 天天射综合影视| 顶级嫩模精品视频在线看| 欧美aaaaaa午夜精品| 亚洲一区电影777| 一区二区三区日韩| 亚洲摸摸操操av| 日韩毛片高清在线播放| 国产精品国产精品国产专区不蜜| 国产精品天干天干在观线| 欧美激情一区在线| 国产福利一区在线观看| 激情久久五月天| 国产精品一区二区在线观看网站| 紧缚奴在线一区二区三区| 精品亚洲成a人在线观看| 紧缚捆绑精品一区二区| 国产伦精品一区二区三区免费| 精品无码三级在线观看视频| 蜜桃精品视频在线观看| 韩国av一区二区| 国产精品一卡二卡在线观看| 国产精品一区二区91| 成人精品视频一区二区三区| 99久久99久久久精品齐齐| 色先锋资源久久综合| 欧美午夜在线一二页| 91精选在线观看| 久久久久久久电影| 1区2区3区国产精品| 亚洲乱码日产精品bd| 日韩精品91亚洲二区在线观看| 欧美aaaaaa午夜精品| 国产精品小仙女| 91麻豆国产香蕉久久精品| 欧美性色黄大片| 欧美岛国在线观看| 国产精品伦理一区二区| 夜夜嗨av一区二区三区四季av| 午夜激情一区二区| 国产在线精品免费av| 99精品黄色片免费大全| 欧美日韩视频在线观看一区二区三区| 日韩精品在线网站| 亚洲欧洲av在线| 日韩高清在线电影| 成人黄色大片在线观看| 欧美喷潮久久久xxxxx| 久久久久九九视频| 亚洲一区在线视频| 国产黑丝在线一区二区三区| 色香蕉成人二区免费| 精品精品国产高清一毛片一天堂| 中文字幕免费观看一区| 香蕉加勒比综合久久 | 欧美伊人久久久久久午夜久久久久| 在线不卡中文字幕| 国产精品久久毛片av大全日韩| 亚洲午夜久久久久久久久久久| 男女性色大片免费观看一区二区| 成人一级视频在线观看| 欧美区一区二区三区| 国产精品久久久久久久久免费丝袜 | 国内精品伊人久久久久av一坑 | 亚洲一区二区五区| 国产一区二区三区免费看| 色婷婷激情久久| 久久久亚洲国产美女国产盗摄 | 17c精品麻豆一区二区免费| 日韩精品午夜视频| 成人小视频免费在线观看| 欧美一区二区三区影视| 亚洲摸摸操操av| 国产精品综合网| 欧美精品少妇一区二区三区| 成人欧美一区二区三区白人| 国产一区二三区好的| 欧美精品乱码久久久久久| 日韩美女视频一区二区| 国产精品2024| 日韩精品一区二区三区在线播放 | 国产精品中文有码| 91精品国产美女浴室洗澡无遮挡| 一区二区中文字幕在线| 国产精品资源在线| 欧美大黄免费观看| 日韩精品电影在线观看| 欧美系列在线观看| 亚洲欧美国产77777| 成人毛片老司机大片| 欧美精品一区二区精品网| 免费在线看一区| 717成人午夜免费福利电影| 亚洲福利视频导航| 色久优优欧美色久优优| 国产精品不卡在线| 国产经典欧美精品| 久久久久国产精品人| 国模大尺度一区二区三区| 日韩一区二区三区视频在线 | 波多野结衣91| 国产免费久久精品| 成人在线综合网| 日本一区二区三区四区 | 91影院在线观看| 国产精品久久毛片av大全日韩| 国产不卡在线一区| 国产精品女主播av| www.亚洲色图.com| 亚洲欧美国产毛片在线| 日本韩国一区二区三区视频| 日韩毛片在线免费观看| 日本韩国欧美在线| 亚洲国产日日夜夜| 555www色欧美视频| 久久精品国产精品亚洲精品 | 日韩区在线观看| 精品一区二区三区久久| 精品国产乱码久久久久久久 | 色综合网色综合| 亚洲精品成人天堂一二三| 欧美在线观看视频在线| 亚洲一级二级在线| 欧美一区二区三区系列电影| 久久99热这里只有精品| 亚洲精品一区二区三区精华液 | 一本色道久久综合狠狠躁的推荐 | 国产成人综合网| 成人欧美一区二区三区小说| 日本乱人伦aⅴ精品| 午夜精品福利在线| 欧美大片国产精品| 成人av一区二区三区| 亚洲影院久久精品| 精品久久久三级丝袜| 成人国产电影网| 亚欧色一区w666天堂| 日韩你懂的电影在线观看| 国产a精品视频| 伊人性伊人情综合网| 91精品国产高清一区二区三区蜜臀| 精品一区二区免费看| 中文字幕不卡的av| 欧美日韩精品二区第二页| 激情文学综合网| 亚洲人成在线观看一区二区| 6080日韩午夜伦伦午夜伦| 国产成人小视频| 亚洲一区二区中文在线| 欧美mv日韩mv| 色成人在线视频| 狠狠色丁香婷婷综合| 亚洲精品国久久99热| 久久美女艺术照精彩视频福利播放| 91香蕉视频污| 久久99国产精品成人| 一区二区三区国产| 久久久噜噜噜久久中文字幕色伊伊| 在线视频欧美区| 国产高清亚洲一区| 亚洲妇熟xx妇色黄| 亚洲国产精品高清| 欧美一激情一区二区三区| 本田岬高潮一区二区三区| 亚洲欧美综合色| 在线免费观看日本欧美| 国产自产v一区二区三区c| 亚洲精品视频在线看| 久久久久国产精品人| 欧美一区二区三区在线观看视频| 成人激情视频网站| 久久av老司机精品网站导航| 亚洲综合色视频|