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 "set" in [All]

httpapi

.

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

.

HTTP_SERVICE_CONFIG_URLACL_SET

.
HttpServiceConfigUrlAclInfo HTTP_SERVICE_CONFIG_URLACL_SET structure.
.

     HTTP_SERVICE_CONFIG_URLACL_SET urlAclSet = new HTTP_SERVICE_CONFIG_URLACL_SET();

.

     urlAclSet.KeyDesc = urlAclKey;

.

     urlAclSet.ParamDesc = urlAclParam;

.

     IntPtr configInformation = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_URLACL_SET)));

.

     Marshal.StructureToPtr(urlAclSet, configInformation, false);

.

     int configInformationSize = Marshal.SizeOf(urlAclSet);

.

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

.

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

.

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

.

HTTP_SERVICE_CONFIG_SSL_SET

.

HTTP_SERVICE_CONFIG_URLACL_SET

.
HttpServiceConfigIPListenList No input data; set to NULL.
.
HttpServiceConfigSSLCertInfo HTTP_SERVICE_CONFIG_SSL_SET structure.
.
HttpServiceConfigUrlAclInfo HTTP_SERVICE_CONFIG_URLACL_SET structure.
.

HTTP_SERVICE_CONFIG_URLACL_SET QueryServiceConfig(string networkURL)

.

     HTTP_SERVICE_CONFIG_URLACL_SET outputConfigInfo = new HTTP_SERVICE_CONFIG_URLACL_SET();

.

        outputConfigInfo = (HTTP_SERVICE_CONFIG_URLACL_SET)Marshal.PtrToStructure(pOutputConfigInfo, typeof(HTTP_SERVICE_CONFIG_URLACL_SET));

.
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)]

.

static extern uint HttpSetServiceConfiguration(

.

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

.

HTTP_SERVICE_CONFIG_SSL_SET

.

HTTP_SERVICE_CONFIG_URLACL_SET

.
HttpServiceConfigSSLCertInfo HTTP_SERVICE_CONFIG_SSL_SET structure.
.
HttpServiceConfigUrlAclInfo HTTP_SERVICE_CONFIG_URLACL_SET structure.
.

     HTTP_SERVICE_CONFIG_URLACL_SET inputConfigInfoSet = new HTTP_SERVICE_CONFIG_URLACL_SET();

.

     inputConfigInfoSet.KeyDesc = keyDesc;

.

     inputConfigInfoSet.ParamDesc = paramDesc;

.

     IntPtr pInputConfigInfo = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_URLACL_SET)));

.

     Marshal.StructureToPtr(inputConfigInfoSet, pInputConfigInfo, false);

