547 references to NativeMethods
System.Messaging (547)
System\Messaging\AccessControlEntryType.cs (4)
15
Allow =
NativeMethods
.GRANT_ACCESS,
20
Set =
NativeMethods
.SET_ACCESS,
25
Deny =
NativeMethods
.DENY_ACCESS,
30
Revoke =
NativeMethods
.REVOKE_ACCESS
System\Messaging\AccessControlList.cs (5)
124
NativeMethods
.ExplicitAccess[] entries = new
NativeMethods
.ExplicitAccess[ACECount];
161
entries[i].MultipleTrusteeOperation =
NativeMethods
.NO_MULTIPLE_TRUSTEE;
162
entries[i].TrusteeForm =
NativeMethods
.TRUSTEE_IS_SID;
168
if (err !=
NativeMethods
.ERROR_SUCCESS)
System\Messaging\Acknowledgement.cs (16)
41
AccessDenied =
NativeMethods
.MESSAGE_CLASS_ACCESS_DENIED,
48
BadDestinationQueue =
NativeMethods
.MESSAGE_CLASS_BAD_DESTINATION_QUEUE,
55
BadEncryption =
NativeMethods
.MESSAGE_CLASS_BAD_ENCRYPTION,
62
BadSignature =
NativeMethods
.MESSAGE_CLASS_BAD_SIGNATURE,
68
CouldNotEncrypt =
NativeMethods
.MESSAGE_CLASS_COULD_NOT_ENCRYPT,
74
HopCountExceeded =
NativeMethods
.MESSAGE_CLASS_HOP_COUNT_EXCEEDED,
81
NotTransactionalQueue =
NativeMethods
.MESSAGE_CLASS_NOT_TRANSACTIONAL_QUEUE,
88
NotTransactionalMessage =
NativeMethods
.MESSAGE_CLASS_NOT_TRANSACTIONAL_MESSAGE,
95
Purged =
NativeMethods
.MESSAGE_CLASS_PURGED,
102
QueueDeleted =
NativeMethods
.MESSAGE_CLASS_QUEUE_DELETED,
108
QueueExceedMaximumSize =
NativeMethods
.MESSAGE_CLASS_QUEUE_EXCEED_QUOTA,
114
QueuePurged =
NativeMethods
.MESSAGE_CLASS_QUEUE_PURGED,
120
ReachQueue =
NativeMethods
.MESSAGE_CLASS_REACH_QUEUE,
127
ReachQueueTimeout =
NativeMethods
.MESSAGE_CLASS_REACH_QUEUE_TIMEOUT,
134
ReceiveTimeout =
NativeMethods
.MESSAGE_CLASS_RECEIVE_TIMEOUT,
141
Receive =
NativeMethods
.MESSAGE_CLASS_RECEIVE,
System\Messaging\AcknowledgeTypes.cs (6)
32
PositiveArrival =
NativeMethods
.ACKNOWLEDGE_POSITIVE_ARRIVAL,
41
PositiveReceive =
NativeMethods
.ACKNOWLEDGE_POSITIVE_RECEIVE,
50
NegativeReceive =
NativeMethods
.ACKNOWLEDGE_NEGATIVE_RECEIVE,
58
None =
NativeMethods
.ACKNOWLEDGE_NONE,
68
NotAcknowledgeReachQueue =
NativeMethods
.ACKNOWLEDGE_NEGATIVE_ARRIVAL,
79
NativeMethods
.ACKNOWLEDGE_NEGATIVE_ARRIVAL,
System\Messaging\ActiveXMessageFormatter.cs (29)
124
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
125
size = message.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE);
137
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
138
size = message.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE) / 2;
149
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
150
size = message.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE);
156
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
164
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
169
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
174
bytes = message.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
229
return
NativeMethods
.OleLoadFromStream(comStream, ref
NativeMethods
.IID_IUnknown);
259
message.properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, this.internalBuffer);
260
message.properties.AdjustSize(
NativeMethods
.MESSAGE_PROPID_BODY, size);
261
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE, size);
262
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE, VT_LPWSTR);
272
message.properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, this.internalBuffer);
273
message.properties.AdjustSize(
NativeMethods
.MESSAGE_PROPID_BODY, bytes.Length);
274
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE, bytes.Length);
275
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE, VT_UI1 | VT_VECTOR);
289
message.properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, this.internalBuffer);
290
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE, size);
291
message.properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE, VT_LPWSTR);
390
NativeMethods
.OleSaveToStream(pstream, comStream);
492
ExternalException e = new ExternalException(msg,
NativeMethods
.E_FAIL);
498
ExternalException e = new ExternalException(Res.GetString(Res.NotImplemented),
NativeMethods
.E_NOTIMPL);
531
case
NativeMethods
.STREAM_SEEK_SET:
542
case
NativeMethods
.STREAM_SEEK_END:
553
case
NativeMethods
.STREAM_SEEK_CUR:
System\Messaging\CryptographicProviderType.cs (11)
33
RsaFull =
NativeMethods
.PROV_RSA_FULL,
39
RsqSig =
NativeMethods
.PROV_RSA_SIG,
45
Dss =
NativeMethods
.PROV_DSS,
51
Fortezza =
NativeMethods
.PROV_FORTEZZA,
56
MicrosoftExchange =
NativeMethods
.PROV_MS_EXCHANGE,
61
Ssl =
NativeMethods
.PROV_SSL,
67
SttMer =
NativeMethods
.PROV_STT_MER,
73
SttAcq =
NativeMethods
.PROV_STT_ACQ,
79
SttBrnd =
NativeMethods
.PROV_STT_BRND,
85
SttRoot =
NativeMethods
.PROV_STT_ROOT,
91
SttIss =
NativeMethods
.PROV_STT_ISS,
System\Messaging\EncryptionAlgorithm.cs (2)
46
Rc2 =
NativeMethods
.CALG_RC2,
59
Rc4 =
NativeMethods
.CALG_RC4,
System\Messaging\EncryptionRequired.cs (3)
32
None =
NativeMethods
.QUEUE_PRIVACY_LEVEL_NONE,
41
Optional =
NativeMethods
.QUEUE_PRIVACY_LEVEL_OPTIONAL,
49
Body =
NativeMethods
.QUEUE_PRIVACY_LEVEL_BODY
System\Messaging\HashAlgorithm.cs (8)
42
Md2 =
NativeMethods
.CALG_MD2,
51
Md4 =
NativeMethods
.CALG_MD4,
59
Md5 =
NativeMethods
.CALG_MD5,
68
Sha =
NativeMethods
.CALG_SHA,
76
Mac =
NativeMethods
.CALG_MAC,
85
Sha256 =
NativeMethods
.CALG_SHA256,
94
Sha384 =
NativeMethods
.CALG_SHA384,
103
Sha512 =
NativeMethods
.CALG_SHA512,
System\Messaging\Interop\MachinePropertyVariants.cs (1)
17
: base(5,
NativeMethods
.MACHINE_BASE + 1)
System\Messaging\Interop\MessagePropertyVariants.cs (1)
82
private int basePropertyId =
NativeMethods
.MESSAGE_PROPID_BASE + 1;
System\Messaging\Interop\QueuePropertyVariants.cs (1)
20
: base(MaxQueuePropertyIndex,
NativeMethods
.QUEUE_PROPID_BASE + 1)
System\Messaging\Interop\UnsafeNativeMethods.cs (3)
205
public static extern int MQSetQueueSecurity(string formatName, int SecurityInformation,
NativeMethods
.SECURITY_DESCRIPTOR SecurityDescriptor);
211
public static extern bool SetSecurityDescriptorDacl(
NativeMethods
.SECURITY_DESCRIPTOR pSD, bool daclPresent, IntPtr pDacl, bool daclDefaulted);
214
public static extern bool InitializeSecurityDescriptor(
NativeMethods
.SECURITY_DESCRIPTOR SD, int revision);
System\Messaging\Message.cs (287)
75
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_MSGID, new byte[MessageIdSize]);
116
properties.SetUI2(
NativeMethods
.MESSAGE_PROPID_CLASS, (short)0);
119
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_ACKNOWLEDGE, (byte)0);
123
properties.SetString(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE, new byte[DefaultQueueNameSize * 2]);
124
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN, DefaultQueueNameSize);
128
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, new byte[filter.bodySize]);
129
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE, filter.bodySize);
130
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE, 0);
134
properties.SetString(
NativeMethods
.MESSAGE_PROPID_LABEL, new byte[filter.labelSize * 2]);
135
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN, filter.labelSize);
138
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_MSGID, new byte[MessageIdSize]);
141
properties.SetUI8(
NativeMethods
.MESSAGE_PROPID_LOOKUPID, (long)0);
144
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)0);
148
properties.SetString(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE, new byte[DefaultQueueNameSize * 2]);
149
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN, DefaultQueueNameSize);
153
properties.SetUI2(
NativeMethods
.MESSAGE_PROPID_CLASS, (short)0);
157
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)0);
164
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_APPSPECIFIC, 0);
166
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_ARRIVEDTIME, 0);
168
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_TYPE, 0);
170
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_AUTHENTICATED, (byte)0);
173
properties.SetGuid(
NativeMethods
.MESSAGE_PROPID_CONNECTOR_TYPE, new byte[GenericIdSize]);
175
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_CORRELATIONID, new byte[MessageIdSize]);
178
properties.SetString(
NativeMethods
.MESSAGE_PROPID_PROV_NAME, new byte[DefaultCryptographicProviderNameSize * 2]);
179
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_NAME_LEN, DefaultCryptographicProviderNameSize);
182
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_TYPE, 0);
184
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_DELIVERY, (byte)0);
187
properties.SetString(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE, new byte[DefaultQueueNameSize * 2]);
188
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE_LEN, DefaultQueueNameSize);
192
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SIGNATURE, new byte[DefaultDigitalSignatureSize]);
193
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN, DefaultDigitalSignatureSize);
196
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_ENCRYPTION_ALG, 0);
199
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_EXTENSION, new byte[filter.extensionSize]);
200
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN, filter.extensionSize);
204
properties.SetString(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE, new byte[DefaultQueueNameSize * 2]);
205
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN, DefaultQueueNameSize);
208
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_HASH_ALG, 0);
210
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_FIRST_IN_XACT, (byte)0);
212
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_LAST_IN_XACT, (byte)0);
214
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_PRIORITY, (byte)0);
217
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT, new byte[DefaultSenderCertificateSize]);
218
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN, DefaultSenderCertificateSize);
222
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDERID, new byte[DefaultSenderIdSize]);
223
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_LEN, DefaultSenderIdSize);
226
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENTTIME, 0);
228
properties.SetGuid(
NativeMethods
.MESSAGE_PROPID_SRC_MACHINE_ID, new byte[GenericIdSize]);
231
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY, new byte[DefaultSymmetricKeySize]);
232
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN, DefaultSymmetricKeySize);
235
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_BE_RECEIVED, 0);
237
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_REACH_QUEUE, 0);
239
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_XACTID, new byte[MessageIdSize]);
241
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_AUTH_LEVEL, 0);
243
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PRIV_LEVEL, 0);
245
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_TRACE, (byte)0);
247
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_VERSION, 0);
271
int res = ((int)properties.GetUI2(
NativeMethods
.MESSAGE_PROPID_CLASS)) & 0x0000FFFF;
299
return (AcknowledgeTypes)this.properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_ACKNOWLEDGE);
308
properties.Remove(
NativeMethods
.MESSAGE_PROPID_ACKNOWLEDGE);
313
this.properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_ACKNOWLEDGE, (byte)value);
341
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN) != 0)
343
string queueFormatName = StringFromBytes(properties.GetString(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE),
344
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN));
363
properties.Remove(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE);
364
properties.Remove(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN);
393
return properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_APPSPECIFIC);
402
properties.Remove(
NativeMethods
.MESSAGE_PROPID_APPSPECIFIC);
407
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_APPSPECIFIC, value);
432
time = time.AddSeconds(properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ARRIVEDTIME)).ToLocalTime();
458
int type = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_TYPE);
459
if (type ==
NativeMethods
.MESSAGE_SENDERID_TYPE_NONE)
471
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SENDERID_TYPE);
477
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_TYPE,
NativeMethods
.MESSAGE_SENDERID_TYPE_SID);
479
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_TYPE,
NativeMethods
.MESSAGE_SENDERID_TYPE_NONE);
505
return (properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_AUTHENTICATED) != 0);
530
if (this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_NAME_LEN) != 0)
531
return StringFromBytes(this.properties.GetString(
NativeMethods
.MESSAGE_PROPID_PROV_NAME),
532
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_NAME_LEN));
550
properties.SetString(
NativeMethods
.MESSAGE_PROPID_PROV_NAME, StringToBytes(value));
551
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_NAME_LEN, value.Length);
578
return (CryptographicProviderType)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_TYPE);
593
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_TYPE, (int)value);
667
this.cachedBodyStream = new MemoryStream(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY),
668
0, properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE));
680
properties.Remove(
NativeMethods
.MESSAGE_PROPID_BODY);
681
properties.Remove(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE);
682
properties.Remove(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE);
710
return this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE);
715
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_TYPE, value);
745
return new Guid(this.properties.GetGuid(
NativeMethods
.MESSAGE_PROPID_CONNECTOR_TYPE));
754
properties.Remove(
NativeMethods
.MESSAGE_PROPID_CONNECTOR_TYPE);
759
properties.SetGuid(
NativeMethods
.MESSAGE_PROPID_CONNECTOR_TYPE, ((Guid)value).ToByteArray());
786
return IdFromByteArray(this.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_CORRELATIONID));
798
properties.Remove(
NativeMethods
.MESSAGE_PROPID_CORRELATIONID);
803
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_CORRELATIONID, IdToByteArray(value));
874
if (this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE_LEN) != 0)
876
string queueFormatName = StringFromBytes(properties.GetString(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE),
877
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE_LEN));
909
byte[] bytes = new byte[properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN)];
910
Array.Copy(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY), bytes, bytes.Length);
923
properties.Remove(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY);
924
properties.Remove(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN);
929
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY, value);
930
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN, value.Length);
958
byte[] bytes = new byte[properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN)];
959
Array.Copy(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SIGNATURE), bytes, bytes.Length);
971
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SIGNATURE);
972
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN);
979
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SIGNATURE, value);
980
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN, value.Length);
1006
return (EncryptionAlgorithm)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ENCRYPTION_ALG);
1020
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_ENCRYPTION_ALG, (int)value);
1049
byte[] bytes = new byte[properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN)];
1050
Array.Copy(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_EXTENSION), bytes, bytes.Length);
1063
properties.Remove(
NativeMethods
.MESSAGE_PROPID_EXTENSION);
1064
properties.Remove(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN);
1069
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_EXTENSION, value);
1070
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN, value.Length);
1126
return (HashAlgorithm)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_HASH_ALG);
1141
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_HASH_ALG, (int)value);
1167
return IdFromByteArray(this.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_MSGID));
1191
return (properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_FIRST_IN_XACT) != 0);
1215
return (properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_LAST_IN_XACT) != 0);
1239
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN) != 0)
1240
return StringFromBytes(this.properties.GetString(
NativeMethods
.MESSAGE_PROPID_LABEL),
1241
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN));
1255
properties.Remove(
NativeMethods
.MESSAGE_PROPID_LABEL);
1256
properties.Remove(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN);
1261
properties.SetString(
NativeMethods
.MESSAGE_PROPID_LABEL, StringToBytes(value));
1262
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN, value.Length);
1289
return this.properties.GetUI8(
NativeMethods
.MESSAGE_PROPID_LOOKUPID);
1296
this.properties.SetUI8(
NativeMethods
.MESSAGE_PROPID_LOOKUPID, value);
1319
int cls = properties.GetUI2(
NativeMethods
.MESSAGE_PROPID_CLASS);
1320
if (cls ==
NativeMethods
.MESSAGE_CLASS_NORMAL)
1323
if (cls ==
NativeMethods
.MESSAGE_CLASS_REPORT)
1353
return (MessagePriority)properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_PRIORITY);
1365
properties.Remove(
NativeMethods
.MESSAGE_PROPID_PRIORITY);
1370
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_PRIORITY, (byte)value);
1397
return properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_DELIVERY) ==
NativeMethods
.MESSAGE_DELIVERY_RECOVERABLE;
1406
properties.Remove(
NativeMethods
.MESSAGE_PROPID_DELIVERY);
1411
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_DELIVERY, (byte)
NativeMethods
.MESSAGE_DELIVERY_RECOVERABLE);
1439
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN) != 0)
1441
string queueFormatName = StringFromBytes(properties.GetString(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE),
1442
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN));
1461
properties.Remove(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE);
1462
properties.Remove(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN);
1479
IntPtr handle = (IntPtr)(int)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SECURITY_CONTEXT);
1488
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SECURITY_CONTEXT);
1495
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SECURITY_CONTEXT, handle);
1524
byte[] bytes = new byte[properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN)];
1525
Array.Copy(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT), bytes, bytes.Length);
1538
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT);
1539
properties.Remove(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN);
1544
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT, value);
1545
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN, value.Length);
1573
byte[] bytes = new byte[properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_LEN)];
1574
Array.Copy(properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDERID), bytes, bytes.Length);
1598
return (long)((uint)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_VERSION));
1622
time = time.AddSeconds(properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENTTIME)).ToLocalTime();
1646
byte[] bytes = this.properties.GetGuid(
NativeMethods
.MESSAGE_PROPID_SRC_MACHINE_ID);
1650
machineProperties.SetNull(
NativeMethods
.MACHINE_PATHNAME);
1655
IntPtr memoryHandle = machineProperties.GetIntPtr(
NativeMethods
.MACHINE_PATHNAME);
1696
return TimeSpan.FromSeconds((uint)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_BE_RECEIVED));
1712
properties.Remove(
NativeMethods
.MESSAGE_PROPID_TIME_TO_BE_RECEIVED);
1717
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_BE_RECEIVED, (int)((uint)timeoutInSeconds));
1746
return TimeSpan.FromSeconds((uint)properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_REACH_QUEUE));
1761
properties.Remove(
NativeMethods
.MESSAGE_PROPID_TIME_TO_REACH_QUEUE);
1766
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_TIME_TO_REACH_QUEUE, (int)((uint)timeoutInSeconds));
1792
return IdFromByteArray(this.properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_XACTID));
1819
if (this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN) != 0)
1821
string queueFormatName = StringFromBytes(properties.GetString(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE),
1822
properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN));
1841
properties.Remove(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE);
1842
properties.Remove(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN);
1882
return (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_AUTH_LEVEL) !=
NativeMethods
.MESSAGE_AUTHENTICATION_LEVEL_NONE);
1892
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_AUTH_LEVEL,
NativeMethods
.MESSAGE_AUTHENTICATION_LEVEL_NONE);
1896
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_AUTH_LEVEL,
NativeMethods
.MESSAGE_AUTHENTICATION_LEVEL_ALWAYS);
1922
return ((properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) &
NativeMethods
.MESSAGE_JOURNAL_DEADLETTER) != 0);
1934
properties.Remove(
NativeMethods
.MESSAGE_PROPID_JOURNAL);
1936
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) & ~
NativeMethods
.MESSAGE_JOURNAL_DEADLETTER));
1942
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)
NativeMethods
.MESSAGE_JOURNAL_DEADLETTER);
1944
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) |
NativeMethods
.MESSAGE_JOURNAL_DEADLETTER));
1971
return (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_PRIV_LEVEL) !=
NativeMethods
.MESSAGE_PRIVACY_LEVEL_NONE);
1980
properties.Remove(
NativeMethods
.MESSAGE_PROPID_PRIV_LEVEL);
1985
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_PRIV_LEVEL,
NativeMethods
.MESSAGE_PRIVACY_LEVEL_BODY);
2011
return ((properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) &
NativeMethods
.MESSAGE_JOURNAL_JOURNAL) != 0);
2023
properties.Remove(
NativeMethods
.MESSAGE_PROPID_JOURNAL);
2025
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) & ~
NativeMethods
.MESSAGE_JOURNAL_JOURNAL));
2031
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)
NativeMethods
.MESSAGE_JOURNAL_JOURNAL);
2033
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_JOURNAL) |
NativeMethods
.MESSAGE_JOURNAL_JOURNAL));
2062
return (properties.GetUI1(
NativeMethods
.MESSAGE_PROPID_TRACE) !=
NativeMethods
.MESSAGE_TRACE_NONE);
2071
properties.Remove(
NativeMethods
.MESSAGE_PROPID_TRACE);
2078
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_TRACE, (byte)
NativeMethods
.MESSAGE_TRACE_NONE);
2080
properties.SetUI1(
NativeMethods
.MESSAGE_PROPID_TRACE, (byte)
NativeMethods
.MESSAGE_TRACE_SEND_ROUTE_TO_REPORT_QUEUE);
2091
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN);
2093
properties.SetString(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE, new byte[size * 2]);
2098
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE);
2100
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, new byte[size]);
2105
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_PROV_NAME_LEN);
2107
properties.SetString(
NativeMethods
.MESSAGE_PROPID_PROV_NAME, new byte[size * 2]);
2112
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE_LEN);
2114
properties.SetString(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE, new byte[size * 2]);
2119
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN);
2121
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_EXTENSION, new byte[size]);
2126
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN);
2128
properties.SetString(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE, new byte[size * 2]);
2133
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_LABEL_LEN);
2135
properties.SetString(
NativeMethods
.MESSAGE_PROPID_LABEL, new byte[size * 2]);
2140
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN);
2142
properties.SetString(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE, new byte[size * 2]);
2147
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN);
2149
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT, new byte[size]);
2154
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDERID_LEN);
2156
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SENDERID, new byte[size]);
2161
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN);
2163
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY, new byte[size]);
2168
int size = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN);
2170
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_SIGNATURE, new byte[size]);
2183
properties.SetString(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE, StringToBytes(queueFormatName));
2184
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN, queueFormatName.Length);
2190
properties.SetString(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE, StringToBytes(queueFormatName));
2191
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN, queueFormatName.Length);
2197
properties.SetString(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE, StringToBytes(queueFormatName));
2198
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN, queueFormatName.Length);
2214
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, bytes);
2215
properties.SetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE, bytes.Length);
2229
int bodySize = properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_BODY_SIZE);
2230
byte[] bodyArray = properties.GetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY);
2240
properties.SetUI1Vector(
NativeMethods
.MESSAGE_PROPID_BODY, bytes);
2245
this.properties.AdjustSize(
NativeMethods
.MESSAGE_PROPID_EXTENSION,
2246
this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_EXTENSION_LEN));
2250
this.properties.AdjustSize(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT,
2251
this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SENDER_CERT_LEN));
2255
this.properties.AdjustSize(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY,
2256
this.properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN));
2261
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_CLASS);
2263
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_ARRIVEDTIME);
2265
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_AUTHENTICATED);
2268
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE);
2269
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_DEST_QUEUE_LEN);
2273
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_FIRST_IN_XACT);
2275
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_LAST_IN_XACT);
2278
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SENDERID);
2279
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SENDERID_LEN);
2282
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SENTTIME);
2284
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SRC_MACHINE_ID);
2286
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_XACTID);
2288
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_VERSION);
2294
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN) == 0)
2296
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE);
2297
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_ADMIN_QUEUE_LEN);
2304
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_ENCRYPTION_ALG);
2308
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN) == 0)
2310
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SIGNATURE);
2311
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_SIGNATURE_LEN);
2316
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN) == 0)
2318
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY);
2319
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_DEST_SYMM_KEY_LEN);
2324
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN) == 0)
2326
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE);
2327
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_RESP_QUEUE_LEN);
2332
if (properties.GetUI4(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN) == 0)
2334
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE);
2335
this.properties.Ghost(
NativeMethods
.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN);
System\Messaging\MessageEnumerator.cs (5)
51
return this.owner.ReceiveCurrent(TimeSpan.Zero,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, this.Handle,
163
int action =
NativeMethods
.QUEUE_ACTION_PEEK_NEXT;
166
action =
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT;
168
status = owner.StaleSafeReceiveMessage((uint)timeoutInMilliseconds, action, null, null, null, this.Handle, (IntPtr)
NativeMethods
.QUEUE_TRANSACTION_NONE);
271
Message message = this.owner.ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE,
System\Messaging\MessageQueue.cs (143)
228
this.sharedMode =
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE;
249
this.sharedMode =
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE;
299
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE, (byte)0);
301
this.authenticate = (Properties.GetUI1(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE) !=
NativeMethods
.QUEUE_AUTHENTICATE_NONE);
303
Properties.Remove(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE);
312
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE, (byte)
NativeMethods
.QUEUE_AUTHENTICATE_AUTHENTICATE);
314
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE, (byte)
NativeMethods
.QUEUE_AUTHENTICATE_NONE);
319
Properties.Remove(
NativeMethods
.QUEUE_PROPID_AUTHENTICATE);
335
Properties.SetI2(
NativeMethods
.QUEUE_PROPID_BASEPRIORITY, (short)0);
337
this.basePriority = properties.GetI2(
NativeMethods
.QUEUE_PROPID_BASEPRIORITY);
339
Properties.Remove(
NativeMethods
.QUEUE_PROPID_BASEPRIORITY);
348
Properties.SetI2(
NativeMethods
.QUEUE_PROPID_BASEPRIORITY, value);
352
Properties.Remove(
NativeMethods
.QUEUE_PROPID_BASEPRIORITY);
415
Properties.SetNull(
NativeMethods
.QUEUE_PROPID_TYPE);
418
IntPtr handle = Properties.GetIntPtr(
NativeMethods
.QUEUE_PROPID_TYPE);
428
Properties.Remove(
NativeMethods
.QUEUE_PROPID_TYPE);
435
Properties.SetGuid(
NativeMethods
.QUEUE_PROPID_TYPE, value.ToByteArray());
439
Properties.Remove(
NativeMethods
.QUEUE_PROPID_TYPE);
480
Properties.SetI4(
NativeMethods
.QUEUE_PROPID_CREATE_TIME, 0);
482
this.createTime = time.AddSeconds(properties.GetI4(
NativeMethods
.QUEUE_PROPID_CREATE_TIME)).ToLocalTime();
484
Properties.Remove(
NativeMethods
.QUEUE_PROPID_CREATE_TIME);
534
return (this.sharedMode ==
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE);
538
if (value && (this.sharedMode !=
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE))
541
this.sharedMode =
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE;
543
else if (!value && (this.sharedMode ==
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE))
546
this.sharedMode =
NativeMethods
.QUEUE_SHARED_MODE_DENY_NONE;
583
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL, 0);
585
this.encryptionLevel = Properties.GetUI4(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL);
587
Properties.Remove(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL);
597
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL, (int)value);
599
this.encryptionLevel = properties.GetUI4(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL);
601
Properties.Remove(
NativeMethods
.QUEUE_PROPID_PRIV_LEVEL);
639
StringBuilder newFormatName = new StringBuilder(
NativeMethods
.MAX_LABEL_LEN);
640
result =
NativeMethods
.MAX_LABEL_LEN;
715
Properties.SetNull(
NativeMethods
.QUEUE_PROPID_INSTANCE);
718
IntPtr handle = Properties.GetIntPtr(
NativeMethods
.QUEUE_PROPID_INSTANCE);
727
Properties.Remove(
NativeMethods
.QUEUE_PROPID_INSTANCE);
744
Properties.SetNull(
NativeMethods
.QUEUE_PROPID_LABEL);
747
IntPtr handle = Properties.GetIntPtr(
NativeMethods
.QUEUE_PROPID_LABEL);
758
Properties.Remove(
NativeMethods
.QUEUE_PROPID_LABEL);
770
Properties.SetString(
NativeMethods
.QUEUE_PROPID_LABEL, Message.StringToBytes(value));
774
Properties.Remove(
NativeMethods
.QUEUE_PROPID_LABEL);
793
Properties.SetI4(
NativeMethods
.QUEUE_PROPID_MODIFY_TIME, 0);
795
this.lastModifyTime = time.AddSeconds(properties.GetI4(
NativeMethods
.QUEUE_PROPID_MODIFY_TIME)).ToLocalTime();
797
Properties.Remove(
NativeMethods
.QUEUE_PROPID_MODIFY_TIME);
865
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_JOURNAL_QUOTA, 0);
867
this.journalSize = (long)((uint)properties.GetUI4(
NativeMethods
.QUEUE_PROPID_JOURNAL_QUOTA));
869
Properties.Remove(
NativeMethods
.QUEUE_PROPID_JOURNAL_QUOTA);
880
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_JOURNAL_QUOTA, (int)((uint)value));
884
Properties.Remove(
NativeMethods
.QUEUE_PROPID_JOURNAL_QUOTA);
903
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_QUOTA, 0);
905
this.queueSize = (long)((uint)properties.GetUI4(
NativeMethods
.QUEUE_PROPID_QUOTA));
907
Properties.Remove(
NativeMethods
.QUEUE_PROPID_QUOTA);
918
Properties.SetUI4(
NativeMethods
.QUEUE_PROPID_QUOTA, (int)((uint)value));
922
Properties.Remove(
NativeMethods
.QUEUE_PROPID_QUOTA);
963
if (sharedMode ==
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE || !enableCache)
1016
Properties.SetNull(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS);
1019
IntPtr handle = Properties.GetIntPtr(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS);
1029
Properties.Remove(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS);
1043
Properties.SetEmpty(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS);
1045
Properties.SetString(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS, Message.StringToBytes(value));
1050
Properties.Remove(
NativeMethods
.QUEUE_PROPID_MULTICAST_ADDRESS);
1181
Properties.SetNull(
NativeMethods
.QUEUE_PROPID_PATHNAME);
1184
IntPtr handle = Properties.GetIntPtr(
NativeMethods
.QUEUE_PROPID_PATHNAME);
1192
Properties.Remove(
NativeMethods
.QUEUE_PROPID_PATHNAME);
1298
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_JOURNAL, (byte)0);
1300
this.useJournaling = (Properties.GetUI1(
NativeMethods
.QUEUE_PROPID_JOURNAL) !=
NativeMethods
.QUEUE_JOURNAL_NONE);
1302
Properties.Remove(
NativeMethods
.QUEUE_PROPID_JOURNAL);
1310
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_JOURNAL, (byte)
NativeMethods
.QUEUE_JOURNAL_JOURNAL);
1312
Properties.SetUI1(
NativeMethods
.QUEUE_PROPID_JOURNAL, (byte)
NativeMethods
.QUEUE_JOURNAL_NONE);
1317
Properties.Remove(
NativeMethods
.QUEUE_PROPID_JOURNAL);
1457
return ReceiveAsync(InfiniteTimeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, null, null);
1470
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, null, null);
1485
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, null, stateObject);
1499
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, callback, stateObject);
1524
return ReceiveAsync(InfiniteTimeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_RECEIVE, null, null);
1538
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_RECEIVE, null, null);
1552
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_RECEIVE, null, stateObject);
1565
return ReceiveAsync(timeout, CursorHandle.NullHandle,
NativeMethods
.QUEUE_ACTION_RECEIVE, callback, stateObject);
1574
return ReceiveAsync(timeout, cursor.Handle,
NativeMethods
.QUEUE_ACTION_RECEIVE, callback, state);
1622
if (sharedMode ==
NativeMethods
.QUEUE_SHARED_MODE_DENY_RECEIVE || !enableCache)
1669
properties.SetString(
NativeMethods
.QUEUE_PROPID_PATHNAME, Message.StringToBytes(path));
1671
properties.SetUI1(
NativeMethods
.QUEUE_PROPID_TRANSACTION, (byte)
NativeMethods
.QUEUE_TRANSACTIONAL_TRANSACTIONAL);
1673
properties.SetUI1(
NativeMethods
.QUEUE_PROPID_TRANSACTION, (byte)
NativeMethods
.QUEUE_TRANSACTIONAL_NONE);
1675
StringBuilder formatName = new StringBuilder(
NativeMethods
.MAX_LABEL_LEN);
1676
int formatNameLen =
NativeMethods
.MAX_LABEL_LEN;
1909
machineProperties.SetNull(
NativeMethods
.MACHINE_ID);
1912
IntPtr handle = machineProperties.GetIntPtr(
NativeMethods
.MACHINE_ID);
1939
int status =
NativeMethods
.MQGetSecurityContextEx(out handle);
2035
properties.SetNull(
NativeMethods
.MANAGEMENT_PRIVATEQ);
2041
uint len = properties.GetStringVectorLength(
NativeMethods
.MANAGEMENT_PRIVATEQ);
2042
IntPtr basePointer = properties.GetStringVectorBasePointer(
NativeMethods
.MANAGEMENT_PRIVATEQ);
2244
if (((AsynchronousRequest)asyncResult).Action ==
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT)
2275
return ReceiveCurrent(InfiniteTimeout,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, CursorHandle.NullHandle, MessageReadPropertyFilter, null, MessageQueueTransactionType.None);
2290
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, CursorHandle.NullHandle, MessageReadPropertyFilter, null, MessageQueueTransactionType.None);
2398
return ReceiveCurrent(InfiniteTimeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, null, MessageQueueTransactionType.None);
2414
return ReceiveCurrent(InfiniteTimeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, transaction, MessageQueueTransactionType.None);
2426
return ReceiveCurrent(InfiniteTimeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, null, transactionType);
2440
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, null, MessageQueueTransactionType.None);
2449
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, cursor.Handle, MessageReadPropertyFilter, null, MessageQueueTransactionType.None);
2466
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, transaction, MessageQueueTransactionType.None);
2479
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, CursorHandle.NullHandle, MessageReadPropertyFilter, null, transactionType);
2491
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, cursor.Handle, MessageReadPropertyFilter, transaction, MessageQueueTransactionType.None);
2504
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, cursor.Handle, MessageReadPropertyFilter, null, transactionType);
2515
if (action ==
NativeMethods
.QUEUE_ACTION_RECEIVE)
2631
Message message = this.ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, cursorHandle,
2647
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, cursorHandle,
2650
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_RECEIVE, cursorHandle,
2654
return ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT, cursorHandle,
2661
message = this.ReceiveCurrent(timeout,
NativeMethods
.QUEUE_ACTION_PEEK_NEXT, cursorHandle,
2938
action =
NativeMethods
.LOOKUP_RECEIVE_MASK | (int)lookupAction;
2951
action =
NativeMethods
.LOOKUP_PEEK_MASK | (int)lookupAction;
3022
if (action ==
NativeMethods
.QUEUE_ACTION_RECEIVE)
3071
if (action ==
NativeMethods
.QUEUE_ACTION_PEEK_NEXT)
3072
action =
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT;
3358
StringBuilder newFormatName = new StringBuilder(
NativeMethods
.MAX_LABEL_LEN);
3359
result =
NativeMethods
.MAX_LABEL_LEN;
3392
int result = UnsafeNativeMethods.MQSetQueueSecurity(FormatName,
NativeMethods
.DACL_SECURITY_INFORMATION, null);
3393
if (result !=
NativeMethods
.MQ_OK)
3469
NativeMethods
.DACL_SECURITY_INFORMATION,
3474
if (mqResult ==
NativeMethods
.MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL)
3480
NativeMethods
.DACL_SECURITY_INFORMATION,
3486
if (mqResult !=
NativeMethods
.MQ_OK)
3504
NativeMethods
.SECURITY_DESCRIPTOR newSecurityDescriptor = new
NativeMethods
.SECURITY_DESCRIPTOR();
3506
NativeMethods
.SECURITY_DESCRIPTOR_REVISION);
3519
NativeMethods
.DACL_SECURITY_INFORMATION,
3522
if (result !=
NativeMethods
.MQ_OK)
3797
if (this.action ==
NativeMethods
.QUEUE_ACTION_PEEK_NEXT)
3798
this.action =
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT;
3904
if (this.action ==
NativeMethods
.QUEUE_ACTION_PEEK_NEXT)
3905
this.action =
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT;
4442
props.SetUI1(
NativeMethods
.QUEUE_PROPID_TRANSACTION, (byte)0);
4448
this.isTransactional = (props.GetUI1(
NativeMethods
.QUEUE_PROPID_TRANSACTION) !=
NativeMethods
.QUEUE_TRANSACTIONAL_NONE);
System\Messaging\MessageQueueCriteria.cs (6)
254
restrictions.AddI4(
NativeMethods
.QUEUE_PROPID_CREATE_TIME, Restrictions.PRGT, ConvertTime(this.createdAfter));
256
restrictions.AddI4(
NativeMethods
.QUEUE_PROPID_CREATE_TIME, Restrictions.PRLE, ConvertTime(this.createdBefore));
258
restrictions.AddString(
NativeMethods
.QUEUE_PROPID_LABEL, Restrictions.PREQ, this.label);
260
restrictions.AddI4(
NativeMethods
.QUEUE_PROPID_MODIFY_TIME, Restrictions.PRGT, ConvertTime(this.modifiedAfter));
262
restrictions.AddI4(
NativeMethods
.QUEUE_PROPID_MODIFY_TIME, Restrictions.PRLE, ConvertTime(this.modifiedBefore));
264
restrictions.AddGuid(
NativeMethods
.QUEUE_PROPID_TYPE, Restrictions.PREQ, this.category);
System\Messaging\MessageQueueEnumerator.cs (2)
149
columns.AddColumnId(
NativeMethods
.QUEUE_PROPID_PATHNAME);
152
columns.AddColumnId(
NativeMethods
.QUEUE_PROPID_INSTANCE);
System\Messaging\MessageQueueTransactionType.cs (3)
22
None =
NativeMethods
.QUEUE_TRANSACTION_NONE,
27
Automatic =
NativeMethods
.QUEUE_TRANSACTION_MTS,
32
Single =
NativeMethods
.QUEUE_TRANSACTION_SINGLE,
System\Messaging\PeekAction.cs (2)
16
Current =
NativeMethods
.QUEUE_ACTION_PEEK_CURRENT,
18
Next =
NativeMethods
.QUEUE_ACTION_PEEK_NEXT
System\Messaging\QueueAccessMode.cs (9)
25
Send =
NativeMethods
.QUEUE_ACCESS_SEND,
26
Peek =
NativeMethods
.QUEUE_ACCESS_PEEK,
27
Receive =
NativeMethods
.QUEUE_ACCESS_RECEIVE,
28
PeekAndAdmin =
NativeMethods
.QUEUE_ACCESS_PEEK |
NativeMethods
.QUEUE_ACCESS_ADMIN,
29
ReceiveAndAdmin =
NativeMethods
.QUEUE_ACCESS_RECEIVE |
NativeMethods
.QUEUE_ACCESS_ADMIN,
34
SendAndReceive =
NativeMethods
.QUEUE_ACCESS_SEND |
NativeMethods
.QUEUE_ACCESS_RECEIVE,