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]

ntdll

.

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

.

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

.

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

.

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

.

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

.

[DllImport("ntdll.dll", SetLastError=true)] static extern IntPtr NtQueryInformationFile(IntPtr fileHandle, ref IO_STATUS_BLOCK IoStatusBlock, IntPtr pInfoBlock, uint length, FILE_INFORMATION_CLASS fileInformation);

.

        FileMailslotSetInformation

.

        FileMailslotSetInformation,       // 27

.

        FileMailslotSetInformation,        // 27

.

        [FieldOffset(0)]

.

        [FieldOffset(8)]

.

        [FieldOffset(16)]

.

        [FieldOffset(24)]

.

        [FieldOffset(32)]

.

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

.

        File.SetAttributes(path2file, FileAttributes.Normal);

.

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

.

[DllImport("NTDLL.DLL", SetLastError=true)]

.

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

.

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

.

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

.

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

.

static extern UInt32 NtSetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length);

.

Declare Function NtSetSystemInformation Lib "ntdll.dll" (TODO) As TODO

.

public static void SetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length)

.

        result = NtSetSystemInformationKernel(InfoClass, Info, Length);

.
Documentation
[NtSetSystemInformation] on MSDN
.
Summary
Sets the resolution of the system Timer in the calling process context.
.

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

.

static extern int NtSetTimerResolution(int DesiredResolution, bool SetResolution, out int CurrentResolution );

.

Declare Function NtSetTimerResolution Lib "ntdll.dll" (ByVal DesiredResolution as UInteger, ByVal SetResolution as Boolean, ByRef CurrentResolution as UInteger)

.

NtSetTimerResolution(0.5, True, 0)

.
Documentation
[NtSetTimerResolution] on MSDN
.

[DllImport("ntdll.dll", SetLastError = false)]

.

  <DllImport("ntdll.dll", SetLastError:=False)> _

.

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

.

    ProcessWorkingSetWatch, // q: PROCESS_WS_WATCH_INFORMATION[]; s: void

.

    ProcessWorkingSetWatchEx, // q: PROCESS_WS_WATCH_INFORMATION_EX[]

.

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

.

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

.
Summary
Tells NtQuerySystemInformation and NtSetSystemInformation what you would like to read/change.
.

    public UInt32 ZeroPageCount; // Size=4 Offset=0

.

    public UInt32 FreePageCount; // Size=4 Offset=4

.

    public UInt32 ModifiedPageCount; // Size=4 Offset=8

.

    public UInt32 ModifiedNoWritePageCount; // Size=4 Offset=12

.

    public UInt32 BadPageCount; // Size=4 Offset=16

.

    public UInt32[] PageCountByPriority; // Size=32 Offset=20

.

    public UInt32[] RepurposedPagesByPriority; // Size=32 Offset=52

.

    public UInt32 ModifiedPageCountPageFile; // Size=4 Offset=84

avifil32

.

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

.

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

.

For C#, use AviFileOpen together with CharSet = CharSet.Auto.

.

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

.

The signature is not correct. Instead use AviFileOpen together with CharSet = CharSet.Auto.

.

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

.

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

.

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

24: Mierda
.

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

imm32

.

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

.

[DllImport("imm32.dll", CharSet=CharSet.Unicode)]

.

[DllImport("imm32.dll", CharSet=CharSet.Unicode)]

.

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

.

    public static extern bool ImmSetOpenStatus(IntPtr himc, bool b);

.

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

.

    public int  dwOffset;

.

            int os = list.dwOffset;

credui

.

    [DllImport("credui.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

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

.

[DllImport("credui.dll", EntryPoint="CredUIConfirmCredentialsW", CharSet = CharSet.Unicode)]

.

[DllImport("credui.dll", EntryPoint="CredUIParseUserNameW", CharSet=CharSet.Unicode)]

.

  [DllImport("credui", CharSet = CharSet.Unicode)]

.

  [DllImport("credui", CharSet = CharSet.Unicode)]

.

    [DllImport("credui.dll", CharSet = CharSet.Unicode)]

.

    ''' <param name="pfSave">If set to <c>True</c> the check the "Save" checkbox on the dialog - only displayed if CREDUIWIN_CHECKBOX is passed in dwFlags.</param>

.

    <System.Runtime.InteropServices.DllImport("credui.dll", EntryPoint:="CredUIPromptForWindowsCredentials", CharSet:=CharSet.Unicode)> <CLSCompliant(False)> _

.

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

.

      /// If this flag is set, and the InAuthBuffer parameter is NULL, the function fails.

.

      /// Credential providers should enumerate only administrators. This value is intended for User Account Control (UAC) purposes only. We recommend that external callers not set this flag.

.

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

.

    ''' <param name="dwFlags">Setting the value of this parameter to CRED_PACK_PROTECTED_CREDENTIALS (1)

.

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

.

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

.

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

.

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

netapi32

.

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

.

[DllImport("Netapi32.dll", CallingConvention=CallingConvention.Winapi, SetLastError=true, CharSet=CharSet.Auto)]

.

     [DllImport("Netapi32.dll", CallingConvention=CallingConvention.Winapi, SetLastError=true, CharSet=CharSet.Auto)]

.

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

.

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

.

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

.

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

.

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

.

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

.

[DllImport("Netapi32.dll", EntryPoint = "DsGetDcNextW", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode)]

.

        // leave the second parameter set to 0 and "MYADSITE" set to null if you want the entire domain

.

[DllImport(Netapi32, CharSet=CharSet.Auto, SetLastError=true)]

.

[DllImport("Netapi32.dll", EntryPoint = "DsGetDcOpenW", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode)]

.

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

.

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

.

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

.

    [DllImport("netapi32.dll", CharSet = CharSet.Unicode)]

.

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

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

    [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]

.

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

.

        LSA_AccessPolicy.POLICY_SET_AUDIT_REQUIREMENTS |

.

        LSA_AccessPolicy.POLICY_SET_DEFAULT_QUOTA_LIMITS |

.

        aSystemName.SetTo(this.ResourceName);

.

         PolicyAuditFullSetInformation,

.

        POLICY_SET_DEFAULT_QUOTA_LIMITS = 0x00000080L,

.

        POLICY_SET_AUDIT_REQUIREMENTS = 0x00000100L,

.

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

.

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

.

There is no indication that the NetApiBufferFree function sets the last error code, so SetLastError attribute should not be set (this removes extra calls in the interop layer to store the last error code). Also, the CharSet property on the attribute need not be applied either, as there is only one version of this function.

.

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

.

    [DllImport("Netapi32.dll", CharSet = CharSet.Auto/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

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

.

[2014-02-27] The function does not set the last error value, the error is returned directly and is in NET_API_STATUS format /Stoyan Sabev/

.

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)]

.

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

.

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]

.

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

.

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

.

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

.

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

.

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

.

[Stoyan Sabev] The function does not set the last error value, the error is returned directly and is NET_API_STATUS form

.

    /// <param name="Flags">[in] A set of flags that describe actions to take when moving the link. </param>

.

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

.

    '/ <param name="Flags">[in] A set of flags that describe actions to take when moving the link. </param>

.

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

.

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

.

    ''' <param name="ServerName">[in] Pointer to a string that specifies the name of the host server that the Dfs link references. Set this parameter to NULL if the link and all link targets are to be removed.</param>

.

    ''' <param name="ShareName">[in] Pointer to a string that specifies the name of the shared folder or the path to a folder within a shared folder on the host server that the Dfs link references. Set this parameter to NULL if the link and all link targets are to be removed.</param>

.
Summary
The NetDfsSetInfo function sets or modifies the information associated with a Distributed File System (Dfs) link in the named Dfs root, or with the Dfs root itself. The function can set information relevant to a specific root, root target, link, or link target.
.

    /// The NetDfsSetInfo function sets or modifies the information associated with a Distributed File System (Dfs) link in the named Dfs root, or with the Dfs root itself. The function can set information relevant to a specific root, root target, link, or link target.

.

    [DllImport("Netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

    public static extern int NetDfsSetInfo(

.

Declare Function NetDfsSetInfo Lib "netapi32.dll" (TODO) As TODO

.

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

.

    static public void SetComment(string dfsPath, string comment) {

.

            int result = NetDfsSetInfo(dfsPath, null, null, 100, commentBuffer);

.
Documentation
[NetDfsSetInfo] on MSDN
.

[DllImport("netapi32.dll", SetLastError=true, CharSet = CharSet.Unicode)]

.

[DllImport("netapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]

.

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]

.

  <DllImport("Netapi32.dll", CharSet:=CharSet.Unicode)> _

.

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)]

.

    ByRef bufferType As NETSETUP_JOIN_STATUS) _

.

    NetSetupUnknownStatus = 0,

.

    NetSetupUnjoined,

.

    NetSetupWorkgroupName,

.

    NetSetupDomainName

.

} // NETSETUP_JOIN_STATUS

.

Public Enum NETSETUP_JOIN_STATUS As UInteger

.

    NetSetupUnknownStatus = 0

.

    NetSetupUnjoined

.

    NetSetupWorkgroupName

.

    NetSetupDomainName

.

    NetJoinStatus status = NetJoinStatus.NetSetupUnknownStatus;

.

            status == NetJoinStatus.NetSetupDomainName)

.

    Public GroupType As NETSETUP_JOIN_STATUS

.

Public Enum NETSETUP_JOIN_STATUS As UInteger

.

    NetSetupUnknownStatus = 0

.

    NetSetupUnjoined

.

    NetSetupWorkgroupName

.

    NetSetupDomainName

.

        ByRef bufferType As NETSETUP_JOIN_STATUS) _

.

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

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


 
Access PInvoke.net directly from VS: