亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久久精品tv| 在线播放欧美女士性生活| 蜜臀91精品一区二区三区| 一区二区三区免费看视频| 亚洲欧美一区二区三区国产精品| 一区在线观看视频| 亚洲永久免费视频| 亚洲国产日日夜夜| 日本成人在线网站| 国产一区二区精品久久| 国产激情偷乱视频一区二区三区| 国产成人在线色| 99综合影院在线| 欧美日韩一区三区| 日韩精品一区二区在线观看| 国产午夜精品久久久久久免费视| 国产日韩欧美精品一区| 1024成人网| 天堂精品中文字幕在线| 国产在线视视频有精品| 99精品一区二区三区| 欧美熟乱第一页| 久久婷婷色综合| 亚洲人吸女人奶水| 美女脱光内衣内裤视频久久影院| 国产精品18久久久久久vr| 96av麻豆蜜桃一区二区| 欧美日韩一本到| 中文字幕av一区二区三区| 亚洲精品va在线观看| 久久精品国产一区二区三| youjizz国产精品| 欧美精品色一区二区三区| 国产亚洲成aⅴ人片在线观看 | 国产精品视频线看| 亚洲高清在线精品| 成人永久aaa| 欧美丰满嫩嫩电影| 亚洲三级在线免费| 国内精品伊人久久久久影院对白| 日本韩国精品在线| 国产亚洲女人久久久久毛片| 日韩精品视频网| 色综合久久久久久久| 国产三级精品三级在线专区| 日韩电影在线一区| 91国产精品成人| 国产精品视频九色porn| 精品一二线国产| 欧美日韩在线一区二区| 综合激情成人伊人| 国产99久久久久| 久久综合久久综合九色| 石原莉奈一区二区三区在线观看| 99国产精品国产精品毛片| www成人在线观看| 日韩电影免费在线看| 欧洲色大大久久| 亚洲美女少妇撒尿| 91日韩一区二区三区| 国产精品三级电影| 国产成人精品免费视频网站| 精品对白一区国产伦| 免费av网站大全久久| 欧美日韩国产色站一区二区三区| 亚洲欧美日韩国产手机在线 | 56国语精品自产拍在线观看| 国产精品美女一区二区| 国产精品 欧美精品| 久久久久国产精品人| 国产精品一区三区| 久久精品人人做人人综合| 国产精品一品二品| 国产日韩精品久久久| 国产超碰在线一区| 中文欧美字幕免费| 91丨porny丨首页| 亚洲乱码日产精品bd| 欧美丝袜第三区| 日韩成人精品在线| 久久天天做天天爱综合色| 国产一区二区三区免费观看| 欧美国产日韩a欧美在线观看| 高清beeg欧美| 亚洲欧美电影院| 欧美色图第一页| 麻豆成人久久精品二区三区小说| 欧美成人a∨高清免费观看| 国产乱子伦视频一区二区三区| 久久精品欧美日韩精品| 91美女蜜桃在线| 日韩成人av影视| 久久久五月婷婷| 91久久免费观看| 免费av网站大全久久| 国产日韩欧美综合在线| 在线观看国产一区二区| 日本不卡123| 国产日本一区二区| 日本高清不卡视频| 麻豆视频观看网址久久| 中文字幕第一区二区| 欧美性做爰猛烈叫床潮| 国产主播一区二区三区| 亚洲理论在线观看| 亚洲精品一区在线观看| 色吧成人激情小说| 激情五月婷婷综合| 亚洲人吸女人奶水| 欧美精品一区二区精品网| 99久久久精品| 精品一区二区三区久久久| 亚洲三级小视频| 欧美电影免费提供在线观看| 91日韩在线专区| 国内精品不卡在线| 午夜精品久久久久久久久久久| 欧美国产1区2区| 91精品久久久久久蜜臀| 91视频免费看| 国产成人精品免费| 久久精品国内一区二区三区| 一区二区三区四区在线免费观看| 欧美精品一区在线观看| 欧美日本在线看| 国内精品视频一区二区三区八戒| 国产丝袜美腿一区二区三区| 精一区二区三区| 91精品久久久久久久91蜜桃 | 日韩一二在线观看| 99国产精品久久久| 国产乱理伦片在线观看夜一区| 石原莉奈一区二区三区在线观看| 国产精品久久久久久久裸模 | 亚洲精品欧美二区三区中文字幕| 精品国产麻豆免费人成网站| 欧美日韩一区二区三区高清| 91麻豆精品一区二区三区| 国产精品夜夜嗨| 国产一区二区精品久久| 久久精品免费看| 九九九精品视频| 免费av成人在线| 男女男精品视频网| 奇米在线7777在线精品| 成人免费三级在线| 成人免费不卡视频| 一区二区三区毛片| 亚洲精品久久久蜜桃| 亚洲免费视频中文字幕| 亚洲另类色综合网站| 亚洲精品国产高清久久伦理二区| 国产精品电影一区二区三区| 国产精品国产三级国产专播品爱网 | 久久草av在线| 韩国av一区二区三区| 国产一区二区免费看| 紧缚奴在线一区二区三区| 国产一区二区三区观看| 成人av在线资源| 欧洲激情一区二区| 欧美精品免费视频| 日韩三级精品电影久久久 | 欧美三级日韩三级国产三级| 欧美男男青年gay1069videost | 欧美激情一区二区三区四区| 国产精品沙发午睡系列990531| 成人免费一区二区三区视频| 亚洲综合丁香婷婷六月香| 日本成人在线不卡视频| 黄网站免费久久| 一本一道波多野结衣一区二区| 欧美日韩亚洲高清一区二区| 精品人在线二区三区| 国产精品视频你懂的| 亚洲综合999| 国产精品一区二区果冻传媒| eeuss鲁片一区二区三区| 欧美四级电影在线观看| 精品福利一二区| 亚洲欧美日韩成人高清在线一区| 亚洲成人黄色小说| 国产成人综合自拍| 欧美三级日韩三级| 国产日韩亚洲欧美综合| 首页欧美精品中文字幕| 成人午夜在线免费| 日韩视频中午一区| 最新中文字幕一区二区三区| 免费人成黄页网站在线一区二区| 国产成人综合网| 欧美日韩高清在线| 国产日韩av一区| 麻豆精品一二三| 在线免费观看日韩欧美| 国产欧美一区二区在线| 免费一区二区视频| 欧美三级在线视频| 亚洲精选视频在线| 国产**成人网毛片九色 |