在c#中怎样调用地址传递的机构体?
Private Const MAX_KEY_SIZE = 64
Private Const MAX_IV_SIZE = 16
Private Const MAXNR = 14
Private Const DIR_ENCRYPT = 0
Private Const DIR_DECRYPT = 1
Private Const MODE_ECB = 1
Private Const MODE_CBC = 2
Private Const MODE_CFB1 = 3
Private Type KeyInstance
direction As Byte
keyLen As Long
keyMaterial(MAX_KEY_SIZE + 1) As Byte
Nr As Long
rk(4 * (MAXNR + 1)) As Long
ek(4 * (MAXNR + 1)) As Long
End Type
Private Type CipherInstance
mode As Byte
iv(MAX_IV_SIZE) As Byte
End Type
Private Declare Function makeKeyPStdCall Lib "Rijndael.dll" (ByRef key As KeyInstance, ByVal dir As Byte, ByVal keyLen As Long, ByRef keyPhrase As Byte,
ByVal keyPhraseLen As Long) As Long
Dim kInst As KeyInstance
Dim cInst As CipherInstance
makeKeyPStdCall kInst, DIR_ENCRYPT, 128, bytSignature(0), 32
请问怎用在c# 中调用?