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

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

?? smb.h

?? Sanos Operating System Kernel ----------------------------- Sanos is an OS kernel for use in PC base
?? H
?? 第 1 頁 / 共 3 頁
字號:
//
// smb.h
//
// SMB filesystem definitions
//
// Copyright (C) 2002 Michael Ringgaard. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 
// 1. Redistributions of source code must retain the above copyright 
//    notice, this list of conditions and the following disclaimer.  
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.  
// 3. Neither the name of the project nor the names of its contributors
//    may be used to endorse or promote products derived from this software
//    without specific prior written permission. 
// 
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
// SUCH DAMAGE.
// 

#ifndef SMB_H
#define SMB_H

#define ROUNDUP(x) (((x) + 3) & ~3)

#define SMB_NAMELEN             256
#define SMB_DENTRY_CACHESIZE    16
#define SMB_DIRBUF_SIZE         4096

#define SMB_RAW_CHUNKSIZE       (32 * K)
#define SMB_NORMAL_CHUNKSIZE    (4 * K)

#define EPOC                    116444736000000000     // 00:00:00 GMT on January 1, 1970
#define SECTIMESCALE            10000000               // 1 sec resolution

#define SMB_HEADER_LEN 35
#define SMB_MAX_BUFFER 4356
#define SMB_BLK_SIZE   4096

#define SMB_CLIENT_OS      "sanos"
#define SMB_CLIENT_LANMAN  "smbfs"
#define SMB_SERVICE_DISK   "A:"

//
// SMB Command Codes
//

#define SMB_COM_CREATE_DIRECTORY        0x00
#define SMB_COM_DELETE_DIRECTORY        0x01
#define SMB_COM_OPEN                    0x02
#define SMB_COM_CREATE                  0x03
#define SMB_COM_CLOSE                   0x04
#define SMB_COM_FLUSH                   0x05
#define SMB_COM_DELETE                  0x06
#define SMB_COM_RENAME                  0x07
#define SMB_COM_QUERY_INFORMATION       0x08
#define SMB_COM_SET_INFORMATION         0x09
#define SMB_COM_READ                    0x0A
#define SMB_COM_WRITE                   0x0B
#define SMB_COM_LOCK_BYTE_RANGE         0x0C
#define SMB_COM_UNLOCK_BYTE_RANGE       0x0D
#define SMB_COM_CREATE_TEMPORARY        0x0E
#define SMB_COM_CREATE_NEW              0x0F
#define SMB_COM_CHECK_DIRECTORY         0x10
#define SMB_COM_PROCESS_EXIT            0x11
#define SMB_COM_SEEK                    0x12
#define SMB_COM_LOCK_AND_READ           0x13
#define SMB_COM_WRITE_AND_UNLOCK        0x14
#define SMB_COM_READ_RAW                0x1A
#define SMB_COM_READ_MPX                0x1B
#define SMB_COM_READ_MPX_SECONDARY      0x1C
#define SMB_COM_WRITE_RAW               0x1D
#define SMB_COM_WRITE_MPX               0x1E
#define SMB_COM_WRITE_COMPLETE          0x20
#define SMB_COM_SET_INFORMATION2        0x22
#define SMB_COM_QUERY_INFORMATION2      0x23
#define SMB_COM_LOCKING_ANDX            0x24
#define SMB_COM_TRANSACTION             0x25
#define SMB_COM_TRANSACTION_SECONDARY   0x26
#define SMB_COM_IOCTL                   0x27
#define SMB_COM_IOCTL_SECONDARY         0x28
#define SMB_COM_COPY                    0x29
#define SMB_COM_MOVE                    0x2A
#define SMB_COM_ECHO                    0x2B
#define SMB_COM_WRITE_AND_CLOSE         0x2C
#define SMB_COM_OPEN_ANDX               0x2D
#define SMB_COM_READ_ANDX               0x2E
#define SMB_COM_WRITE_ANDX              0x2F
#define SMB_COM_CLOSE_AND_TREE_DISC     0x31
#define SMB_COM_TRANSACTION2            0x32
#define SMB_COM_TRANSACTION2_SECONDARY  0x33
#define SMB_COM_FIND_CLOSE2             0x34
#define SMB_COM_FIND_NOTIFY_CLOSE       0x35
#define SMB_COM_TREE_CONNECT            0x70
#define SMB_COM_TREE_DISCONNECT         0x71
#define SMB_COM_NEGOTIATE               0x72
#define SMB_COM_SESSION_SETUP_ANDX      0x73
#define SMB_COM_LOGOFF_ANDX             0x74
#define SMB_COM_TREE_CONNECT_ANDX       0x75
#define SMB_COM_QUERY_INFORMATION_DISK  0x80
#define SMB_COM_SEARCH                  0x81
#define SMB_COM_FIND                    0x82
#define SMB_COM_FIND_UNIQUE             0x83
#define SMB_COM_NT_TRANSACT             0xA0
#define SMB_COM_NT_TRANSACT_SECONDARY   0xA1
#define SMB_COM_NT_CREATE_ANDX          0xA2
#define SMB_COM_NT_CANCEL               0xA4
#define SMB_COM_OPEN_PRINT_FILE         0xC0
#define SMB_COM_WRITE_PRINT_FILE        0xC1
#define SMB_COM_CLOSE_PRINT_FILE        0xC2
#define SMB_COM_GET_PRINT_QUEUE         0xC3
#define SMB_COM_READ_BULK               0xD8
#define SMB_COM_WRITE_BULK              0xD9
#define SMB_COM_WRITE_BULK_DATA         0xDA

//
// SMB TRANS2 sub commands

#define TRANS2_OPEN2			0x00	// Create file with extended attributes
#define TRANS2_FIND_FIRST2		0x01	// Begin search for files
#define TRANS2_FIND_NEXT2		0x02	// Resume search for files
#define TRANS2_QUERY_FS_INFORMATION	0x03	// Get file system information
#define TRANS2_QUERY_PATH_INFORMATION	0x05	// Get information about a named file or directory
#define TRANS2_SET_PATH_INFORMATION	0x06	// Set information about a named file or directory
#define TRANS2_QUERY_FILE_INFORMATION	0x07	// Get information about a handle
#define TRANS2_SET_FILE_INFORMATION	0x08	// Set information by handle
#define TRANS2_FSCTL			0x09	// Not implemented by NT server
#define TRANS2_IOCTL2			0x0A	// Not implemented by NT server
#define TRANS2_FIND_NOTIFY_FIRST	0x0B	// Not implemented by NT server
#define TRANS2_FIND_NOTIFY_NEXT		0x0C	// Not implemented by NT server
#define TRANS2_CREATE_DIRECTORY		0x0D	// Create directory with extended attributes
#define TRANS2_SESSION_SETUP		0x0E	// Session setup with extended security information
#define TRANS2_GET_DFS_REFERRAL		0x10	// Get a DFS referral
#define TRANS2_REPORT_DFS_INCONSISTENCY	0x11	// Report a DFS knowledge inconsistency

//
// SMB protocol capability flags
//

#define SMB_CAP_RAW_MODE		0x0001
#define SMB_CAP_MPX_MODE		0x0002
#define SMB_CAP_UNICODE			0x0004
#define SMB_CAP_LARGE_FILES		0x0008
#define SMB_CAP_NT_SMBS			0x0010
#define SMB_CAP_RPC_REMOTE_APIS		0x0020
#define SMB_CAP_STATUS32		0x0040
#define SMB_CAP_LEVEL_II_OPLOCKS	0x0080
#define SMB_CAP_LOCK_AND_READ		0x0100
#define SMB_CAP_NT_FIND			0x0200
#define SMB_CAP_DFS			0x1000
#define SMB_CAP_LARGE_READX		0x4000

//
// SMB file attributes and flags
//

#define SMB_FILE_ATTR_ARCHIVE		0x020	// The file has not been archived since it was last modified.
#define SMB_FILE_ATTR_COMPRESSED	0x800	// The file or directory is compressed. 
#define SMB_FILE_ATTR_NORMAL		0x080	// The file has no other attributes set. 
#define SMB_FILE_ATTR_HIDDEN		0x002	// The file is hidden. 
#define SMB_FILE_ATTR_READONLY		0x001	// The file is read only. 
#define SMB_FILE_ATTR_TEMPORARY		0x100	// The file is temporary
#define SMB_FILE_ATTR_DIRECTORY		0x010	// The file is a directory
#define SMB_FILE_ATTR_SYSTEM		0x004	// The file is part of or is used exclusively by the operating system.

#define SMB_FILE_FLAG_WRITE_THROUGH     0x80000000
#define SMB_FILE_FLAG_NO_BUFFERING      0x20000000
#define SMB_FILE_FLAG_RANDOM_ACCESS     0x10000000
#define SMB_FILE_FLAG_SEQUENTIAL_SCAN   0x08000000
#define SMB_FILE_FLAG_DELETE_ON_CLOSE   0x04000000
#define SMB_FILE_FLAG_BACKUP_SEMANTICS  0x02000000
#define SMB_FILE_FLAG_POSIX_SEMANTICS   0x01000000

//
// SMB access mask

#define SMB_ACCESS_DELETE               0x00010000
#define SMB_ACCESS_READ_CONTROL         0x00020000
#define SMB_ACCESS_WRITE_DAC            0x00040000
#define SMB_ACCESS_WRITE_OWNER          0x00080000
#define SMB_ACCESS_SYNCHRONIZE          0x00100000

#define SMB_ACCESS_GENERIC_READ         0x80000000
#define SMB_ACCESS_GENERIC_WRITE        0x40000000
#define SMB_ACCESS_GENERIC_EXECUTE      0x20000000
#define SMB_ACCESS_GENERIC_ALL          0x10000000

//
// SMB file sharing access
//

#define SMB_FILE_SHARE_READ		0x00000001
#define SMB_FILE_SHARE_WRITE		0x00000002
#define SMB_FILE_SHARE_DELETE	        0x00000004

//
// SMB file create disposition
//

#define SMB_OPEN_EXISTING	1	// Fail if not exist, open if exists
#define SMB_CREATE_NEW		2	// Create if not exist, fail if exist
#define SMB_OPEN_ALWAYS		3	// Create if not exist, open if exists
#define SMB_TRUNCATE_EXISTING	4	// Fail if not exist, truncate if exists
#define SMB_CREATE_ALWAYS	5	// Create if not exist, trunc if exist

//
// SMB impersonation levels
//

#define SMB_SECURITY_ANONYMOUS		0
#define SMB_SECURITY_IDENTIFICATION	1
#define SMB_SECURITY_IMPERSONATION	2
#define SMB_SECURITY_DELEGATION		3

//
// SMB filesystem information levels
//

#define SMB_INFO_ALLOCATION		1
#define SMB_INFO_VOLUME			2
#define SMB_QUERY_FS_VOLUME_INFO	0x102
#define SMB_QUERY_FS_SIZE_INFO		0x103
#define SMB_QUERY_FS_DEVICE_INFO	0x104
#define SMB_QUERY_FS_ATTRIBUTE_INFO	0x105

//
// SMB file information levels
//

#define SMB_INFO_STANDARD		1
#define SMB_INFO_QUERY_EA_SIZE		2
#define SMB_INFO_QUERY_EAS_FROM_LIST	3
#define SMB_INFO_QUERY_ALL_EAS		4
#define SMB_INFO_IS_NAME_VALID		6
#define SMB_QUERY_FILE_BASIC_INFO	0x101
#define SMB_QUERY_FILE_STANDARD_INFO	0x102
#define SMB_QUERY_FILE_EA_INFO		0x103
#define SMB_QUERY_FILE_NAME_INFO	0x104
#define SMB_QUERY_FILE_ALL_INFO		0x107
#define SMB_QUERY_FILE_ALT_NAME_INFO	0x108
#define SMB_QUERY_FILE_STREAM_INFO	0x109
#define SMB_QUERY_FILE_COMPRESSION_INFO	0x10B

//
// FindFirst/FindNext flags
//

#define SMB_CLOSE_AFTER_FIRST		(1 << 0)
#define SMB_CLOSE_IF_END		(1 << 1)
#define SMB_REQUIRE_RESUME_KEY		(1 << 2)
#define SMB_CONTINUE_BIT		(1 << 3)

//
// Error Classes
//

#define SMB_SUCCESS		0	// The request was successful.
#define SMB_ERRDOS		0x01	// Error is from the core DOS operating system set.
#define SMB_ERRSRV		0x02	// Error is generated by the server network file manager.
#define SMB_ERRHRD		0x03	// Error is an hardware error.
#define SMB_ERRCMD		0xFF	// Command was not in the "SMB" format.

//
// SMB X/Open error codes for the ERRdos error class
//

#define ERRbadfunc		1       // Invalid function (or system call)
#define ERRbadfile		2       // File not found (pathname error)
#define ERRbadpath		3       // Directory not found
#define ERRnofids		4       // Too many open files
#define ERRnoaccess		5       // Access denied
#define ERRbadfid		6       // Invalid fid
#define ERRbadmcb		7       // Memory control blocks destroyed
#define ERRnomem		8       // Out of memory
#define ERRbadmem		9       // Invalid memory block address
#define ERRbadenv		10      // Invalid environment
#define ERRbadformat		11      // Invalid format
#define ERRbadaccess		12      // Invalid open mode
#define ERRbaddata		13      // Invalid data (only from ioctl call)
#define ERRres			14      // Reserved
#define ERRbaddrive		15      // Invalid drive
#define ERRremcd		16      // Attempt to delete current directory
#define ERRdiffdevice		17      // Rename/move across different filesystems
#define ERRnofiles		18      // No more files found in file search
#define ERRbadshare		32      // Share mode on file conflict with open mode
#define ERRlock			33      // Lock request conflicts with existing lock
#define ERRfilexists		80      // File in operation already exists
#define ERRundocumented1	123     // Invalid name?? e.g. .tmp*
#define ERRbadpipe		230     // Named pipe invalid
#define ERRpipebusy		231     // All instances of pipe are busy
#define ERRpipeclosing		232     // Named pipe close in progress
#define ERRnotconnected		233     // No process on other end of named pipe
#define ERRmoredata		234     // More data to be returned

//
// Error codes for the ERRSRV class
//

#define ERRerror	        1       // Non specific error code
#define ERRbadpw	        2       // Bad password
#define ERRbadtype	        3       // Reserved
#define ERRaccess	        4       // No permissions to do the requested operation
#define ERRinvnid	        5       // Tid invalid
#define ERRinvnetname	        6       // Invalid servername
#define ERRinvdevice	        7       // Invalid device
#define ERRqfull	        49      // Print queue full
#define ERRqtoobig	        50      // Queued item too big
#define ERRinvpfid	        52      // Invalid print file in smb_fid
#define ERRsmbcmd	        64      // Unrecognised command
#define ERRsrverror	        65      // SMB server internal error
#define ERRfilespecs	        67      // Fid and pathname invalid combination
#define ERRbadlink	        68      // Reserved
#define ERRbadpermits	        69      // Access specified for a file is not valid
#define ERRbadpid	        70      // Reserved
#define ERRsetattrmode	        71      // Attribute mode invalid
#define ERRpaused	        81      // Message server paused
#define ERRmsgoff	        82      // Not receiving messages
#define ERRnoroom	        83      // No room for message
#define ERRrmuns	        87      // Too many remote usernames
#define ERRtimeout	        88      // Operation timed out
#define ERRnoresource	        89	// No resources currently available for request.
#define ERRtoomanyuids	        90      // Too many userids
#define ERRbaduid	        91      // Bad userid
#define ERRuseMPX	        250	// Temporarily unable to use raw mode, use MPX mode
#define ERRuseSTD	        251	// Temporarily unable to use raw mode, use std.mode
#define ERRcontMPX	        252     // Resume MPX mode
#define ERRnosupport	        0xFFFF

//
// Error codes for the ERRHRD class
//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色999日韩国产欧美一区二区| 日本高清无吗v一区| 国产在线看一区| 色综合久久久久网| 亚洲精品一区二区在线观看| 亚洲精品国产a| 懂色av一区二区三区免费观看| 欧美日韩不卡一区| 亚洲精品乱码久久久久久久久 | 国产精品午夜电影| 五月综合激情婷婷六月色窝| 91亚洲永久精品| 国产喷白浆一区二区三区| 天天影视网天天综合色在线播放| 成人av电影免费在线播放| 精品国产第一区二区三区观看体验| 国产成人亚洲综合a∨婷婷| 91精品国模一区二区三区| 亚洲日本va午夜在线影院| 国产乱国产乱300精品| 日韩你懂的在线播放| 亚洲丰满少妇videoshd| 色哟哟国产精品| 中文字幕一区二区三区乱码在线| 国产精品亚洲а∨天堂免在线| 91精品国产综合久久精品 | 97精品电影院| 国产精品美女久久福利网站| 国产精品香蕉一区二区三区| 日韩精品一区二区三区视频在线观看| 五月开心婷婷久久| 欧美日韩国产高清一区| 一区二区三区四区五区视频在线观看| 95精品视频在线| 亚洲欧洲综合另类在线| 波多野结衣精品在线| 麻豆精品视频在线观看免费| 欧美日韩不卡一区二区| 亚洲另类在线一区| 在线观看日韩一区| 亚洲一区日韩精品中文字幕| 欧洲视频一区二区| 日韩电影在线免费| 日韩女优制服丝袜电影| 国产一区二区按摩在线观看| 久久久不卡网国产精品二区| 国产69精品久久99不卡| 国产精品免费av| 在线视频观看一区| 亚洲超碰97人人做人人爱| 欧美丰满嫩嫩电影| 国产曰批免费观看久久久| 亚洲国产精品成人综合| 91在线一区二区| 亚洲h在线观看| 精品伦理精品一区| 国产精品中文字幕一区二区三区| 国产亚洲欧美在线| 久久久久99精品国产片| 成人午夜av电影| 亚洲日本va在线观看| 欧美精品久久99| 国产乱码精品一区二区三| 自拍偷拍国产精品| 日韩一区二区三| 成人v精品蜜桃久久一区| 亚洲影院久久精品| 久久久综合激的五月天| 在线免费观看日韩欧美| 国内成人免费视频| 亚洲欧美激情小说另类| 欧美一级午夜免费电影| 不卡av免费在线观看| 日韩在线卡一卡二| 中文字幕一区二区三区视频| 欧美二区在线观看| 91在线码无精品| 卡一卡二国产精品| 亚洲精品视频在线看| 2020国产精品自拍| 欧美伊人久久大香线蕉综合69| 国产精品一二三四| 婷婷成人激情在线网| 欧美国产激情二区三区| 在线播放中文字幕一区| 91视频.com| 国产精品一品二品| 日韩av中文字幕一区二区三区| 自拍偷拍欧美激情| 欧美国产日产图区| 精品奇米国产一区二区三区| 欧美性猛交xxxx黑人交| 成人免费毛片aaaaa**| 久久精品国产精品亚洲精品| 亚洲午夜私人影院| 亚洲精品水蜜桃| 中文字幕中文在线不卡住| 久久久噜噜噜久久中文字幕色伊伊| 欧美色图在线观看| 日本电影亚洲天堂一区| 99久久综合精品| 岛国精品在线观看| 国产一区二区三区免费播放| 久久国产精品色婷婷| 日韩成人精品视频| 国产精品一区二区久久精品爱涩| 亚洲午夜视频在线| 亚洲一区二区在线观看视频| 亚洲欧美区自拍先锋| 中文字幕一区二区三区在线播放| 亚洲国产精品v| 国产精品家庭影院| 国产精品的网站| 国产精品久久久久aaaa| 中文字幕在线不卡视频| 国产精品入口麻豆九色| 国产精品麻豆网站| 国产精品国产三级国产aⅴ入口 | 国产亚洲欧美在线| 久久这里只有精品6| 2021国产精品久久精品| 国产亚洲欧美在线| 中文字幕在线不卡国产视频| 亚洲色图欧洲色图婷婷| 亚洲影视在线播放| 青青草97国产精品免费观看无弹窗版| 日本不卡一区二区三区| 麻豆国产精品视频| 国产高清成人在线| eeuss鲁片一区二区三区在线看| 91麻豆自制传媒国产之光| 欧美日韩专区在线| 精品国产一区二区三区久久久蜜月| www激情久久| 国产精品区一区二区三区| 亚洲视频一区二区免费在线观看| 一区二区不卡在线播放| 婷婷成人综合网| 国产伦精品一区二区三区在线观看| 国产成人精品aa毛片| 色呦呦国产精品| 欧美一区二区视频在线观看| 精品久久久久久无| 日韩伦理免费电影| 日韩精品电影一区亚洲| 国产精品538一区二区在线| 91视频.com| 欧美变态tickling挠脚心| 国产精品久久久久久久久晋中 | 国产亚洲精品中文字幕| 亚洲精品一二三四区| 蜜臀久久99精品久久久久宅男 | 国产精品欧美一区喷水| 成人美女视频在线看| 欧美探花视频资源| 久久日一线二线三线suv| 一区二区三区在线观看动漫| 蜜桃免费网站一区二区三区| 成人av中文字幕| 欧美一区二区三区系列电影| 亚洲欧洲一区二区三区| 精品一区二区免费看| 色就色 综合激情| 久久久亚洲精品一区二区三区| 亚洲日穴在线视频| 国产露脸91国语对白| 欧美亚洲日本国产| 中文字幕不卡在线观看| 蜜乳av一区二区| 欧洲在线/亚洲| 国产精品水嫩水嫩| 韩国精品主播一区二区在线观看| 91国产丝袜在线播放| 国产精品欧美一区二区三区| 蜜臀久久99精品久久久久宅男| 在线免费观看视频一区| 中文字幕中文在线不卡住| 黑人巨大精品欧美黑白配亚洲| 欧美三级韩国三级日本三斤| 亚洲视频一区在线| 成人精品鲁一区一区二区| 欧美电视剧免费全集观看| 午夜视频一区在线观看| 一本到高清视频免费精品| 成人激情黄色小说| 午夜av区久久| 99精品视频中文字幕| 26uuu亚洲| 免费久久99精品国产| 欧美伦理影视网| 一区二区三区在线视频观看58| 粉嫩一区二区三区性色av| 精品久久久久久无| 免费欧美日韩国产三级电影| 91麻豆精品国产91久久久资源速度 | 激情综合五月婷婷| 91精品国产欧美一区二区18| 国产露脸91国语对白| 久久综合狠狠综合久久综合88| 久久国产尿小便嘘嘘|