.

     retVal = HttpApi.HttpSetServiceConfiguration(IntPtr.Zero,

.

         Marshal.SizeOf(inputConfigInfoSet),

.

         Marshal.SizeOf(inputConfigInfoSet),

.

         retVal = HttpApi.HttpSetServiceConfiguration(IntPtr.Zero,

.

             Marshal.SizeOf(inputConfigInfoSet),

.

class SetSSLCert

.

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

.

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

.

    static extern uint HttpSetServiceConfiguration(

.

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

.

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

.

    struct HTTP_SERVICE_CONFIG_SSL_SET

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

        HTTP_SERVICE_CONFIG_SSL_SET configSslSet = new HTTP_SERVICE_CONFIG_SSL_SET();

.

        configSslSet.ParamDesc = configSslParam;

.

        configSslSet.KeyDesc = httpServiceConfigSslKey;

.

        IntPtr pInputConfigInfo = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(HTTP_SERVICE_CONFIG_SSL_SET)));

.

        Marshal.StructureToPtr(configSslSet, pInputConfigInfo, false);

.

        retVal = HttpSetServiceConfiguration(IntPtr.Zero,

.

            Marshal.SizeOf(configSslSet),

.

            Marshal.SizeOf(configSslSet),

.

            retVal = HttpSetServiceConfiguration(IntPtr.Zero,

.

                Marshal.SizeOf(configSslSet),

.
Documentation
[HttpSetServiceConfiguration] on MSDN
.
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)]

iphlpapi

.

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

.

      [DllImport("iphlpapi.dll", EntryPoint = "AddIPAddress", SetLastError = true)]

.

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

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

.

    <FieldOffset(0)>

.

    <FieldOffset(4)>

.

    <FieldOffset(8)>

.

    Public Offset As UInt32

.

    <FieldOffset(12)>

.

    Public OffsetHigh As UInt32

.

    <FieldOffset(8)>

.

    <FieldOffset(16)>

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

.

    <DllImport("kernel32.dll", EntryPoint:="CreateEventA", CharSet:=CharSet.Unicode)>

.

    Public Shared Function CreateEvent(lpEventAttributes As IntPtr, ByVal bManualReset As Boolean, ByVal bInitialState As Boolean, ByVal lpName As String) As IntPtr

.

    [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]

.

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

.

        IF_TYPE_FASTETHER = 62,  // Fast Ethernet (100BaseT)

.

[DllImport("iphlpapi.dll", CharSet=CharSet.Ansi)]

.

<DllImport("iphlpapi.dll", EntryPoint:="GetAdaptersInfo", CharSet:=CharSet.Ansi)> _

.

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

.

    [DllImport("iphlpapi.dll", CharSet = CharSet.Auto)]

.

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

.

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

.

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

.

    ///  the function sets this parameter equal to the required buffer size in bytes

.

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

.

[DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

            int offset = sizeof(int);

.

            Marshal.Copy(buffer, offset, ptr, Marshal.SizeOf(map));

.

            offset += Marshal.SizeOf(map);

.

        [DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

        [DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

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

.

[DllImport(S"IPHLPAPI.DLL", EntryPoint=S"GetIpAddrTable", SetLastError=true, CharSet=CharSet::Unicode, ExactSpelling=true)]

.

[DllImport("iphlpapi.dll", CharSet=CharSet.Ansi)]

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)>

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

.

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

.

    [DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

        int offset = sizeof(int);

.

        Marshal.Copy(buffer, offset, ptr, Marshal.SizeOf(map));

.

        offset += Marshal.SizeOf(map);

.

    [DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

    [DllImport("Iphlpapi.dll", CharSet = CharSet.Auto)]

.

        /// the function sets this parameter equal to the required buffer size</para></param>

.

    /// <param name="pfHandle">[out] Pointer to a buffer that receives an array of filter handles. If the caller does not require the filter handles, the caller may set this parameter to NULL.</param>

.

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

.

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

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

.

    <FieldOffset(0)>

.

    <FieldOffset(4)>

.

    <FieldOffset(8)>

.

    Public Offset As UInt32

.

    <FieldOffset(12)>

.

    Public OffsetHigh As UInt32

.

    <FieldOffset(8)>

.

    <FieldOffset(16)>

.

    <DllImport("iphlpapi.dll", CharSet:=CharSet.Ansi)>

dbghelp

.

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

wtsapi32

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

        WTSReset,

.

     WTSReset,

.

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

.

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

.

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

.

    CharSet:=CharSet.Auto, _

.

    setlasterror:=True, _

.

    WTSReset

.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _

.

    WTSReset

.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _

.

    CharSet:=CharSet.Auto, _

.

    setlasterror:=True, _

.

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

.

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

.

        Case WTS_CONNECTSTATE_CLASS.WTSReset

.

        RetVal = "reset"

.

[DllImport("wtsapi32.dll", ExactSpelling=true, SetLastError=false)]

.

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

.

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

.

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

.

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

.

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

.

As always, only do SetLastError=true if you actually intend to call GetLastError.

.

            [DllImport("wtsapi32.dll", ExactSpelling=true, SetLastError=false)]

.

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

.

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

.

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

.

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

.

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

.

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

.

    param([int]$sessionId = 1, [string]$title = "Title", [string]$message = "Message", [int]$buttonSet = 4, [int]$timeout = 0, [bool]$waitResponse = $false)

.

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

.

        $MessageBox::WTSSendMessage(0, $sessionId, $title, $titleLength, $message, $messageLength, $buttonSet, $timeout, [ref] $response, $waitResponse)

.

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

.

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

.

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

.

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

.

[DllImport("wtsapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]

.

[DllImport("wtsapi32.dll", CharSet=CharSet.Auto, ExactSpelling=true, SetLastError=true)]

.

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

.

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

.

    WTSReset,          

shell32

45: api
.

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

.

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

.

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

.

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

49: CSIDL
.

            CSIDL_LOCAL_APPDATA         = 0x001c,    // <user name>\Local Settings\Applicaiton Data (non roaming)

.

            CSIDL_CDBURN_AREA           = 0x003b    // USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning

50: CSIDL
.

        /// A typical path is C:\Documents and Settings\username\Application Data. This CSIDL is supported by the

.

        /// A typical path is C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\CD Burning.

.

        /// C:\Documents and Settings\All Users\Application Data.

.

        /// A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT systems.

.

        /// C:\Documents and Settings\All Users\Documents. Valid for Windows NT systems and Microsoft Windows 95

.

        /// A typical path is C:\Documents and Settings\All Users\Documents\My Music.

.

        /// A typical path is C:\Documents and Settings\All Users\Documents\My Pictures.

.

        /// Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs.

.

        /// A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT systems.

.

        /// A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Valid only for Windows NT systems.

.

        /// C:\Documents and Settings\All Users\Templates. Valid only for Windows NT systems.

.

        /// A typical path is C:\Documents and Settings\All Users\Documents\My Videos.

.

        /// C:\Documents and Settings\username\Cookies.

.

        /// the desktop folder itself). A typical path is C:\Documents and Settings\username\Desktop.

.

        /// C:\Documents and Settings\username\Favorites.

.

        /// A typical path is C:\Documents and Settings\username\Local Settings\Temporary Internet Files.

.

        /// A typical path is C:\Documents and Settings\username\Local Settings\Application Data.

.

        /// C:\Documents and Settings\User\My Documents\My Music.

.

        /// A typical path is C:\Documents and Settings\username\My Documents\My Pictures.

.

        /// A typical path is C:\Documents and Settings\username\My Documents\My Videos.

.

        /// A typical path is C:\Documents and Settings\username\NetHood.

.

        /// A typical path is C:\Documents and Settings\username\My Documents. This should be distinguished from the virtual

.

        /// A typical path is C:\Documents and Settings\username\PrintHood.

.

        /// Version 5.0. The user's profile folder. A typical path is C:\Documents and Settings\username. Applications should

.

        /// Version 6.0. The file system directory containing user profile folders. A typical path is C:\Documents and Settings.

.

        /// A typical path is C:\Documents and Settings\username\Start Menu\Programs.

.

        /// C:\Documents and Settings\username\My Recent Documents. To create a shortcut in this folder, use SHAddToRecentDocs.

.

        /// The file system directory that contains Send To menu items. A typical path is C:\Documents and Settings\username\SendTo.

.

        /// The file system directory containing Start menu items. A typical path is C:\Documents and Settings\username\Start Menu.

.

        /// A typical path is C:\Documents and Settings\username\Start Menu\Programs\Startup.

.

        /// C:\Documents and Settings\username\Templates.

.

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

.

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

.

<DllImport("shell32.dll", CharSet:=CharSet.Auto)> _

.

[DllImport("shell32.dll", CharSet=CharSet.Auto)]

.

<DllImport("shell32.dll", CharSet:=CharSet.Auto)> _

.

    [DllImport("Shell32", CharSet=CharSet.Auto)]

.

    [DllImport("user32.dll", EntryPoint="DestroyIcon", SetLastError=true)]

.

    <DllImport("shell32.dll", CharSet:=CharSet.Auto)> _

.

    <DllImport("user32.dll", EntryPoint:="DestroyIcon", SetLastError:=True)> _

.

[DllImport("shell32.dll", CharSet=CharSet.Auto)]

.

<DllImport("shell32.dll", CharSet:=CharSet.Auto)> _

.

    [DllImport("Shell32", CharSet=CharSet.Auto)]

.

    [DllImport("user32.dll", EntryPoint="DestroyIcon", SetLastError=true)]

.

    <DllImport("shell32.dll", CharSet:=CharSet.Auto)> _

.

    <DllImport("user32.dll", EntryPoint:="DestroyIcon", SetLastError:=True)> _

.

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

.

Create three bool variables to set true or false :-

.

set

.

set

.

set

.

[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

/// Set it to 0 for A:, 1 for B:, and so on.

.

[DllImport("shell32.dll", SetLastError = True)]

.

''' Set it to 0 for A:, 1 for B:, and so on.

.

<DllImport("shell32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> _

.

[DllImport("shell32.dll", SetLastError = True)]

.

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

.

     void SetActiveAlt(IntPtr hwnd);

.

     void SetProgressValue(IntPtr hwnd, UInt64 ullCompleted, UInt64 ullTotal);

.

     void SetProgressState(IntPtr hwnd, TaskbarProgressBarStatus tbpFlags);

.

     void SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore);

.

     void SetTabActive(IntPtr hwndTab, IntPtr hwndInsertBefore, uint dwReserved);

.

     void ThumbBarSetImageList(IntPtr hwnd, IntPtr himl);

.

     void SetOverlayIcon(

.

     void SetThumbnailTooltip(

.

     void SetThumbnailClip(

.

     void SetTabProperties(IntPtr hwndTab, SetTabPropertiesOption stpFlags);

.

    Sub SetActiveAlt(hwnd As IntPtr)

.

    Sub SetProgressValue(hwnd As IntPtr, ullCompleted As UInt64, ullTotal As UInt64)

.

    Sub SetProgressState(hwnd As IntPtr, tbpFlags As TaskbarProgressBarStatus)

.

    Sub SetTabOrder(hwndTab As IntPtr, hwndInsertBefore As IntPtr)

.

    Sub SetTabActive(hwndTab As IntPtr, hwndInsertBefore As IntPtr, dwReserved As UInteger)

.

    Sub ThumbBarSetImageList(hwnd As IntPtr, himl As IntPtr)

.

    Sub SetOverlayIcon(hwnd As IntPtr, hIcon As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> pszDescription As String)

.

    Sub SetThumbnailTooltip(hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> pszTip As String)

.

    Sub SetThumbnailClip(hwnd As IntPtr, prcClip As IntPtr)

.

    Sub SetTabProperties(hwndTab As IntPtr, stpFlags As SetTabPropertiesOption)

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


 
Access PInvoke.net directly from VS: