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

dmcl40

.

I observed, however, that one of them held somewhat aloof, and though he seemed desirous not to spoil the hilarity of his shipmates by his own sober face, yet upon the whole he refrained from making as much noise as the rest. This man interested me at once; and since the sea-gods had ordained that he should soon become my shipmate (though but a sleeping-partner one, so far as this narrative is concerned), I will here venture upon a little description of him. He stood full six feet in height, with noble shoulders, and a chest like a coffer-dam. I have seldom seen such brawn in a man. His face was deeply brown and burnt, making his white teeth dazzling by the contrast; while in the deep shadows of his eyes floated some reminiscences that did not seem to give him much joy. His voice at once announced that he was a Southerner, and from his fine stature, I thought he must be one of those tall mountaineers from the Alleghanian Ridge in Virginia. When the revelry of his companions had mounted to its height, this man slipped away unobserved, and I saw no more of him till he became my comrade on the sea. In a few minutes, however, he was missed by his shipmates, and being, it seems, for some reason a huge favourite with them, they raised a cry of "Bulkington! Bulkington! where's Bulkington?" and darted out of the house in pursuit of him.

.
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

winhttp

.
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

xolehlp

.
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

iphlpapi

.

        public UInt64 TrasmitLinkSpeed;

.

    protected static IPHelperTraslation.MIB_IFROW netWorkInfoBlock;

.

    public static IPHelperTraslation.MIB_IFROW[] mRows;

.

    /// each network comes in a row. See MIB_IFROW in IPHelper Traslation for more

.

    public static IPHelperTraslation.MIB_IFROW[] GetNetworkInterfaceBlock()

.

        IPHelperTraslation.GetIfTable(IntPtr.Zero, ref size, false);

.

        IPHelperTraslation.GetIfTable(buf, ref size, false);

.

        mRows = new IPHelperTraslation.MIB_IFROW[numEntries];

.

        mRows[i] = (IPHelperTraslation.MIB_IFROW)Marshal.PtrToStructure((IntPtr)pRows, typeof(IPHelperTraslation.MIB_IFROW));

.

        pRows += Marshal.SizeOf(typeof(IPHelperTraslation.MIB_IFROW));

.
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,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

cards

.
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,Constants,Delegates,Enums,Interfaces,Structures

user32

.

public extern static bool GetUpdateRect(IntPtr hWnd, ref RECT rect, bool bErase);

.

Private Shared Function GetUpdateRect(ByVal hWnd As IntPtr, ByRef rect As RECT, ByVal bErase As Boolean) As Boolean

.

Dim bErase As Boolean

.

GetUpdateRect(Me.Handle, rRect, bErase)

.

static extern int GetUpdateRgn(IntPtr hWnd, IntPtr hRgn, bool bErase);

.

static extern bool InvalidateRect(IntPtr hWnd, IntPtr lpRect, bool bErase);

.

Public Overloads Declare Function InvalidateRect Lib "User32" Alias "InvalidateRect" (ByVal hWnd As Int32, ByRef lpRect As RECT, ByVal bErase As Boolean) As Boolean

.

Public Overloads Declare Function InvalidateRect Lib "User32" Alias "InvalidateRect" (ByVal hWnd As Int32, ByVal lpRect As IntPtr, ByVal bErase As Boolean) As Boolean

.

Public Overloads Shared Function InvalidateRect(ByVal hWnd As Int32, ByVal bErase As Boolean) As Boolean

.

     Return InvalidateRect(hWnd, IntPtr.Zero, bErase)

.

Public Overloads Shared Function InvalidateRect(ByVal hWnd As Int32, ByVal lpRect As System.Drawing.Rectangle, ByVal bErase As Boolean) As Boolean

.

     Return InvalidateRect(hWnd, RECT.FromRectangle(lpRect), bErase)

.

static extern bool InvalidateRgn(IntPtr hWnd, IntPtr hRgn, bool bErase);

.

As seen below, "message" is the culprit. After exception (1) occurs, all the data members of NativeMessage are zero. Even the point is initialized. After exception (2) occurs, the external dll crashes and it brings down your app. I have tried using GC.KeepAlive(message); without luck.

.

/// If SW_INVALIDATE, don't send WM_ERASEBACKGROUND.

.

public const uint SW_ERASE            = 0x0004;

.

It's very important to specify 'ref' on the MENUITEMINFO otherwise on Windows 7 32-bit user32.dll will crash with the error text 0a9e372d3b4ad19135b953a78882e789. However, Windows 8.1 64 bit it works with or without the 'ref' keyword. Tested both using NET40.

.

    ///         <term>SWP_DEFERERASE (0x2000)</term>

.

   DEFERERASE = 0x2000,

.

        SWP_DEFERERASE = 0x2000,

.

Ecco qua il modo per utilizzare un PNG semi trasparente come sfondo per i vostri Form. Riporto qua la procedura completa:

.

Traslation in english. This is the way to use PNG semitransparent background for yours form:

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

avifil32

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,Constants,Delegates,Enums,Interfaces,Structures

setupapi

.
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

winmm

.
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,Constants,Delegates,Enums,Interfaces,Structures

pstorec

.
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

iprop

.
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,query,Constants,Delegates,Enums,Interfaces,Structures

xpsprint

.
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

ntdll

.

    SystemCrashDumpInformation = 0x0020,

.

    SystemCrashDumpStateInformation = 0x0022,

.
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,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

Interfaces

.

    /// autocompleted suggestion is treated as a phrase

.
Summary
Exposes methods that are used by a host to control the security zone infrastructure.
.

    /// <param name="pdwAssemblyFlags">[out] Flags that describe the metadata applied to an assembly. This value is a combination of one or more <c>CorAssemblyFlags</c> values.</param>

.

        [Out] out CorAssemblyFlags pdwAssemblyFlags);

.

    /// <param name="pdwAssemblyFlags">[out] A pointer to flags that describe the metadata applied to an assembly. The flags value is a combination of one or more <c>CorAssemblyFlags</c> values.</param>

.

        [Out] out CorAssemblyFlags pdwAssemblyFlags);

.

    /// <param name="rAssemblyRefs">[out] The enumeration of mdAssemblyRef metadata tokens.</param>

.

    /// <param name="cMax">[in] The maximum number of tokens that can be placed in the rAssemblyRefs array.</param>

.

    /// <param name="pcTokens">[out] The number of tokens actually placed in rAssemblyRefs.</param>

.

    ///     mdAssemblyRef rAssemblyRefs[],      // [OUT] Put AssemblyRefs here.

.

        [Out, MarshalAs(UnmanagedType.LPArray)] uint[] rAssemblyRefs,

.

    public enum CorAssemblyFlags : uint {    

.

    tdNestedFamORAssem      =   0x00000007,     // Class is nested with family or assembly visibility.

.

        CorAssemblyFlags dwAssemblyFlags;

.

- Various sites declare OLECMD.cmdf as UInt64. For me this crashes IE7 just after my QueryStatus() method is called, but declaring it as uint works fine. This seems correct given the MSDN definition as a DWORD - http://msdn.microsoft.com/en-us/library/ms690534%28VS.85%29.aspx

.

        #region Erase Table

.

        ///    Activates/Deactivates the eraser for erasing a table

.

        public void ToggleEraseTable()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.EraseTable));

.

    bool RegisterAsBrowser { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x228)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x228)] set; }

.

    bool RegisterAsDropTarget { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x229)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x229)] set; }

.

    Property RegisterAsBrowser() As <MarshalAs(UnmanagedType.VariantBool)> Boolean

.

    Property RegisterAsDropTarget() As <MarshalAs(UnmanagedType.VariantBool)> Boolean

.

    bool RegisterAsBrowser { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x228)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x228)] set; }

.

    bool RegisterAsDropTarget { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x229)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x229)] set; }

.

    Property RegisterAsBrowser() As <MarshalAs(UnmanagedType.VariantBool)> Boolean

.

    Property RegisterAsDropTarget() As <MarshalAs(UnmanagedType.VariantBool)> Boolean

.
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,winfax,odbc32,gdiplus,msdrm,odbccp32,gsapi,ws2_32,Constants,Delegates,Enums,Structures

credui

.
Import
advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

aygshell

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,Constants,Delegates,Enums,Interfaces,Structures

imm32

.
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,ntdsapi,Constants,Delegates,Enums,Interfaces,Structures

odbc32

.
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,winfax,Constants,Delegates,Enums,Interfaces,Structures

kernel32

.
  • Your program will crash if you try to attach when running from windows and not from a console window.
.
  • Your program will crash if you try to attach when running from windows and not from a console window.
.

To query the filename for a process that is running elevated from a process that is not, the .NET api crashes.

.

RESTART_NO_CRASH = 1 : Do not restart the process if it terminates due to an unhandled exception

.

      RESTART_NO_CRASH = 1, // Do not restart if process terminates due to unhandled exception

.

      int RegisterResult = RegisterApplicationRestart(APPLICATION_CRASHED, RestartFlags.NONE);

.

        SetErrorMode(ErrorModes.SEM_NOGPFAULTERRORBOX | ErrorModes.SEM_NOOPENFILEERRORBOX); // this funtion prevents error dialog box to show up after application crash

.

In contrast, if you are trying to do managed-debugging (instead of just write a native debugger in C#), you need to use the managed debugging APIs (ICorDebug) instead of the native debugging APIs here.

.
Import
credui,advapi32,gdi32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

rasapi32

52: !!!!!!
53: !!!!!
54: !!!
55: !
59: lorem8
.
Summary
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.
.

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

.

public static extern bool RasDialDlg(

.

    ref RASDIALDLG info);

.

public struct RASDIALDLG

.

RASDIALDLG info = new RASDIALDLG();

.

bool ret = RAW.RasDialDlg(IntPtr.Zero, "Some Connection Name", IntPtr.Zero, ref info);

.

http://www.codeplex.com/DotRas - The RasDialDialog component in the project exposes functionality provided by the RasDialDlg API.

.
Documentation
[RasDialDlg] on MSDN

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


 
Access PInvoke.net directly from VS: