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]

query

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

misc

2: FAQ
.

For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine.

.
Import
advapi32,avifil32,cards,comdlg32,credui,crypt32,dmcl40,gdi32,gdiplus,glu32,glut32,gsapi,hhctrl,httpapi,icmp,imm32,iphlpapi,iprop,kernel32,mapi32,mpr,mqrt,mscorsn,msdrm,msi,msvcrt,netapi32,ntdll,ntdsapi,odbc32,odbccp32,ole32,oleacc,oleaut32,opengl32,powrprof,pstorec,query,rasapi32,rpcrt4,secur32,setupapi,shell32,shlwapi,twain_32,unicows,urlmon,user32,uxtheme,winfax,wininet,winmm,winscard,winspool,ws2_32,wtsapi32,xolehlp,aygshell,coredll,rapi,cfgmgr32,comctl32,hlink,Constants,Delegates,Enums,Interfaces,Structures,Glossary

powrprof

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

glut32

.
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

dhcpsapi

.
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

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

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

getuname

.
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

mpr

.

        ref RAS_1 buffer);

.

     private const byte RASPRIV_NoCallback = 1;

.

     private const byte RASPRIV_AdminSetCallback = 2;

.

     private const byte RASPRIV_CallerSetCallback = 4;

.

     private const byte RASPRIV_DialinPrivilege = 8;

.

        RAS_1 rasUser = new RAS_1();

.

        UInt32 result = MprAdminUserGetInfo(serverName, userId, 1, ref rasUser);

.

        if ((rasUser.bfPrivilege & RASPRIV_DialinPrivilege) == RASPRIV_DialinPrivilege)

.

        ref RAS_1 buffer);

.

private const byte RASPRIV_NoCallback = 1;

.

private const byte RASPRIV_AdminSetCallback = 2;

.

private const byte RASPRIV_CallerSetCallback = 4;

.

private const byte RASPRIV_DialinPrivilege = 8;

.

private const byte RASPRIV_NoDialInPrivilege = 255 - RASPRIV_DialinPrivilege;

.

        RAS_1 rasUser = new RAS_1();

.

        UInt32 result = MprAdminUserGetInfo(serverName, userId, 1, ref rasUser);

.

            rasUser.bfPrivilege |= RASPRIV_DialinPrivilege;

.

            rasUser.bfPrivilege &= RASPRIV_NoDialInPrivilege;

.

        result = MprAdminUserSetInfo(serverName, userId, 1, ref rasUser);

.
Import
advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,credui,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

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

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

unicows

.
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

rapi

.

    uint trash;

.

    CeRegCreateKeyEx(key, "NewKey", 0, "", 0, 0, 0, out key2, out trash);

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

irprops

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

winspool

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

ole32

.
Import
credui,advapi32,gdi32,kernel32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,oleaut32,rpcrt4,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

ntdsapi

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

wtsapi32

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

icmp

.
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

wininet

.

///         <term>INTERNET_RAS_INSTALLED (0x10)</term>

.

///         <description>Local system has RAS installed.</description>

.

    RasInstalled = 0x10,

.

    RasInstalled = &H10

.
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,msvcrt,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

oleacc

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

Structures

.

Originally this article showed the 'product' and 'copyright' fields as type 'string', but this causes a program crash when calling the gsapi_revision function (tested under VS2013 and 32-bit GPL Ghostscript v9.15).

.

        ///Erase EOF key

.

            OUT_RASTER_PRECIS = 6,

.

        OUT_RASTER_PRECIS = 6

.

Note that the managed Font class does not support raster fonts.

.

   public bool fErase;

.

    Public fErase As Integer

45: PANOSE
.

    public byte bContrast;

.

        Public bContrast As Byte

.

   struct RASCONNSTATUS

.

    public RASCONNSTATE  rasconnstate;

.

Structure RASCONNSTATUS

.

http://www.codeplex.com/DotRas

.
Documentation
[RASCONNSTATUS] on MSDN
.

internal class RASDIALEXTENSIONS

.

   public readonly int dwSize = Marshal.SizeOf(typeof(RASDIALEXTENSIONS));

.

   public RASEAPINFO RasEapInfo = new RASEAPINFO();

.

Structure RASDIALEXTENSIONS

.

http://www.codeplex.com/DotRas

.
Documentation
[RASDIALEXTENSIONS] on MSDN
.
Summary
.

struct RASDIALPARAMS {

.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxEntryName + 1)]

.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxPhoneNumber + 1)]

.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxCallbackNumber + 1)]

.

Structure RASDIALPARAMS

.

Most RAS specific constants are documented at :

.

http://www.pinvoke.net/default.aspx/Constants.ras

.

http://www.codeplex.com/DotRas

.
Documentation
[RASDIALPARAMS] on MSDN
.

struct RASENTRYNAME

.

Structure RASENTRYNAME

.

http://www.codeplex.com/DotRas

.
Documentation
.

struct RASENTRYNAME

.

Structure RASENTRYNAME

.
Documentation
.

struct RASPPPIP {

.

Structure RASPPPIP

.

http://www.codeplex.com/DotRas

.
Documentation
[RASPPPIP] on MSDN
.
Summary
stores the statistics for a single-link RAS connection, or for one of the links in a multilink RAS connection.
.

struct RAS_STATS

.

Private Structure RAS_STATS

.

See docs for RasGetConnectionStatistics

.

http://www.codeplex.com/DotRas

.
Documentation
[RAS_STATS] on MSDN
.
Summary
.

    struct RAS_1

.

Structure RAS_USER_1

.
Documentation
[RAS_USER_1] on MSDN
.
    • When this member is NULL, an application must paint its own background whenever it is requested to paint in its client area. To determine whether the background must be painted, an application can either process the WM_ERASEBKGND message or test the fErase member of the PAINTSTRUCT structure filled by the BeginPaint function.
.
    • When this member is NULL, an application must paint its own background whenever it is requested to paint in its client area. To determine whether the background must be painted, an application can either process the WM_ERASEBKGND message or test the fErase member of the PAINTSTRUCT structure filled by the BeginPaint function.
.
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,comdlg32,Constants,Delegates,Enums,Interfaces

wintrust

.
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

secur32

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

twain_32

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

gdiplus

.
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

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


 
Access PInvoke.net directly from VS: