134 references to UnsafeIISMethods
System.Web (134)
Cache\OutputCache.cs (2)
333
UnsafeIISMethods
.MgdFlushKernelCache(dce.KernelCacheEntryKey);
385
UnsafeIISMethods
.MgdFlushKernelCache(kernelCacheUrl);
Configuration\ExpressServerConfig.cs (2)
138
result =
UnsafeIISMethods
.MgdGetNextVPath(pAppCollection, index, out pBstr, out cBstr);
230
int result =
UnsafeIISMethods
.MgdGetMemoryLimitKB( out limit );
Configuration\NativeConfig.cs (9)
27
hresult =
UnsafeIISMethods
.MgdCreateNativeConfigSystem(out _nativeConfig);
50
int hresult =
UnsafeIISMethods
.MgdReleaseNativeConfigSystem(pConfigSystem);
61
int result =
UnsafeIISMethods
.MgdGetSiteNameFromId(_nativeConfig, siteID, out pBstr, out cBstr);
77
int result =
UnsafeIISMethods
.MgdMapPathDirect(_nativeConfig, siteName, path.VirtualPathString, out pBstr, out cBstr);
92
return
UnsafeIISMethods
.MgdGetAppCollection(_nativeConfig, siteName, virtualPath, out pBstr, out cBstr, out pAppCollection, out count);
96
return
UnsafeIISMethods
.MgdIsWithinApp(_nativeConfig, siteName, appPath, virtualPath);
100
return
UnsafeIISMethods
.MgdGetVrPathCreds(_nativeConfig, siteName, virtualPath, out bstrUserName, out cchUserName, out bstrPassword, out cchPassword);
104
return
UnsafeIISMethods
.MgdResolveSiteName(_nativeConfig, siteName);
108
return
UnsafeIISMethods
.MgdGetAppPathForPath(_nativeConfig, siteId, virtualPath, out bstrPath, out cchPath);
Configuration\ProcessHostConfigUtils.cs (4)
58
int result =
UnsafeIISMethods
.MgdMapPathDirect(IntPtr.Zero, siteName, path.VirtualPathString, out pBstr, out cBstr);
80
int result =
UnsafeIISMethods
.MgdGetSiteNameFromId(IntPtr.Zero, siteId, out pBstr, out cBstr);
98
int result =
UnsafeIISMethods
.MgdInitNativeConfig();
108
UnsafeIISMethods
.MgdTerminateNativeConfig();
Configuration\ProcessHostMapPath.cs (3)
55
UnsafeIISMethods
.MgdSetNativeConfiguration(configSystem);
142
uint id =
UnsafeIISMethods
.MgdResolveSiteName(IntPtr.Zero, siteArgument);
199
int result =
UnsafeIISMethods
.MgdGetAppPathForPath(IntPtr.Zero, siteValue, path.VirtualPathString, out pBstr, out cBstr);
Configuration\ProcessHostServerConfig.cs (6)
62
UnsafeIISMethods
.MgdSetNativeConfiguration(configSystem);
110
int result =
UnsafeIISMethods
.MgdGetAppCollection(IntPtr.Zero, _siteNameForCurrentApplication, vpath, out pBstr, out cBstr, out pAppCollection, out count);
128
result =
UnsafeIISMethods
.MgdGetNextVPath(pAppCollection, index, out pBstr, out cBstr);
179
return
UnsafeIISMethods
.MgdIsWithinApp(IntPtr.Zero, _siteNameForCurrentApplication, HttpRuntime.AppDomainAppVirtualPathString, virtualPath);
193
int result =
UnsafeIISMethods
.MgdGetVrPathCreds( IntPtr.Zero,
221
int result =
UnsafeIISMethods
.MgdGetMemoryLimitKB( out limit );
EtwTrace.cs (1)
202
UnsafeIISMethods
.MgdEtwGetTraceConfig(p /*pRequestContext*/, out f, out _traceFlags, out _traceLevel);
Hosting\HostingEnvironment.cs (4)
1925
return
UnsafeIISMethods
.MgdGetMaxConcurrentRequestsPerCPU();
1932
int hr =
UnsafeIISMethods
.MgdSetMaxConcurrentRequestsPerCPU(value);
1952
return
UnsafeIISMethods
.MgdGetMaxConcurrentThreadsPerCPU();
1959
int hr =
UnsafeIISMethods
.MgdSetMaxConcurrentThreadsPerCPU(value);
Hosting\IIS7WorkerRequest.cs (71)
28
using IIS =
UnsafeIISMethods
;
124
IIS
.MgdGetRequestTraceGuid(_context, out _traceId);
147
int hr =
IIS
.MgdGetRequestBasics(_context, out _contentType, out _contentTotalLength, out pathTranslatedBuffer, out pathTranslatedBufferSize, out cacheUrl, out cacheUrlBufferSize, out httpMethodPtr, out pCookedUrl);
199
int hr =
IIS
.MgdGetApplicationInfo(_context,
252
int hr =
IIS
.MgdConfigureAsyncDisconnectNotification(originalContext, false /* fEnable */, out dummy);
272
IIS
.MgdEmitSimpleTrace(_context, (int)traceType, message);
286
IIS
.MgdEmitWebEventTrace(_context, webEventType, fieldCount, fieldNames, fieldTypes, fieldData);
297
int hr =
IIS
.MgdGetUriPath(_context,
379
return
IIS
.MgdGetRemotePort(_context);
387
return
IIS
.MgdGetLocalPort(_context);
431
int hresult =
IIS
.MgdGetPreloadedSize(_context, out availSize);
477
result =
IIS
.MgdReadEntityBody(_context,
543
int hresult =
IIS
.MgdExplicitFlush(_context, async, out completedSynchronously);
622
int hresult =
IIS
.MgdReadEntityBody(_context,
684
int hr =
UnsafeIISMethods
.MgdGetCorrelationIdHeader(_context, out correlationIdStringPtr, out correlationIdStringLength, out isWcfFormat);
783
int hr =
IIS
.MgdSetStatusW(_context,
836
return (!_connectionClosed &&
IIS
.MgdIsClientConnected(_context));
871
int hr =
IIS
.MgdConfigureAsyncDisconnectNotification(_context, true /* fEnabled */, out isClientConnected);
897
return
IIS
.MgdIsHandlerExecutionDenied(_context);
909
IIS
.MgdAbortConnection(_context);
916
IIS
.MgdCloseConnection(_context);
922
int result =
IIS
.MgdGetUserToken(_context, out token );
929
int result =
IIS
.MgdGetVirtualToken(_context, out token );
1125
int result =
IIS
.MgdPushPromise(_context,
1154
int retval =
IIS
.MgdGetServerVariableA(_context,
1172
int retval =
IIS
.MgdGetServerVariableW(_context,
1191
int retval =
IIS
.MgdGetCurrentModuleName(_context,
1208
int retval =
IIS
.MgdGetUserAgent(_context,
1226
int retval =
IIS
.MgdGetCookieHeader(_context,
1417
int rc =
IIS
.MgdFlushCore(
1467
int result =
IIS
.MgdGetPreloadedContent(_context, buffer, offset, length, out bytesReceived);
1495
int result =
IIS
.MgdSetKernelCachePolicy(_context, secondsToLive);
1510
IIS
.MgdDisableKernelCache(_context);
1516
IIS
.MgdDisableUserCache(_context);
1537
int result =
IIS
.MgdReMapHandler(_context,
1577
int result =
IIS
.MgdMapHandler(_context,
1598
int result =
IIS
.MgdGetHandlerTypeString(_context,
1611
int result =
IIS
.MgdSetRemapHandler(_context,
1618
int result =
IIS
.MgdSetScriptMapForRemapHandler(_context);
1637
IIS
.MgdRewriteUrl(_context, url, null != newQueryString);
1647
IIS
.MgdDisableNotifications(_context, notifications, postNotifications);
1651
IIS
.MgdSuppressSendResponseNotifications(_context);
1659
IIS
.MgdClearResponse(_context, clearEntity, clearHeaders);
1669
int result =
IIS
.MgdGetStatusChanges( _context, out status, out subStatus, out buffer, out bufLen);
1684
return
IIS
.MgdAllocateRequestMemory(_context, size);
1707
int result =
IIS
.MgdGetResponseChunks(
1739
result =
IIS
.MgdGetResponseChunks(
1845
result =
IIS
.MgdGetFileChunkInfo(_context, i, out offset, out bytesToRead);
1869
result =
IIS
.MgdReadChunkHandle( _context, fragments[i], offset, ref readSize, elem.FreeLocation);
1900
int result =
IIS
.MgdGetResponseChunks(_context,
1934
IIS
.MgdGetAnonymousUserToken(_context, out token); // Do nothing on failure. Fallback to the default behavior
1951
int result =
IIS
.MgdSetRequestPrincipal(
1973
IIS
.MgdSetResponseFilter(_context);
1977
if (
IIS
.MgdIsClientConnected(_context)) {
1992
int result =
IIS
.MgdExplicitFlush(_context, async, out completedSynchronously);
2003
int result =
IIS
.MgdSetServerVariableW(_context, name, value);
2026
int result =
IIS
.MgdSetKnownHeader(_context, true /*fRequest*/, replace, (ushort)index, valueBytes, (ushort)valueLength);
2036
int result =
IIS
.MgdSetUnknownHeader(_context, true /*fRequest*/, replace, nameBytes, valueBytes, (ushort)valueLength);
2060
int result =
IIS
.MgdSetKnownHeader(_context, false /*fRequest*/, replace, (ushort)index, valueBytes, (ushort)valueLength);
2076
int result =
IIS
.MgdSetUnknownHeader(_context, false /*fRequest*/, replace, nameBytes, valueBytes, (ushort)valueLength);
2087
int result =
IIS
.MgdGetServerVarChanges(_context,
2127
int result =
IIS
.MgdGetHeaderChanges(_context,
2242
int result =
IIS
.MgdGetPrincipal(_context,
2311
int result =
IIS
.MgdIsInRole(_context,
2388
int result =
IIS
.MgdExecuteUrl(_context,
2484
int hr =
IIS
.MgdGetClientCertificate(_context,
2573
hr =
IIS
.MgdGetChannelBindingToken(_context, out token, out tokenSize);
2584
int hr =
IIS
.MgdInsertEntityBody(_context, buffer, offset, count);
2600
int hr =
IIS
.MgdAcceptWebSocket(_context);
2606
int hr =
IIS
.MgdGetWebSocketContext(_context, out pWebSocketContext);
2620
int hr =
IIS
.MgdGetIsChildContext(_context, out isChildRequest);
Hosting\IPipelineRuntime.cs (10)
27
using IIS =
UnsafeIISMethods
;
348
int hresult =
UnsafeIISMethods
.MgdRegisterEventSubscription(
366
hresult =
UnsafeIISMethods
.MgdRegisterEventSubscription(
463
if (
IIS
.MgdCanDisposeManagedContext(nativeRequestContext, status)) {
519
IIS
.MgdSetManagedHttpContext(nativeRequestContext, root.Pointer);
538
IIS
.MgdGetCurrentNotificationInfo(nativeRequestContext, out currentModuleIndex, out isPostNotification, out currentNotification);
608
IIS
.MgdGetCurrentNotificationInfo(nativeRequestContext, out currentModuleIndex, out isPostNotification, out currentNotification);
625
IIS
.MgdIndicateCompletion(nativeRequestContext, ref status);
700
IIS
.MgdSetBadRequestStatus(nativeRequestContext);
740
UnsafeIISMethods
.MgdAppDomainShutdown(s_ApplicationContext);
Hosting\ProcessHost.cs (2)
989
if (ProcessHost.DefaultHost != null && !
UnsafeIISMethods
.MgdIsAppPoolShuttingDown()) {
1306
int hr =
UnsafeIISMethods
.MgdGetConfigProperty(appConfigMetabasePath, "system.web/trust", "level", out retVal);
HttpApplication.cs (6)
38
using IIS = System.Web.Hosting.
UnsafeIISMethods
;
2007
int result =
UnsafeIISMethods
.MgdRegisterEventSubscription(appContext,
2865
int result =
UnsafeIISMethods
.MgdGetModuleCollection(IntPtr.Zero, appContext, out pModuleCollection, out count);
2872
result =
UnsafeIISMethods
.MgdGetNextModule(pModuleCollection, ref index,
4189
if (needToFinishRequest ||
UnsafeIISMethods
.MgdGetNextNotification(wr.RequestContext, RequestNotificationStatus.Continue) != 1) {
4199
UnsafeIISMethods
.MgdGetCurrentNotificationInfo(wr.RequestContext, out currentModuleIndex, out isPostNotification, out currentNotification);
HttpRuntime.cs (4)
1388
UnsafeIISMethods
.MgdGetIISVersionInformation(out dwVersion, out fIsIntegratedMode);
1443
UnsafeIISMethods
.MgdGetCurrentNotificationInfo(wr.RequestContext, out currentModuleIndex, out isPostNotification, out currentNotification);
1548
bool sendHeaders =
UnsafeIISMethods
.MgdIsLastNotification(requestContext, status);
2085
int result =
UnsafeIISMethods
.MgdPostCompletion(requestContext, status);
HttpWriter.cs (5)
24
using IIS = System.Web.Hosting.
UnsafeIISMethods
;
178
s_Pool =
IIS
.MgdGetBufferPool(BufferingParams.INTEGRATED_MODE_BUFFER_SIZE);
192
_data =
IIS
.MgdGetBuffer(s_Pool);
213
IIS
.MgdReturnBuffer(data);
243
IIS
.MgdReturnBuffer(data);
MimeMapping.cs (2)
462
result =
UnsafeIISMethods
.MgdGetMimeMapCollection(IntPtr.Zero, _applicationContext, out mimeMapCollection, out mimeMapCount);
474
result =
UnsafeIISMethods
.MgdGetNextMimeMap(mimeMapCollection, (uint)i, out bstrFileExtension, out cBstrFileExtension, out bstrMimeType, out cBstrMimeType);
Util\StopListeningWaitHandle.cs (1)
24
IntPtr eventHandle =
UnsafeIISMethods
.MgdGetStopListeningEventHandle();
Util\TlsTokenBindingHandle.cs (1)
23
int hr =
UnsafeIISMethods
.MgdGetTlsTokenBindingIdentifiers(
WebSocketPipeline.cs (1)
51
abortTask.ContinueWith(_ =>
UnsafeIISMethods
.MgdPostCompletion(_root.WorkerRequest.RequestContext, RequestNotificationStatus.Continue), TaskContinuationOptions.ExecuteSynchronously);