-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathIORequest.cs
More file actions
42 lines (33 loc) · 901 Bytes
/
IORequest.cs
File metadata and controls
42 lines (33 loc) · 901 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Runtime.InteropServices;
namespace WSCT.Wrapper.WinSCard
{
internal sealed class IoRequest : AbstractIoRequest
{
#region >> Properties
public ScardIoRequest ScIoRequest;
public override UInt32 Protocol
{
get { return ScIoRequest.protocol; }
set { ScIoRequest.protocol = value; }
}
public override UInt32 PciLength
{
get { return ScIoRequest.pciLength; }
set { ScIoRequest.pciLength = value; }
}
#endregion
#region >> Constructors
public IoRequest()
{
ScIoRequest = new ScardIoRequest();
}
public IoRequest(UInt32 protocol)
: this()
{
Protocol = protocol;
PciLength = (uint)Marshal.SizeOf(ScIoRequest);
}
#endregion
}
}