Directory
Desktop Functions: Smart Device Functions:
Misc. Pages
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
.
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.
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 4:00:13 AM - Damon Carr-72.43.165.29
Click to read this page 6/25/2010 2:17:25 PM - -90.152.60.34
.
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).
.
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
.
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
The RASDIALPARAMS structure contains parameters that are used by
RasDial to establish a remote access connection.
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.
5/10/2010 8:00:51 AM - -93.180.241.4
.
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
Retrieves accumulated connection statistics for a connection
3/11/2009 2:08:52 PM - -202.114.97.142
.
http://www.codeplex.com/DotRas
.
Documentation
[RAS_STATS] on MSDN
.
Summary
The RAS_USER_1 structure contains information for a particular Remote Access Service user. Used in conjunction with
MprAdminuserXXXInfo functions to enable/disable Dialin (among other things).
.
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.
Contains information that can be used to paint the client area of a window.
3/16/2007 8:18:39 AM - -212.72.208.162
The BeginPaint API
8/24/2011 3:40:03 AM - -66.6.114.140
.
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.
Contains information that can be used to paint the client area of a window.
3/16/2007 8:18:39 AM - -212.72.208.162
The BeginPaint API
8/24/2011 3:40:03 AM - -66.6.114.140
.
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.