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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? readme.txt

?? 發(fā)送IOCtl_SCSI_MINIPORT請(qǐng)求的例子
?? TXT
字號(hào):
This sample program consists of two parts.  First, all the necessary
source code is provided to compile a Win32 sample program that sends
an IOCtl_SCSI_MINIPORT request with a custom ControlCode to the SCSI
miniport driver.  Second, a detailed description is provided that
explains what changes the driver writer has to make to a SCSI
miniport driver to allow it to properly recognize and handle the
corresponding IOCtl request from the Win32 sample program.

Part 1 - Win32 sample

The SCSI Miniport IOCtl sample, SMPI.C, demonstrates how a Win32
application sends a user defined IOCtl Control Code to a SCSI
miniport driver. This is a simple program that is composed of four
steps.

Step 1, a handle is obtained to the SCSI miniport driver using the
Win32 API, CreateFile.  The name of the file to be opened is
\\.\Scsi0:.  As an alternative, a drive letter can be substituted for
\\.\Scsi0: (e.g. - \\.\C:).  This will map to the appropriate SCSI
miniport driver that is responsible for C:.

Step 2, the SRB_IO_CONTROL structure is filled out.  The following
items must be completed :

     HeaderLength - must be the size of an SRB_IO_CONTROL structure
     ControlCode - while strictly optional, this entry should be
              considered mandatory.  The ControlCode value is used to
              further sub-divide IOCTL_SCSI_MINIPORT requests.  The
              contents of ControlCode are defined by the SCSI miniport
              driver writer.
     Length - the size of the data buffer immediately following the
              SRB_IO_CONTROL structure.  If no additional data buffer
              is used, then this must be set to 0.

The following items of the SRB_IO_CONTROL structure are optional :

     Signature - these 8 bytes are available to help prevent IOCtl
              conflicts between various vendors
     Timeout - indicates the minimum time in seconds before the
              request has timed out.  There is no maximum Timeout for
              IOCTL_SCSI_MINIPORT.  Note, for IOCTL_SCSI_PASS_THROUGH,
              the maximum time out value is 108000 seconds (30 minutes).
     ReturnCode - this entry is filled in by the SCSI miniport to
              inform the Win32 application of the results of the
              requested action.  The contents of ReturnCode are defined
              by the SCSI miniport Driver writer.

In the SMPI.C sample, two customer defined ControlCodes are used,
SMP_RETURN_3F and SMP_PRINT_STRING.  The first requires
no additional data buffer.  The second requires that a contiguous
data buffer be appended at the end of the SRB_IO_CONTROL structure. 
The ControlCodes are defined by the SCSI miniport driver (see below).

Step 3, send the SRB_IO_CONTROL structure to the SCSI miniport driver
via the DeviceIoControl Win32 API.  The dwIoControlCode must be
IOCTL_SCSI_MINIPORT.  This particular dwIoControlCode is not
currently defined in any of the Win32 SDK header files and must be
defined in your own personal header file.  It is defined in the
Windows NT DDK header file, NTDDSCSI.H.  Including a Windows NT
DDK header file in a Win32 source file has been avoided strictly to
demonstrate the ability to write a Win32 application that accesses a
device driver without having the Windows NT DDK.

Step 4, close the handle to the SCSI miniport driver.

In SMPI.C, steps 2 and 3 are repeated to demonstrate the two
ControlCodes, SMP_RETURN_3F and SMP_PRINT_STRING.  The
first requires no extra data buffer and so 'length' is set to 0.  The
second does require additional buffer space.  The value of 100 is
used as it makes the buffer large enough to handle up to 100 bytes of
data returned by the SCSI miniport driver.

When strings are manipulated via the _memXXX functions, the
terminating null is not used.  When using strXXX commands, the
terminating null is used.  strlen does not include the terminating
null in it's total.

Part 2 - SCSI Miniport Driver

The SCSI miniport driver writer is free to define the ControlCode to
any value.  Microsoft has provided a template for defining such
values and the driver writer can use this template for determining
their ControlCode values, but are not obligated to do so.  In this
sample, SMP_RETURN_3F was defined using the template and
SMP_PRINT_STRING was defined with a random number.

If the microsoft template is to be used, then the Windows NT DDK
header file, DEVIOCTL.H, should be consulted before defining a new
IOCtl.  Also, the "Kernel-mode Driver Design Guide" contains
additional information on page B-12.  There are two documentation
errors on this page. First, the bit pattern should be :

      bit(s)     purpose
      ------     -------
      0,1        Transfer type
      2-12       Function Code
      13         Customer bit
      14,15      Required Access
      16-30      Device type
      31         Common bit

The second documentation error states that the Function Code values
can be 0x00 to 0x7F for Microsoft defined IOCtls and 0x80 to 0xFF for
user defined IOCtls.  This should be 0x000 to 0x7FF for Microsoft
defined IOCtls and 0x800 to 0xFFF for user defined IOCtls.  The
Function Code field defines the function and the Customer bit
determines whether the function is defined by Microsoft or a
customer.

