Home
last modified time | relevance | path

Searched refs:UnsafeNativeMethods (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/System/Diagnostics/Eventing/Reader/
H A DNativeWrapper.cs427UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetEventInfo()
454UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetQueryInfo()
482UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetPublisherMetadataProperty()
515UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetPublisherMetadataPropertyHandle()
594UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetObjectArrayProperty()
620UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetEventMetadataProperty()
657UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetChannelConfigProperty()
671 UnsafeNativeMethods.EvtVariant varVal = new UnsafeNativeMethods.EvtVariant(); in EvtSetChannelConfigProperty()
809UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(buf… in EvtGetLogInfo()
847UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.PtrToStructure(poi… in EvtRenderBufferWithContextSystem()
[all …]
H A DEventLogConfiguration.cs94 …Type)((uint)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
106 …eturn (bool)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
109 …NativeWrapper.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropert…
115 …eturn (bool)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
121 …urn (string)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
124 …NativeWrapper.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropert…
130 …urn (string)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
142 …NativeWrapper.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropert…
183 …urn (string)NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
189 …n (string[])NativeWrapper.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelC…
[all …]
H A DProviderMetadata.cs292 UnsafeNativeMethods.EvtPublisherMetadataPropertyId propName; in GetProviderListProperty()
293 UnsafeNativeMethods.EvtPublisherMetadataPropertyId propValue; in GetProviderListProperty()
294 UnsafeNativeMethods.EvtPublisherMetadataPropertyId propMessageId; in GetProviderListProperty()
307 … case UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataLevels: in GetProviderListProperty()
308 … propName = UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataLevelName; in GetProviderListProperty()
315 … case UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataOpcodes: in GetProviderListProperty()
316 … propName = UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataOpcodeName; in GetProviderListProperty()
323 … case UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataKeywords: in GetProviderListProperty()
331 … case UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataTasks: in GetProviderListProperty()
332 … propName = UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataTaskName; in GetProviderListProperty()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Channels/
H A DMsmqOutputMessage.cs45 …this.messageId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID, UnsafeNativeMethods.… in MsmqOutputMessage()
47 EnsureBodyTypeProperty(UnsafeNativeMethods.VT_VECTOR | UnsafeNativeMethods.VT_UI1); in MsmqOutputMessage()
50 this.delivery = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_DELIVERY); in MsmqOutputMessage()
53 this.delivery.Value = (byte)UnsafeNativeMethods.MQMSG_DELIVERY_RECOVERABLE; in MsmqOutputMessage()
57 this.delivery.Value = (byte)UnsafeNativeMethods.MQMSG_DELIVERY_EXPRESS; in MsmqOutputMessage()
86 EnsureSenderIdTypeProperty(UnsafeNativeMethods.MQMSG_SENDERID_TYPE_SID); in MsmqOutputMessage()
93 UnsafeNativeMethods.PROPID_M_HASH_ALG, in MsmqOutputMessage()
103 UnsafeNativeMethods.PROPID_M_ENCRYPTION_ALG, in MsmqOutputMessage()
114 UnsafeNativeMethods.PROPID_M_HASH_ALG, in MsmqOutputMessage()
124 UnsafeNativeMethods.PROPID_M_ENCRYPTION_ALG, in MsmqOutputMessage()
[all …]
H A DMsmqQueue.cs40 this.shareMode = UnsafeNativeMethods.MQ_DENY_NONE; in MsmqQueue()
279 case UnsafeNativeMethods.MQ_ERROR_STALE_HANDLE: in IsErrorDueToStaleHandle()
280 case UnsafeNativeMethods.MQ_ERROR_INVALID_HANDLE: in IsErrorDueToStaleHandle()
281 case UnsafeNativeMethods.MQ_ERROR_INVALID_PARAMETER: in IsErrorDueToStaleHandle()
282 case UnsafeNativeMethods.MQ_ERROR_QUEUE_DELETED: in IsErrorDueToStaleHandle()
293 case UnsafeNativeMethods.MQ_ERROR_BUFFER_OVERFLOW: in IsReceiveErrorDueToInsufficientBuffer()
298 case UnsafeNativeMethods.MQ_ERROR_USER_BUFFER_TOO_SMALL: in IsReceiveErrorDueToInsufficientBuffer()
300 case UnsafeNativeMethods.MQ_ERROR_RESULT_BUFFER_TOO_SMALL: in IsReceiveErrorDueToInsufficientBuffer()
301 case UnsafeNativeMethods.MQ_ERROR_LABEL_BUFFER_TOO_SMALL: in IsReceiveErrorDueToInsufficientBuffer()
642 return UnsafeNativeMethods.MQ_NO_TRANSACTION; in GetTransactionConstant()
[all …]
H A DMsmqSubqueueLockingQueue.cs47 …ForReceive = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS, UnsafeNative… in MsmqSubqueueLockingQueue()
118 …ForReceive = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS, UnsafeNative… in EnsureLockQueuesOpen()
292 int accessMode = UnsafeNativeMethods.MQ_RECEIVE_ACCESS; in TryOpenLockQueueForCollection()
293 int shareMode = UnsafeNativeMethods.MQ_DENY_RECEIVE_SHARE; in TryOpenLockQueueForCollection()
358 UnsafeNativeMethods.MQMSGPROPS props = new UnsafeNativeMethods.MQMSGPROPS(); in TryEnumerateSubqueues()
359 UnsafeNativeMethods.MQPROPVARIANT prop = new UnsafeNativeMethods.MQPROPVARIANT(); in TryEnumerateSubqueues()
360 UnsafeNativeMethods.MQPROPVARIANT retProp; in TryEnumerateSubqueues()
368 ids[0] = UnsafeNativeMethods.PROPID_MGMT_QUEUE_SUBQUEUE_NAMES; in TryEnumerateSubqueues()
369 prop.vt = UnsafeNativeMethods.VT_NULL; in TryEnumerateSubqueues()
383 …retProp = (UnsafeNativeMethods.MQPROPVARIANT)Marshal.PtrToStructure(props.variants, typeof(UnsafeN… in TryEnumerateSubqueues()
[all …]
H A DMsmqInputMessage.cs46 this.body = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_BODY, in MsmqInputMessage()
48 this.bodyLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_SIZE); in MsmqInputMessage()
49 this.messageId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID, in MsmqInputMessage()
50 UnsafeNativeMethods.PROPID_M_MSGID_SIZE); in MsmqInputMessage()
51 this.lookupId = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID); in MsmqInputMessage()
52 this.cls = new ShortProperty(this, UnsafeNativeMethods.PROPID_M_CLASS); in MsmqInputMessage()
54 this.senderIdLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_LEN); in MsmqInputMessage()
55 … this.senderCertificate = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT, in MsmqInputMessage()
60 … this.lastMovedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LAST_MOVE_TIME); in MsmqInputMessage()
61 this.abortCount = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ABORT_COUNT); in MsmqInputMessage()
[all …]
H A DAppContainerInfo.cs147 return UnsafeNativeMethods.RunningInAppContainer(tokenHandle); in RunningInAppContainer()
171 uint packageFamilyNameLength = UnsafeNativeMethods.MAX_PATH; in GetAppContainerNamedObjectPath()
175 if (errorCode != UnsafeNativeMethods.ERROR_SUCCESS) in GetAppContainerNamedObjectPath()
185 int hresult = UnsafeNativeMethods.DeriveAppContainerSidFromAppContainerName( in GetAppContainerNamedObjectPath()
195 … StringBuilder namedObjectPath = new StringBuilder((int)UnsafeNativeMethods.MAX_PATH); in GetAppContainerNamedObjectPath()
197 if (!UnsafeNativeMethods.GetAppContainerNamedObjectPath( in GetAppContainerNamedObjectPath()
200 UnsafeNativeMethods.MAX_PATH, in GetAppContainerNamedObjectPath()
214 UnsafeNativeMethods.FreeSid(appContainerSid); in GetAppContainerNamedObjectPath()
230 return UnsafeNativeMethods.GetSessionId(tokenHandle); in GetCurrentSessionId()
250 if (!UnsafeNativeMethods.OpenProcessToken( in GetCurrentProcessToken()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/
H A DMsmqException.cs74 case UnsafeNativeMethods.MQ_ERROR_ACCESS_DENIED: in TuneBehavior()
78 case UnsafeNativeMethods.MQ_ERROR_QUEUE_DELETED: in TuneBehavior()
80 case UnsafeNativeMethods.MQ_ERROR_QUEUE_NOT_FOUND: in TuneBehavior()
84 case UnsafeNativeMethods.MQ_ERROR_INVALID_CERTIFICATE: in TuneBehavior()
92 case UnsafeNativeMethods.MQ_ERROR_ILLEGAL_FORMATNAME: in TuneBehavior()
108 case UnsafeNativeMethods.MQ_ERROR_SHARING_VIOLATION: in TuneBehavior()
111 case UnsafeNativeMethods.MQ_ERROR_DTC_CONNECT: in TuneBehavior()
113 case UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT: in TuneBehavior()
131 case UnsafeNativeMethods.MQ_ERROR_STALE_HANDLE: in TuneBehavior()
171 result = (0 != UnsafeNativeMethods.FormatMessage( in GetErrorString()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/
H A DSQLite3.cs80 UnsafeNativeMethods.sqlite3_interrupt(_sql); in Cancel()
103 return UnsafeNativeMethods.sqlite3_changes(_sql);
128 if (UnsafeNativeMethods.use_sqlite3_open_v2) { in Open()
211 n = UnsafeNativeMethods.sqlite3_reset(stmt._sqlite_stmt); in Reset()
824 nlen = UnsafeNativeMethods.sqlite3_value_bytes(p); in GetParamValueBytes()
825 ptr = UnsafeNativeMethods.sqlite3_value_blob(p); in GetParamValueBytes()
845 value = UnsafeNativeMethods.sqlite3_value_double(ptr); in GetParamValueDouble()
854 return UnsafeNativeMethods.sqlite3_value_int(ptr); in GetParamValueInt32()
861 value = UnsafeNativeMethods.sqlite3_value_int64(ptr); in GetParamValueInt64()
880 return UnsafeNativeMethods.sqlite3_value_type(ptr); in GetParamValueType()
[all …]
H A DSQLite3_UTF16.cs60 int n = UnsafeNativeMethods.sqlite3_open16_interop(ToUTF8(strFilename), (int)flags, out db); in Open()
65 int n = UnsafeNativeMethods.sqlite3_open16(strFilename, out db); in Open()
96 return UTF16ToString(UnsafeNativeMethods.sqlite3_column_name16(stmt._sqlite_stmt, index), -1); in ColumnName()
106 return UTF16ToString(UnsafeNativeMethods.sqlite3_column_text16(stmt._sqlite_stmt, index), -1); in GetText()
118 …return UTF16ToString(UnsafeNativeMethods.sqlite3_column_origin_name16(stmt._sqlite_stmt, index), -… in ColumnOriginalName()
130 …return UTF16ToString(UnsafeNativeMethods.sqlite3_column_database_name16(stmt._sqlite_stmt, index),… in ColumnDatabaseName()
142 …return UTF16ToString(UnsafeNativeMethods.sqlite3_column_table_name16(stmt._sqlite_stmt, index), -1… in ColumnTableName()
150 return UTF16ToString(UnsafeNativeMethods.sqlite3_value_text16_interop(ptr, out len), len); in GetParamValueText()
152 return UTF16ToString(UnsafeNativeMethods.sqlite3_value_text16(ptr), -1); in GetParamValueText()
158 UnsafeNativeMethods.sqlite3_result_error16(context, value, value.Length * 2); in ReturnError()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/
H A DSidList.cs88 UnsafeNativeMethods.LSA_TRUST_INFORMATION[] domains; in TranslateSids()
91 UnsafeNativeMethods.LSA_TRANSLATED_NAME[] names; in TranslateSids()
98UnsafeNativeMethods.LSA_OBJECT_ATTRIBUTES oa = new UnsafeNativeMethods.LSA_OBJECT_ATTRIBUTES(); in TranslateSids()
106 err = UnsafeNativeMethods.LsaOpenPolicy( in TranslateSids()
116UnsafeNativeMethods.LSA_UNICODE_STRING_Managed lsaTargetString = new UnsafeNativeMethods.LSA_UNICO… in TranslateSids()
127 err = UnsafeNativeMethods.LsaOpenPolicy( in TranslateSids()
138 …(UnsafeNativeMethods.LSA_UNICODE_STRING)Marshal.PtrToStructure(lsaTargetPr, typeof(UnsafeNativeMet… in TranslateSids()
164 err = UnsafeNativeMethods.LsaLookupSids( in TranslateSids()
204UnsafeNativeMethods.LSA_REFERENCED_DOMAIN_LIST referencedDomains = (UnsafeNativeMethods.LSA_REFERE… in TranslateSids()
259 UnsafeNativeMethods.LsaFreeMemory(pDomains); in TranslateSids()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/MsmqIntegration/
H A DMsmqIntegrationInputMessage.cs47 this.acknowledge = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_ACKNOWLEDGE); in MsmqIntegrationInputMessage()
50 this.appSpecific = new IntProperty(this, UnsafeNativeMethods.PROPID_M_APPSPECIFIC); in MsmqIntegrationInputMessage()
51 this.arrivedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ARRIVEDTIME); in MsmqIntegrationInputMessage()
52 this.senderIdType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_TYPE); in MsmqIntegrationInputMessage()
54 this.bodyType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_TYPE); in MsmqIntegrationInputMessage()
59 this.extension = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION, in MsmqIntegrationInputMessage()
64 this.priority = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_PRIORITY); in MsmqIntegrationInputMessage()
67 this.sentTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENTTIME); in MsmqIntegrationInputMessage()
69 this.privacyLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL); in MsmqIntegrationInputMessage()
100 if (this.Class.Value == UnsafeNativeMethods.MQMSG_CLASS_NORMAL) in SetMessageProperties()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/OleDb/
H A DOleDbWrapper.cs244UnsafeNativeMethods.IUnknownQueryInterface QueryInterface = (UnsafeNativeMethods.IUnknownQueryInte… in QueryInterfaceIDBCreateCommand()
339 private UnsafeNativeMethods.IDBInfo _value;
343 _value = (unknown as UnsafeNativeMethods.IDBInfo); in IDBInfoWrapper()
346 internal UnsafeNativeMethods.IDBInfo Value {
364 private UnsafeNativeMethods.IDBProperties _value;
372 internal UnsafeNativeMethods.IDBProperties Value {
391 private UnsafeNativeMethods.IDBSchemaRowset _value;
398 internal UnsafeNativeMethods.IDBSchemaRowset Value {
416 private UnsafeNativeMethods.IOpenRowset _value;
420 _value = (unknown as UnsafeNativeMethods.IOpenRowset); in IOpenRowsetWrapper()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/
H A DUtils.cs212 Debug.Assert(UnsafeNativeMethods.IsValidSid(pSid)); in ClassifySID()
218 …(UnsafeNativeMethods.SID_IDENTIFIER_AUTHORITY)Marshal.PtrToStructure(pIdentAuth, typeof(UnsafeNati… in ClassifySID()
365 if (!UnsafeNativeMethods.OpenThreadToken( in GetCurrentUserSid()
449UnsafeNativeMethods.TOKEN_USER tokenUser = (UnsafeNativeMethods.TOKEN_USER)Marshal.PtrToStructure(… in GetCurrentUserSid()
490UnsafeNativeMethods.LSA_OBJECT_ATTRIBUTES oa = new UnsafeNativeMethods.LSA_OBJECT_ATTRIBUTES(); in GetMachineDomainSid()
494 int err = UnsafeNativeMethods.LsaOpenPolicy( in GetMachineDomainSid()
525UnsafeNativeMethods.POLICY_ACCOUNT_DOMAIN_INFO info = (UnsafeNativeMethods.POLICY_ACCOUNT_DOMAIN_I… in GetMachineDomainSid()
783 int result = UnsafeNativeMethods.LogonUser( in BeginImpersonation()
809 UnsafeNativeMethods.CloseHandle(hToken); in BeginImpersonation()
825 UnsafeNativeMethods.RevertToSelf(); in EndImpersonation()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/System/IO/
H A D__Error.cs25 using UnsafeNativeMethods = Microsoft.Win32.UnsafeNativeMethods; typedef
151 …bool isInvalidPath = errorCode == UnsafeNativeMethods.ERROR_INVALID_NAME || errorCode == UnsafeNat… in WinIOError()
155 case UnsafeNativeMethods.ERROR_FILE_NOT_FOUND: in WinIOError()
163 case UnsafeNativeMethods.ERROR_PATH_NOT_FOUND: in WinIOError()
171 case UnsafeNativeMethods.ERROR_ACCESS_DENIED: in WinIOError()
179 case UnsafeNativeMethods.ERROR_ALREADY_EXISTS: in WinIOError()
188 case UnsafeNativeMethods.ERROR_INVALID_DRIVE: in WinIOError()
191 case UnsafeNativeMethods.ERROR_INVALID_PARAMETER: in WinIOError()
192 …throw new IOException(UnsafeNativeMethods.GetMessage(errorCode), UnsafeNativeMethods.MakeHRFromErr… in WinIOError()
202 case UnsafeNativeMethods.ERROR_FILE_EXISTS: in WinIOError()
[all …]
H A DLogStream.cs59 UnsafeNativeMethods.SECURITY_ATTRIBUTES _secAttrsSav;
92 …lagsAndAttributes = (int)FileOptions.None | (UnsafeNativeMethods.SECURITY_SQOS_PRESENT | UnsafeNat… in LogStream()
100 _fAccessSav = UnsafeNativeMethods.GENERIC_WRITE; in LogStream()
126 int oldMode = UnsafeNativeMethods.SetErrorMode(UnsafeNativeMethods.SEM_FAILCRITICALERRORS); in _Init()
128 …_handle = UnsafeNativeMethods.SafeCreateFile(filePath, fAccess, share, secAttrs, mode, flagsAndAtt… in _Init()
158 UnsafeNativeMethods.SetErrorMode(oldMode); in _Init()
226 if (hr == UnsafeNativeMethods.ERROR_NO_DATA) { in WriteCore()
234 if (hr == UnsafeNativeMethods.ERROR_INVALID_PARAMETER) in WriteCore()
290 if (hr == UnsafeNativeMethods.ERROR_INVALID_HANDLE) in WriteFileNative()
316 if (hr == UnsafeNativeMethods.ERROR_INVALID_HANDLE) in SeekCore()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices/src/System/DirectoryServices/
H A DDirectoryEntryConfiguration.cs24 …return (ReferralChasingOption)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption(…
34 …((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_REF…
42 …return (SecurityMasks)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)Ads…
49 …((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_SEC…
57 …return (int)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.AD…
64 …((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PAG…
72 …return (int)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.AD…
76 …((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PAS…
91 …((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PAS…
98 …return (string)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions… in GetCurrentServerName()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/Util/
H A DFileEnumerator.cs68 protected UnsafeNativeMethods.WIN32_FIND_DATA _wfd;
79 get { return (_wfd.dwFileAttributes & UnsafeNativeMethods.FILE_ATTRIBUTE_DIRECTORY) != 0; }
83 get { return (_wfd.dwFileAttributes & UnsafeNativeMethods.FILE_ATTRIBUTE_HIDDEN) != 0; }
92 private IntPtr _hFindFile = UnsafeNativeMethods.INVALID_HANDLE_VALUE;
124 if (_hFindFile == UnsafeNativeMethods.INVALID_HANDLE_VALUE) { in IEnumerator.MoveNext()
125 _hFindFile = UnsafeNativeMethods.FindFirstFile(_path + @"\*.*", out _wfd); in IEnumerator.MoveNext()
128 if (_hFindFile == UnsafeNativeMethods.INVALID_HANDLE_VALUE) in IEnumerator.MoveNext()
132 bool hasMoreFiles = UnsafeNativeMethods.FindNextFile(_hFindFile, out _wfd); in IEnumerator.MoveNext()
153 if (_hFindFile != UnsafeNativeMethods.INVALID_HANDLE_VALUE) { in IDisposable.Dispose()
154 UnsafeNativeMethods.FindClose(_hFindFile); in IDisposable.Dispose()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/State/
H A DStateWorkerRequest.cs31 UnsafeNativeMethods.StateProtocolExclusive _exclusive;
40 UnsafeNativeMethods.StateProtocolVerb _methodIndex;
56 UnsafeNativeMethods.StateProtocolVerb methodIndex, in StateHttpWorkerRequest()
58 UnsafeNativeMethods.StateProtocolExclusive exclusive, in StateHttpWorkerRequest()
69 case UnsafeNativeMethods.StateProtocolVerb.GET: in StateHttpWorkerRequest()
73 case UnsafeNativeMethods.StateProtocolVerb.PUT: in StateHttpWorkerRequest()
77 case UnsafeNativeMethods.StateProtocolVerb.HEAD: in StateHttpWorkerRequest()
81 case UnsafeNativeMethods.StateProtocolVerb.DELETE: in StateHttpWorkerRequest()
383 UnsafeNativeMethods.STWNDCloseConnection(_tracker); in CloseConnection()
389 UnsafeNativeMethods.STWNDSendResponse( in SendResponse()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/Odbc/
H A DOdbcStatementHandle.cs87 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLBindParameter(this, in BindParameter()
104 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLCancel(this); in Cancel()
110 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLCloseCursor(this); in CloseCursor()
127 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLColumnsW(this, in Columns()
142 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLExecute(this); in Execute()
154 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLFetch(this); in Fetch()
166 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetData(this, in GetData()
189 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLMoreResults(this); in MoreResults()
219 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLProceduresW(this, in Procedures()
277 ODBC32.RetCode retcode = UnsafeNativeMethods.SQLStatisticsW(this, in Statistics()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/
H A DPerfCounters.cs29 UnsafeNativeMethods.PerfCloseAppCounters(handle); in ReleaseHandle()
67 _global = UnsafeNativeMethods.PerfOpenGlobalCounters(); in OpenCounter()
73 _stateService = UnsafeNativeMethods.PerfOpenStateCounters(); in OpenCounter()
78 _instance = UnsafeNativeMethods.PerfOpenAppCounters(appName); in OpenCounter()
122 return UnsafeNativeMethods.PerfGetCounter(_global, (int) counter); in GetGlobalCounter()
129 UnsafeNativeMethods.PerfIncrementCounter(_global, (int) counter); in IncrementGlobalCounter()
134 UnsafeNativeMethods.PerfDecrementCounter(_global, (int) counter); in DecrementGlobalCounter()
139 UnsafeNativeMethods.PerfSetCounter(_global, (int) counter, value); in SetGlobalCounter()
145 UnsafeNativeMethods.PerfIncrementCounter(_stateService, (int) counter); in IncrementStateServiceCounter()
168 UnsafeNativeMethods.PerfDecrementCounter(_stateService, (int) counter); in DecrementStateServiceCounter()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Activation/
H A DSharedMemory.cs32 int errorCode = UnsafeNativeMethods.ERROR_SUCCESS; in Create()
33 …or = SecurityDescriptorHelper.FromSecurityIdentifiers(allowedSids, UnsafeNativeMethods.GENERIC_REA… in Create()
35UnsafeNativeMethods.SECURITY_ATTRIBUTES securityAttributes = new UnsafeNativeMethods.SECURITY_ATTR… in Create()
39 …fileMapping = UnsafeNativeMethods.CreateFileMapping((IntPtr)(-1), securityAttributes, UnsafeNative… in Create()
81 …handle = UnsafeNativeMethods.MapViewOfFile(fileMapping, writable ? UnsafeNativeMethods.FILE_MAP_WR… in GetView()
93 if (!writable && errorCode == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) in GetView()
111 …nosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(UnsafeNativeMethods.ERROR_FILE_… in Read()
120 …SafeFileMappingHandle fileMapping = UnsafeNativeMethods.OpenFileMapping(UnsafeNativeMethods.FILE_M… in Read()
126 if (errorCode == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) in Read()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/SQLTypes/
H A DSQLFileStream.cs492 path = UnsafeNativeMethods.SafeGetFullPathName(path); in GetFullPathInternal()
617 … int nDesiredAccess = UnsafeNativeMethods.FILE_READ_ATTRIBUTES | UnsafeNativeMethods.SYNCHRONIZE; in OpenSqlFileStream()
643 … nDesiredAccess |= UnsafeNativeMethods.FILE_READ_DATA | UnsafeNativeMethods.FILE_WRITE_DATA; in OpenSqlFileStream()
682 UnsafeNativeMethods.OBJECT_ATTRIBUTES oa; in OpenSqlFileStream()
690 UnsafeNativeMethods.IO_STATUS_BLOCK ioStatusBlock; in OpenSqlFileStream()
695UnsafeNativeMethods.SetErrorModeWrapper ( UnsafeNativeMethods.SEM_FAILCRITICALERRORS, out oldMode … in OpenSqlFileStream()
750 UnsafeNativeMethods.FileType fileType = UnsafeNativeMethods.GetFileType(hFile); in OpenSqlFileStream()
762 … uint ioControlCode = UnsafeNativeMethods.CTL_CODE ( UnsafeNativeMethods.FILE_DEVICE_FILE_SYSTEM, in OpenSqlFileStream()
887 UnsafeNativeMethods.UNICODE_STRING objectName; in Initialize()
937 UnsafeNativeMethods.SECURITY_QUALITY_OF_SERVICE m_qos;
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/System/IO/MemoryMappedFiles/
H A DMemoryMappedView.cs104 UnsafeNativeMethods.MEMORYSTATUSEX memStatus = new UnsafeNativeMethods.MEMORYSTATUSEX(); in CreateView()
105 bool result = UnsafeNativeMethods.GlobalMemoryStatusEx(ref memStatus); in CreateView()
123UnsafeNativeMethods.MEMORY_BASIC_INFORMATION viewInfo = new UnsafeNativeMethods.MEMORY_BASIC_INFOR… in CreateView()
124UnsafeNativeMethods.VirtualQuery(viewHandle, ref viewInfo, (IntPtr)Marshal.SizeOf(viewInfo)); in CreateView()
138 … if (((viewInfo.State & UnsafeNativeMethods.MEM_RESERVE) != 0) || (viewSize < nativeSize)) { in CreateView()
140 …IntPtr tempHandle = UnsafeNativeMethods.VirtualAlloc(viewHandle, (UIntPtr)allocSize, UnsafeNativeM… in CreateView()
151 viewInfo = new UnsafeNativeMethods.MEMORY_BASIC_INFORMATION(); in CreateView()
186 bool success = UnsafeNativeMethods.FlushViewOfFile(firstPagePtr, capacity); in Flush()
199 … bool canRetry = (!success && error == UnsafeNativeMethods.ERROR_LOCK_VIOLATION); in Flush()
208 … success = UnsafeNativeMethods.FlushViewOfFile(firstPagePtr, capacity); in Flush()
[all …]

12345678910>>...13