Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "API" in [All]

httpapi

.
Summary
The HttpDeleteServiceConfiguration function deletes specified information, such as IP addresses or SSL Certificates, from the HTTP API configuration store, one record at a time.
.

[DllImport("httpapi.dll", SetLastError = true)]

.

Declare Function HttpDeleteServiceConfiguration Lib "httpapi.dll" (TODO) As TODO

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

.

     retVal = HttpApi.HttpInitialize(HttpApi.HTTPAPI_VERSION, HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

     retVal = HttpApi.HttpDeleteServiceConfiguration(IntPtr.Zero,

.

     HttpApi.HttpTerminate(HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

Alternative Managed API:

.
Summary
The HttpInitialize function initializes the HTTP API driver, starts it, if it has not already been started, and allocates data structures for the calling application to support response-queue creation and other operations. Call this function before calling any other functions in the HTTP API.
.

[DllImport("httpapi.dll", SetLastError = true)]

.

     HTTPAPI_VERSION Version,

.

<DllImport("httpapi.dll", SetLastError := True)> _

.

Private Shared Function HttpInitialize(ByVal Version As HTTPAPI_VERSION, ByVal Flags As UInteger, ByVal pReserved As IntPtr) As UInteger

.

HTTPAPI_VERSION

.

    retVal = HttpApi.HttpInitialize(HttpApi.HTTPAPI_VERSION, HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

    HttpApi.HttpTerminate(HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

Alternative Managed API:

.
Summary
The HttpQueryServiceConfiguration function retrieves one or more HTTP API configuration records.
.

[DllImport("httpapi.dll", SetLastError = true)]

.

Declare Function HttpQueryServiceConfiguration Lib "httpapi.dll" (TODO) As TODO

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

.

     HTTPAPI_VERSION httpApiVersion = new HTTPAPI_VERSION(1, 0);

.

     retVal = HttpApi.HttpInitialize(httpApiVersion, HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

     retVal = HttpApi.HttpQueryServiceConfiguration(IntPtr.Zero,

.

         retVal = HttpApi.HttpQueryServiceConfiguration(IntPtr.Zero,

.

     HttpApi.HttpTerminate(HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

Alternative Managed API:

.
Summary
The HttpSetServiceConfiguration function creates and sets a configuration record for the HTTP API configuration store. The call fails if the specified record already exists. To change a given configuration record, delete it and then recreate it with a different value.
.

[DllImport("httpapi.dll", SetLastError = true)]

.

Declare Function HttpSetServiceConfiguration Lib "httpapi.dll" (ByVal mustbezero As IntPtr, ByVal configID As Integer, ByVal configInfo As HTTP_SERVICE_CONFIG_URLACL_SET, ByVal configInfoLength As Integer, ByVal mustBeZero2 As IntPtr) As Integer

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

.

     retVal = HttpApi.HttpInitialize(HttpApi.HTTPAPI_VERSION, HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

     retVal = HttpApi.HttpSetServiceConfiguration(IntPtr.Zero,

.

         retVal = HttpApi.HttpDeleteServiceConfiguration(IntPtr.Zero,

.

         retVal = HttpApi.HttpSetServiceConfiguration(IntPtr.Zero,

.

     HttpApi.HttpTerminate(HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

    [DllImport("httpapi.dll", SetLastError = true)]

.

        HTTPAPI_VERSION Version,

.

    [DllImport("httpapi.dll", SetLastError = true)]

.

    [DllImport("httpapi.dll", SetLastError = true)]

.

    [DllImport("httpapi.dll", SetLastError = true)]

.

    public struct HTTPAPI_VERSION

.

        public ushort HttpApiMajorVersion;

.

        public ushort HttpApiMinorVersion;

.

        public HTTPAPI_VERSION(ushort majorVersion, ushort minorVersion)

.

        HttpApiMajorVersion = majorVersion;

.

        HttpApiMinorVersion = minorVersion;

.

        HTTPAPI_VERSION httpApiVersion = new HTTPAPI_VERSION(1, 0);

.

        retVal = HttpInitialize(httpApiVersion, HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

Alternative Managed API:

.
Summary
The HttpTerminate function cleans up resources used by the HTTP API to process calls by an application. An application should call HttpTerminate once for every time it called HttpInitialize, with matching flag settings.
.

[DllImport("httpapi.dll", SetLastError = true)]

.

Declare Function HttpTerminate Lib "httpapi.dll" (TODO) As TODO

.

HttpApi.HttpTerminate(HttpApi.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);

.

Alternative Managed API:

.
Namespace
httpapi
.
Description
httpapi.dll
.
Title
httpapi.dll
.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,Constants,Delegates,Enums,Interfaces,Structures

cfgmgr32

.

    CallingConvention:=CallingConvention.Winapi)> _

.

Alternative Managed API:

.

     InvalidApi = 0x00000020,

.

    CallingConvention:=CallingConvention.Winapi)> _

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,Constants,Delegates,Enums,Interfaces,Structures

mscorsn

.

See the sample on Shawn Farkas' blog for a complete sample of using this API: http://blogs.msdn.com/shawnfa/archive/2004/07/09/178902.aspx

.

See the sample on Shawn Farkas' blog for a complete sample of using this API: http://blogs.msdn.com/shawnfa/archive/2004/07/09/178902.aspx

.

This strong name API has been moved to mscoree.dll for Whidbey. It is not available in the v1.0 or v1.1 versions of the framework.

.

This strong name API has been moved to mscoree.dll for Whidbey. It is not available in the v1.0 or v1.1 versions of the framework.

.

Alternative Managed API:

.

Alternative Managed API:

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,Constants,Delegates,Enums,Interfaces,Structures

psapi

.

[DllImport("psapi")]

.

Public Declare Function EmptyWorkingSet Lib "psapi.dll" (hwProc As IntPtr) As Int32

.

Alternative Managed API:

.

                _result = PsapiHelper.EmptyWorkingSet(process.Handle);

.

[DllImport("psapi")]

.

Declare Function EnumDeviceDrivers Lib "psapi.dll" (TODO) As TODO

.

Alternative Managed API:

.

[DllImport("psapi")]

.

        [DllImport("psapi")]

.

        [DllImport("psapi")]

.

[DllImport("Psapi.dll", SetLastError=true)]

.

<DllImport("psapi.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _

.

Alternative Managed API:

.

     [DllImport("psapi")]

.

[DllImport("psapi.dll", SetLastError = true)]

.

<DllImport("psapi.dll", SetLastError:=True)> _

.

Alternative Managed API:

.

[DllImport("psapi.dll", CallingConvention=CallingConvention.StdCall, SetLastError = true)]

.

[DllImport("psapi")]

.

Declare Function GetDeviceDriverBaseName Lib "psapi.dll" (TODO) As TODO

.

Alternative Managed API:

.

        [DllImport("psapi")]

.

        [DllImport("psapi")]

.

[DllImport("psapi.dll")]

.

Alternative Managed API:

.

[DllImport("psapi.dll")]

.

<DllImport("psapi.dll")> _

.

Alternative Managed API:

.

[DllImport("psapi.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Unicode)]

.

[DllImport("psapi.dll", SetLastError=true)]

.

<DllImport("psapi.dll", SetLastError:=True)>

.

Alternative Managed API:

.

[DllImport("psapi.dll", SetLastError = true)]

.

Declare Function GetPerformanceInfo Lib "psapi.dll" (TODO) As Boolean

.

Alternative Managed API:

.

  public static class PsApiWrapper

.

    [DllImport("psapi.dll", SetLastError = true)]

.

    private static extern bool GetPerformanceInfo([Out] out PsApiPerformanceInformation PerformanceInformation, [In] int Size);

.

    public struct PsApiPerformanceInformation

.

      PsApiPerformanceInformation perfInfo = new PsApiPerformanceInformation();

.

    [DllImport( "psapi.dll", CharSet = CharSet.Auto, EntryPoint = "GetPerformanceInfo", SetLastError = true )]

.

[DllImport("psapi.dll")]

.

Declare Function GetProcessImageFileName Lib "psapi.dll"

.

<DllImport("psapi.dll")> _

.

Alternative Managed API:

.

[DllImport("psapi.dll", SetLastError=true)]

.

Declare Function GetProcessMemoryInfo Lib "psapi.dll" (TODO) As TODO

.

Alternative Managed API:

.

   [DllImport("psapi.dll", SetLastError = true)]

.
Namespace
psapi
.
Description
psapi.dll
.
Title
psapi.dll
.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

gdiplus

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

.

Alternative Managed API:

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: