Desktop Functions: Smart Device Functions:
|
Search Results for "ras" in [All]aygshelloleacchttpapiws2_32scarddlgdhcpsapiavifil32hhctrlversionrasapi3210: RasDial
[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. This struct described in RasDialDlg. How this page delete ? 12: RasDialDlg
[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
[DllImport("rasapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern int RasEnumConnections(
[In, Out] RASCONN[] rasconn,
const int RAS_MaxEntryName = 256;
const int RAS_MaxDeviceType = 16;
const int RAS_MaxDeviceName = 128;
public struct RASCONN
public IntPtr hrasconn;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxEntryName)]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxDeviceType)]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxDeviceName)] I don't known why SizeConst = RAS_MaxEntryName, not SizeConst = RAS_MaxEntryName + 1 as in ras.h, but this work.
RAW.RASCONN[] connections = new RAW.RASCONN[1];
connections[0].dwSize = Marshal.SizeOf(typeof(RAW.RASCONN));
int cb = Marshal.SizeOf(typeof(RAW.RASCONN));
int nRet = RAW.RasEnumConnections(connections, ref cb, out connectionsCount);
connections = new RAW.RASCONN[connectionsCount];
connections[i].dwSize = Marshal.SizeOf(typeof(RAW.RASCONN));
nRet = RAW.RasEnumConnections(connections, ref cb, out connectionsCount);
if (RAW.RasEnumConnections(null, ref cb, out connectionCount) == RAW.ERROR_BUFFER_TOO_SMALL)
RAW.RASCONN[] buffer = new RAW.RASCONN[conns];
buffer[0].dwSize = Marshal.SizeOf(typeof(RAW.RASCONN));
if (RasApi.RasEnumConnections(buffer, ref cb, out conns) == RAW.ERROR_SUCCESS) http://www.codeplex.com/DotRas 14: RasEnumDevices
[DllImport("rasapi32.dll", SetLastError=true,CharSet=CharSet.Auto)]
static extern int RasEnumDevices(
IntPtr lpRasDevInfo,
public class RASDEVINFO
public const int RAS_MAXDEVICETYPE = 16;
public const int RAS_MAXDEVICENAME = 128;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MAXDEVICETYPE + 1)]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MAXDEVICENAME + 1)]
private RASDEVINFO[] getDevices()
RASDEVINFO[] rdiRets = new RASDEVINFO[1];
intRet = RasEnumDevices(IntPtr.Zero,ref lpcb,ref lpcDevices);
rdiRets[0] = new RASDEVINFO();
rdiRets[0].dwSize = Marshal.SizeOf(typeof(RASDEVINFO));
intRet = RasEnumDevices(devinfo,ref lpcb,ref lpcDevices);
rdiRets = new RASDEVINFO[lpcDevices];
rdiRets[i] = new RASDEVINFO(); Private Declare Auto Function RasEnumDevices Lib "rasapi32.dll" (ByVal lpRasDevInfo As IntPtr, ByRef lpcb As Integer, ByRef lpcDevices As Integer) As Integer
Public Class CRasDevInfo
Public Const RAS_MAXDEVICETYPE As Integer = 16
Public Const RAS_MAXDEVICENAME As Integer = 128
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=RAS_MAXDEVICETYPE + 1)> _
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=RAS_MAXDEVICENAME + 1)> _ Public Shared Function GetDevices() As CRasDevInfo()
Dim rdiRet As CRasDevInfo()
RasEnumDevices(IntPtr.Zero, lpcb, lpcDevices)
rdiRet(0) = New CRasDevInfo()
intRet = RasEnumDevices(devinfo, lpcb, lpcDevices)
rdiRet(i) = New CRasDevInfo() http://www.codeplex.com/DotRas 15: RasEnumEntries
[DllImport("rasapi32.dll", SetLastError=true,CharSet=CharSet.Auto)]
static extern uint RasEnumEntries(
[In,Out] RASENTRYNAME[] lprasentryname,
<DllImport("rasapi32.dll", EntryPoint:="RasEnumEntries", CharSet:=CharSet.Auto)> _
Private Shared Function RasEnumEntries( _
ByVal lpRasEntryName As IntPtr, _
const int RAS_MaxEntryName = 256;
struct RASENTRYNAME {
[MarshalAs(UnmanagedType.ByValTStr,SizeConst=RAS_MaxEntryName + 1)]
class RasEnumEntriesSample
const int RAS_MaxEntryName = 256;
struct RASENTRYNAME
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxEntryName + 1)]
[DllImport("rasapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
static extern uint RasEnumEntries(IntPtr reserved, IntPtr lpszPhonebook,
[In, Out] RASENTRYNAME[] lprasentryname, ref int lpcb, ref int lpcEntries);
int cb = Marshal.SizeOf(typeof(RASENTRYNAME)), entries = 0;
RASENTRYNAME[] entryNames = new RASENTRYNAME[1];
entryNames[0].dwSize = Marshal.SizeOf(typeof(RASENTRYNAME));
uint nRet = RasEnumEntries(IntPtr.Zero, IntPtr.Zero, entryNames, ref cb, ref entries);
entryNames = new RASENTRYNAME[entries];
entryNames[i].dwSize = Marshal.SizeOf(typeof(RASENTRYNAME));
nRet = RasEnumEntries(IntPtr.Zero, IntPtr.Zero, entryNames, ref cb, ref entries); http://www.codeplex.com/DotRas
[DllImport("rasapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
static extern uint RasGetConnectionStatistics(IntPtr hRasConn, ref RAS_STATS lpStatistics);
<DllImport("rasapi32.dll", CharSet:=CharSet:Auto)> _
Public Shared Function RasGetConnectionStatistics( _
ByVal hRasConn As IntPtr, _
ByRef lpStatistics As RAS_STATS) As UInt32
RAS_STATS statistics = new RAS_STATS();
uint retVal = RasGetConnectionStatistics(rasConnectionHandle, ref statistics); http://www.codeplex.com/DotRas
[DllImport("rasapi32.dll")]
public static extern int RasGetConnectStatus(int hrasconn, ref RASCONNSTATUS lprasconnstatus);
Declare Function RasGetConnectStatus Lib "rasapi32.dll" (TODO) As TODO http://www.codeplex.com/DotRas
[DllImport("rasapi32.dll", SetLastError=true)]
static extern uint RasGetEntryDialParams(
[In, Out] ref RASDIALPARAMS lprasdialparams,
<DllImport("rasapi32.dll", CharSet:=CharSet.Auto)> _
Public Function RasGetEntryDialParams( _
<[In](), Out()> ByRef lprasdialparams As RASDIALPARAMS, _
Declare Function RasGetEntryDialParams Lib "rasapi32.dll" (TODO) As TODO
[DllImport("rasapi32.dll", SetLastError = true)]
public static extern uint RasGetEntryDialParamsW(
IntPtr lprasdialparams,
public RASDIALPARAMS GetDialParams() {
var lpRasDialParams = new RASDIALPARAMS
IntPtr pnt = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(RASDIALPARAMS)));
Marshal.StructureToPtr(lpRasDialParams, pnt, true);
var nRet = RasGetEntryDialParamsW(null, pnt, out lprPassword);
lpRasDialParams = (RASDIALPARAMS)Marshal.PtrToStructure(pnt, typeof(RASDIALPARAMS));
return lpRasDialParams; http://www.codeplex.com/DotRas
[DllImport("rasapi32.dll", CharSet = CharSet.Auto)]
private static extern UInt32 RasGetEntryProperties( <DllImport("rasapi32.dll", CharSet:=CharSet.Auto)> _
Private Shared Function RasGetEntryProperties(ByVal lpszPhoneBook As String, _ http://www.codeplex.com/DotRas From https://secure.codeproject.com/Purgatory/rasdemo.asp
[DllImport("rasapi32.dll",CharSet=CharSet.Auto)]
public extern static uint RasGetErrorString(
Declare Function RasGetErrorString Lib "rasapi32.dll" (TODO) As TODO http://www.codeplex.com/DotRas
internal static string Code2RasErrorMessage(uint errorCode)
if(RasAPI.RasGetErrorString(errorCode,sb,sb.Capacity)>0)
throw new Exception("Unknow RAS exception.");
[DllImport("rasapi32.dll", SetLastError=true)]
static extern uint RasGetProjectionInfo(
IntPtr hrasconn,
RASPROJECTION rasprojection,
[In, Out] ref RASPPPIP lpprojection,
Declare Function RasGetProjectionInfo Lib "rasapi32.dll" (TODO) As TODO http://www.codeplex.com/DotRas 22: RasHangUp
[DllImport("rasapi32.dll", SetLastError=true)]
static extern uint RasHangUp(IntPtr hRasConn);
<DllImport("rasapi32.dll", CharSet:=CharSet:=Auto)> _
Public Shared Function RasHangUp(ByVal hRasConn As IntPtr) As UInt32 http://www.codeplex.com/DotRas
/// If the entry name matches an existing entry, RasSetEntryProperties modifies the properties of that entry.
/// If the entry name does not match an existing entry, RasSetEntryProperties creates a new phone-book entry.</param>
/// <param name="lpRasEntry">Pointer to the RASENTRY structure that specifies the connection data to associate with the phone-book entry.</param>
/// <param name="dwEntryInfoSize">Specifies the size, in bytes, of the buffer identified by the lpRasEntry parameter.</param>
[DllImport("rasapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
private static extern Uint RasSetEntryProperties(
ref RASENTRY lpRasEntry,
Declare Function RasSetEntryProperties Lib "rasapi32.dll" (TODO) As TODO
public struct RASENTRY
(int) RasFieldSizeConstants.RAS_MaxAreaCode+1)]
(int) RasFieldSizeConstants.RAS_MaxPhoneNumber+1)]
public RASIPADDR ipaddr;
public RASIPADDR ipaddrDns;
public RASIPADDR ipaddrDnsAlt;
public RASIPADDR ipaddrWins;
public RASIPADDR ipaddrWinsAlt;
(int) RasFieldSizeConstants.RAS_MaxDeviceType + 1)]
(int) RasFieldSizeConstants.RAS_MaxDeviceName + 1)]
(int) RasFieldSizeConstants.RAS_MaxPadType + 1)]
(int) RasFieldSizeConstants.RAS_MaxX25Address + 1)]
(int) RasFieldSizeConstants.RAS_MaxFacilities + 1)]
(int) RasFieldSizeConstants.RAS_MaxUserData + 1)]
public int dwDialExtraSampleSeconds;
public int dwHangUpExtraSampleSeconds;
(int) RasFieldSizeConstants.RAS_MaxDnsSuffix)]
(int) RasFieldSizeConstants.RAS_MaxEntryName)]
RASIPV6ADDR ipv6addrDns;
RASIPV6ADDR ipv6addrDnsAlt;
RASIPV6ADDR ipv6addr;
public struct RASIPADDR {
public struct RASIPV6ADDR
public enum RasEntryOptions
RASEO_UseCountrAndAreaCodes = 0x00000001,
RASEO_SpecificIpAddr = 0x00000002,
RASEO_SpecificNameServers = 0x00000004,
RASEO_IpHeaderCompression = 0x00000008,
RASEO_RemoteDefaultGateway = 0x00000010,
RASEO_DisableLcpExtensions = 0x00000020,
RASEO_TerminalBeforeDial = 0x00000040,
RASEO_TerminalAfterDial = 0x00000080,
RASEO_ModemLights = 0x00000100,
RASEO_SwCompression = 0x00000200,
RASEO_RequireEncrptedPw = 0x00000400,
RASEO_RequireMsEncrptedPw = 0x00000800,
RASEO_RequireDataEncrption = 0x00001000,
RASEO_NetworkLogon = 0x00002000,
RASEO_UseLogonCredentials = 0x00004000,
RASEO_PromoteAlternates = 0x00008000,
RASEO_SecureLocalFiles = 0x00010000,
RASEO_RequireEAP = 0x00020000,
RASEO_RequirePAP = 0x00040000,
RASEO_RequireSPAP = 0x00080000,
RASEO_Custom = 0x00100000,
RASEO_PreviewPhoneNumber = 0x00200000,
RASEO_SharedPhoneNumbers = 0x00800000,
RASEO_PreviewUserPw = 0x01000000,
RASEO_PreviewDomain = 0x02000000,
RASEO_ShowDialingProgress = 0x04000000,
RASEO_RequireCHAP = 0x08000000,
RASEO_RequireMsCHAP = 0x10000000,
RASEO_RequireMsCHAP2 = 0x20000000,
RASEO_RequireW95MSCHAP = 0x40000000
public enum RasEntryOptions2
DoNotUseRasCredentials = 0x8,
public enum RasEntryTypes
RASET_Phone = 1,
RASET_Vpn = 2,
RASET_Direct = 3,
RASET_Internet = 4
public enum RasEntryEncryption
public enum RasNetProtocols
RASNP_NetBEUI = 0x00000001,
RASNP_Ipx = 0x00000002,
RASNP_Ip = 0x00000004,
RASNP_Ipv6 = 0x00000008
public enum RasFramingProtocol
RASFP_Ppp = 0x00000001,
RASFP_Slip = 0x00000002,
RASFP_Ras = 0x00000004 http://www.codeplex.com/DotRas Call RasGetEntryProperties beforehand, passing to it a null RASENTRY to get the correct buffer size (dwEntryInfoSize below).
uint i = RasGetEntryProperties(null, "", IntPtr.Zero, ref dwEntryInfoSize, IntPtr.Zero, IntPtr.Zero);
/// <param name="rasEntryStructure">RASENTRY structure containing connection settings.</param>
/// <returns>Enumerated RASERROR</returns>
public static RasError SetEntryProperties(string connectionName, RASENTRY rasEntryStructure)
return (RasError)RasSetEntryProperties(null, connectionName, ref rasEntryStructure, Marshal.SizeOf(rasEntryStructure), IntPtr.Zero, 0);
[DllImport("rasapi32.dll", SetLastError=true)]
static extern int RasValidateEntryName(string lpszPhonebook, string lpszEntry);
Declare Function RasValidateEntryName Lib "rasapi32.dll" (TODO) As TODO retval = RasValidateEntryName(null, "Dud"); http://www.codeplex.com/DotRas opengl3226: B66PV2V8B0W4H6U02GGMTZ5F9WRPWF5VF75YNS6H8QM6YB7UB6I2QKPRG1VRU75V9G6M5CNGRXUQVZV7H1X92NRI27AD1RIKX8PF Ö:Äá7æD>&}öuª+vó£Juã=²Õ+H¬Ä¹mô"QHWBÂ[3Ãhâôß,Ì¡rashuY¼{?úTã&,ÿ8[µü0| ¡<µ¥Xé[Ö>Pm=Aó¶óEfÎÎR .ªKLa¼¬Î4Ìý¾+ -ÀǺ«8þ Vl Lzî5Za1óM,¹Fé5tHcÛËÜKúÇÉxùLýaê¦TêÅÇRKMIVr¶è ðÞúp«÷ô
GL_CURRENT_RASTER_COLOR = 0x0B04,
GL_CURRENT_RASTER_INDEX = 0x0B05,
GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06,
GL_CURRENT_RASTER_POSITION = 0x0B07,
GL_CURRENT_RASTER_POSITION_VALID = 0x0B08,
GL_CURRENT_RASTER_DISTANCE = 0x0B09,
public static extern void glRasterPos2d(double x, double y);
public static extern void glRasterPos2dv(double[] v);
public static extern void glRasterPos2f(float x, float y);
public static extern void glRasterPos2fv(float[] v);
public static extern void glRasterPos2i(int x, int y);
public static extern void glRasterPos2iv(int[] v);
public static extern void glRasterPos2s(short x, short y);
public static extern void glRasterPos2sv(short[] v);
public static extern void glRasterPos3d(double x, double y, double z);
public static extern void glRasterPos3dv(double[] v);
public static extern void glRasterPos3f(float x, float y, float z);
public static extern void glRasterPos3fv(float[] v);
public static extern void glRasterPos3i(int x, int y, int z);
public static extern void glRasterPos3iv(int[] v);
public static extern void glRasterPos3s(short x, short y, short z);
public static extern void glRasterPos3sv(short[] v);
public static extern void glRasterPos4d(double x, double y, double z, double w);
public static extern void glRasterPos4dv(double[] v);
public static extern void glRasterPos4f(float x, float y, float z, float w);
public static extern void glRasterPos4fv(float[] v);
public static extern void glRasterPos4i(int x, int y, int z, int w);
public static extern void glRasterPos4iv(int[] v);
public static extern void glRasterPos4s(short x, short y, short z, short w);
public static extern void glRasterPos4sv(short[] v); odbc32wintrustrapi31: CeRegCreateKeyEx
uint trash;
CeRegCreateKeyEx(key, "NewKey", 0, "", 0, 0, 0, out key2, out trash); irpropsgdiplusDelegatesConstants36: 6VUTXO2E7YSGUNWUJA5KKJ2NY58UPPJ1E1O94CNE3JV6L77W1NO99HIWHQIN5MFEAYLJ8W2F38G0I5Q6RDCOCHGJC7MT6FWVIU6L 2JÉÅKXL±å)ô8èwl±¤7ûØ(°Ï¤Â9Þ[bÀ¨ùIHx¯á¾òrsj³ ôejcº(PºýgûÕ¸ï´P7àoEN ò3:ú_r Tù;z¨¿Æ½zS«òÈMô`ëºRAS´®ï|Õßów%W¡¿Y_ê¹Oaf±4~Î͵7ÂéPr!\hó&ªÀg¤Ç¢,ܹ7g%ùV´iÄP[2*±fnðØYãd úÑýfl³XµåÝ[ H¹\lVZºy¾s& ¦/å×-_¹]¹ Áo £Ày ©é¤XNêRMÎDi5êÄbñÜS©û%wKà;vèê<ûFúîõõò;gìbx©ÄY$ÖÄðfÈØu¨ 37: GUID_DEVCLASS
public static readonly Guid GUID_DEVCLASS_FSFILTER_INFRASTRUCTURE = new Guid("{0xe55fa6f9, 0x128c, 0x4d04, {0xab, 0xab, 0x63, 0x0c, 0x74, 0xb1, 0x45, 0x3a}}"); 38: PROPERTYKEY
public static PropertyKey PKEY_Photo_CameraSerialNumber = new PropertyKey( 0x14B81DA1, 0x0135, 0x4D31, 0x96, 0xD9, 0x6C, 0xBF, 0xC9, 0x67, 0x1A, 0x99, 273);
public static PropertyKey PKEY_Photo_Contrast = new PropertyKey( 0x2A785BA9, 0x8D23, 0x4DED, 0x82, 0xE6, 0x60, 0xA3, 0x50, 0xC8, 0x6A, 0x10, 100);
public static PropertyKey PKEY_Photo_ContrastText = new PropertyKey( 0x59DDE9F2, 0x5253, 0x40EA, 0x9A, 0x8B, 0x47, 0x9E, 0x96, 0xC6, 0x24, 0x9A, 100);
public static PropertyKey PKEY_PhotoAcquire_CameraSequenceNumber = new PropertyKey(0x00f23377, 0x7ac6, 0x4b7a, 0x84, 0x43, 0x34, 0x5e, 0x73, 0x1f, 0xa5, 0x7a, 7); // VT_LPWSTR
public static PropertyKey WPD_STILL_IMAGE_CONTRAST = new PropertyKey(0x58C571EC, 0x1BCB, 0x42A7, 0x8A, 0xC5, 0xBB, 0x29, 0x15, 0x73, 0xA2, 0x60, 19);
public enum PhotoContrasts 39: ras
public const int RAS_MaxAreaCode = 10;
public const int RAS_MaxCallbackNumber = RAS_MaxPhoneNumber;
public const int RAS_MaxDeviceName = 128;
public const int RAS_MaxDeviceType = 16;
public const int RAS_MaxDnsSuffix = 256;
public const int RAS_MaxEntryName = 256;
public const int RAS_MaxFacilities = 200;
public const int RAS_MaxPadType = 32;
public const int RAS_MaxPath = 260;
public const int RAS_MaxPhoneNumber = 128;
public const int RAS_MaxUserData = 200;
public const int RAS_MaxX25Address = 200; 40: SW
const UInt32 SWP_DEFERERASE =0x2000;
Const SWP_DEFERERASE As Integer = &H2000 41: SWP
const UInt32 SWP_DEFERERASE =0x2000; 42: WINERROR
public const int ERROR_ARENA_TRASHED = 7;
/// The operation can not be performed because the server does not have an infrastructure container in the domain of interest.
public const int ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER = 8497; 43: WM
private const UInt32 WM_ERASEBKGND = 0x0014;
private const UInt32 WM_ICONERASEBKGND = 0x0027;
WM_ERASEBKGND = &H14
WM_ICONERASEBKGND = &H27
WM_ERASEBKGND equ 014h
WM_ICONERASEBKGND equ 027h userenvfaultrep
namespace ExcludeCrash 47: ReportFault Enables an application to "manually" report faults to Microsoft. Although you can use this function to report application crashes, Microsoft recommends that applications not handle fatal errors directly but instead rely on the crash reporting capability provided by the operating system. dbghelpicmppowrprofnetapi32mscorsn53: KBUJ3WORUOUDXVYJ4B9K8C8WP78R5DH10V8MXC85ATC364PJ3BIPBDB1YXKX2VSAT6Y5LF4ZNZ9BW1X2OEIF0UF4WF1X2DFM7DUT `�O�_g���|D��Px0��d@b����?�������Y��Y�#Q������;��%���緈���ȢC��!��� {��z��J�2� ;�E���Ira�Ա���PI}e?Hh�?)��̽/���@e�5bיO�q2�5���\?��#P���V�v�z6��m3���4X�`��CFU�9��o(��R�.���W����]Z> |