The following should be added to the SCSI minport driver's header
file :

//
// IOCtl definitions
//

//
// Define the various device type values.  Note that values used by Microsoft
// Corporation are in the range 0x0000 - 0x7FFF, and 0x8000 - 0xFFFF are
// reserved for use by customers.
//

#define IOCTL_SCSI_MINIPORT_IO_CONTROL  0x8001

//
// Macro definition for defining IOCTL and FSCTL function control codes.
// Note that function codes 0x000 - 0x7FF are reserved for Microsoft
// Corporation, and 0x800 - 0xFFF are reserved for customers.
//

#define RETURNCODE0x0000003F   0x850

#define SMP_RETURN_3F     CTL_CODE(IOCTL_SCSI_MINIPORT_IO_CONTROL, RETURNCODE0x0000003F, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define SMP_PRINT_STRING  0x80000001

PCHAR Signature="MyDrvr";
PCHAR DrvrString="This string was placed in the data area by the SCSI miniport driver\n";

typedef struct {
    SRB_IO_CONTROL sic;
    UCHAR          ucDataBuffer[512];
} SRB_BUFFER, *PSRB_BUFFER;

The following should be added to the SCSI miniport driver's source
code :

#include <miniport.h>
#include <devioctl.h>
#include <ntddscsi.h>
#include "mydriver.h"

and the following should be added to the SCSI miniport driver's
StartIo routine :

case SRB_FUNCTION_IO_CONTROL:

    if (!memcmp(((PSRB_IO_CONTROL)(Srb->DataBuffer))->Signature,Signature,strlen(Signature))) {

        DebugPrint((1,"MyDriverStartIo: MiniportIOCtl not supported\n"));

        Srb->SrbStatus = SRB_STATUS_INVALID_REQUEST;

        ScsiPortNotification(RequestComplete,
                             CardPtr,
                             Srb);
        break;
        }


    DebugPrint((1,"MyDriverStartIo: Miniport IOCtl received\n"));

    DebugPrint((3,"MyDriverStartIo: Srb->DataBuffer->ControlCode = %Xh\n",
                    ((PSRB_IO_CONTROL)(Srb->DataBuffer))->ControlCode));

    switch (((PSRB_IO_CONTROL)(Srb->DataBuffer))->ControlCode) {

        case SMP_RETURN_3F :

           Srb->SrbStatus = SRB_STATUS_SUCCESS;

           ((PSRB_IO_CONTROL)(Srb->DataBuffer))->ReturnCode =
              (ULONG) 0x0000003FL;

           ScsiPortNotification(RequestComplete,
                                CardPtr,
                                Srb);
           break;

        case SMP_PRINT_STRING :

           Srb->SrbStatus = SRB_STATUS_SUCCESS;

           DebugPrint((0,"%s",((PSRB_BUFFER)(Srb->DataBuffer))->ucDataBuffer));

           strcpy(((PSRB_BUFFER)(Srb->DataBuffer))->ucDataBuffer,DrvrString);

           ScsiPortNotification(RequestComplete,
                                CardPtr,
                                Srb);
           break;

        default :

           DebugPrint((1,"MyDriverStartIo: MiniportIOCtl not supported\n"));

           Srb->SrbStatus = SRB_STATUS_INVALID_REQUEST;

           ScsiPortNotification(RequestComplete,
                                CardPtr,
                                Srb);
           break;

    } // end switch

    break;


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区中文在线| 制服丝袜日韩国产| 中文字幕va一区二区三区| 亚洲尤物在线视频观看| 国产精品素人一区二区| 国产欧美一区二区精品久导航| 一区二区三区蜜桃| 国产mv日韩mv欧美| 欧美一区二区二区| 午夜视频在线观看一区| av一二三不卡影片| 久久久噜噜噜久久人人看| 无吗不卡中文字幕| 91国偷自产一区二区开放时间| 久久久久久麻豆| 麻豆91在线播放免费| 欧美日韩国产不卡| 亚洲观看高清完整版在线观看 | 精品视频在线免费看| 中文字幕av不卡| 国产精品自产自拍| 欧美大片国产精品| 蜜臀av性久久久久av蜜臀妖精| 在线精品视频一区二区| 成人免费在线观看入口| 国产成人午夜片在线观看高清观看| 日韩亚洲欧美在线| 青青草原综合久久大伊人精品 | 99re8在线精品视频免费播放| www激情久久| 国产经典欧美精品| 美洲天堂一区二卡三卡四卡视频| 午夜一区二区三区在线观看| 中文字幕精品一区| 欧美片在线播放| 91小视频免费看| 丝袜美腿亚洲一区| 国产亚洲人成网站| 精品国产91久久久久久久妲己| 在线观看免费成人| 成人成人成人在线视频| 欧美一级片免费看| 亚洲妇女屁股眼交7| 欧美日韩国产综合一区二区三区 | zzijzzij亚洲日本少妇熟睡| 久久―日本道色综合久久| 国产一区二区三区在线看麻豆| 日韩一级视频免费观看在线| 久久精品国产99久久6| 久久在线观看免费| 99久久精品情趣| 亚洲一二三四在线| 欧美一区二区精品久久911| 国产自产高清不卡| 国产精品久久久久四虎| 在线观看日韩精品| 日本成人在线视频网站| 久久久亚洲综合| 99r精品视频| 午夜电影一区二区三区| 精品国产一二三| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 亚洲已满18点击进入久久| 精品视频1区2区| 国产激情一区二区三区| 亚洲日本va午夜在线影院| 欧美日韩五月天| 国产伦理精品不卡| 亚洲精品你懂的| 久久夜色精品国产欧美乱极品| 色中色一区二区| 国产真实乱偷精品视频免| 亚洲精品国产精华液| 2021国产精品久久精品| 在线免费观看不卡av| 国产麻豆日韩欧美久久| 日韩精品午夜视频| 1000部国产精品成人观看| 日韩欧美一区二区不卡| 91蜜桃婷婷狠狠久久综合9色| 久久精品噜噜噜成人av农村| 亚洲欧美aⅴ...| 18欧美亚洲精品| 欧美精品一区二区三区很污很色的 | 欧美日韩一区高清| 成熟亚洲日本毛茸茸凸凹| 亚洲成人精品影院| 自拍偷拍亚洲欧美日韩| 国产色91在线| 日韩精品一区二区三区视频播放| 91色porny| 国产宾馆实践打屁股91| 蜜桃久久av一区| 午夜精品福利在线| 一区二区三区精品| 亚洲天堂精品视频| 国产午夜精品理论片a级大结局| 欧美一区二区在线免费播放| 91蝌蚪porny| 成人av在线资源网站| 国产精品1024| 国产精品白丝av| 精品一区二区影视| 日本va欧美va瓶| 日日骚欧美日韩| 亚洲午夜视频在线| 亚洲一区在线观看免费观看电影高清| 国产精品久久久久影院色老大| 久久久久久97三级| 久久久久久一二三区| www成人在线观看| 国产亚洲人成网站| 日本一二三不卡| 国产精品美女久久福利网站| 国产欧美视频一区二区| 国产亚洲综合性久久久影院| 久久久久久免费网| 日本一区二区高清| 国产精品三级电影| 中文字幕日韩精品一区| 国产精品―色哟哟| 亚洲免费在线观看视频| 青青草国产精品亚洲专区无| 久久成人免费电影| 麻豆精品一区二区三区| 日韩一区二区三区高清免费看看| 91精品蜜臀在线一区尤物| 欧美日韩另类一区| 91精品国产麻豆| 精品国产伦一区二区三区免费| 久久亚洲精华国产精华液 | 日本精品裸体写真集在线观看| 91在线观看地址| 欧美四级电影网| 欧美一区二区人人喊爽| 久久综合五月天婷婷伊人| 国产精品视频一二三区| 亚洲精品免费一二三区| 日韩精品午夜视频| 懂色一区二区三区免费观看| 91视频精品在这里| 欧美一级精品在线| 国产精品国产三级国产aⅴ中文| 国产自产v一区二区三区c| www.日本不卡| 精品国产伦一区二区三区观看方式| 欧美日韩亚洲综合| 久久久噜噜噜久久中文字幕色伊伊| 日韩精品一区二区三区老鸭窝| 久久久久一区二区三区四区| 精品欧美乱码久久久久久| 欧美精品一区在线观看| 亚洲综合在线电影| 亚洲国产日韩综合久久精品| 国产精品传媒视频| 国产一区三区三区| 亚洲日本免费电影| 亚洲特黄一级片| 免费观看在线色综合| 9人人澡人人爽人人精品| 欧美丝袜自拍制服另类| 欧美精品一区男女天堂| 亚洲夂夂婷婷色拍ww47| 国产一区二区主播在线| 欧美在线观看视频一区二区| 26uuu精品一区二区| 香蕉影视欧美成人| 97国产一区二区| 精品国产一区二区三区忘忧草 | 蜜臀av一区二区| 五月婷婷综合激情| 欧美精品一区二区三区四区| 韩国精品一区二区| 国产欧美一区二区精品性色| 综合久久久久久久| 不卡影院免费观看| 欧美日韩一级视频| 有码一区二区三区| 色综合亚洲欧洲| 亚洲自拍欧美精品| 欧美精选一区二区| 国产精品乱人伦中文| 国产高清不卡一区| 欧美激情综合网| 91小视频免费看| 亚洲国产精品一区二区www| 91年精品国产| 日日摸夜夜添夜夜添亚洲女人| 欧美激情自拍偷拍| 日韩欧美中文一区二区| 欧美午夜精品一区二区三区| 狠狠色狠狠色合久久伊人| 久久精品亚洲精品国产欧美kt∨| 偷拍一区二区三区| 在线精品视频免费观看| 亚洲永久精品大片| 不卡av在线网| 欧美精彩视频一区二区三区| 国产一区二区91| 国产午夜一区二区三区|