-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathntdef.h
More file actions
24 lines (24 loc) · 770 Bytes
/
ntdef.h
File metadata and controls
24 lines (24 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <Windows.h>
#include <securitybaseapi.h>
#define IOCTL_SCSI_PASS_THROUGH_DIRECT \
CTL_CODE(FILE_DEVICE_CONTROLLER, 0x0405, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define SCSI_SECTOR_SIZE (0x200)
#define SCSIOP_READ 0x28
#define SCSIOP_WRITE 0x2A
#define PAGE_SIZE 0x1000
typedef struct _SCSI_PASS_THROUGH_DIRECT {
USHORT Length;
UCHAR ScsiStatus;
UCHAR PathId;
UCHAR TargetId;
UCHAR Lun;
UCHAR CdbLength;
UCHAR SenseInfoLength;
UCHAR DataIn;
ULONG DataTransferLength;
ULONG TimeOutValue;
PVOID DataBuffer;
ULONG SenseInfoOffset;
UCHAR Cdb[16];
} SCSI_PASS_THROUGH_DIRECT, * PSCSI_PASS_THROUGH_DIRECT;