Click here to Skip to main content
   

C#

 
QuestionRemplir une datagridview à l'aide d'une autre Pinmembergeralson6-May-13 5:45 
AnswerRe: Remplir une datagridview à l'aide d'une autre PinmvpEddy Vluggen6-May-13 5:58 
GeneralFill a datagridview using another Pinmembergeralson6-May-13 6:09 
GeneralRe: Fill a datagridview using another PinmvpDave Kreskowiak6-May-13 8:12 
QuestionFetch Data from another website Pinmembersandeep Nishad5-May-13 21:40 
AnswerRe: Fetch Data from another website PinmvpOriginalGriff5-May-13 23:07 
AnswerRe: Fetch Data from another website PinmemberClifford Nelson6-May-13 6:38 
QuestionAuto Dial-Up Method not working on 64-bit machine PinprofessionalMember 100161425-May-13 15:40 
Here is the method auto dial up without the login dialoge
public uint Connect(string EntryName, string UserName, string Password, out IntPtr RasConn)
{
    uint retVal;
    uint r=0;
    RasConn=IntPtr.Zero;
    byte[] bRASDIALPARAMS =new byte[1464];
    fixed (byte* pAddr = bRASDIALPARAMS)
    {
        byte* pCurrent = pAddr;
        Marshal.WriteInt32((IntPtr)pCurrent, bRASDIALPARAMS.Length);
        pCurrent += 4;
        foreach (byte b in Encoding.Unicode.GetBytes(EntryName))
        {
            Marshal.WriteByte((IntPtr)pCurrent, b);
            pCurrent++;
        }
        pCurrent = pAddr + 0x192;//0x192 - offset for RASDIALPARAMS.UserName
        foreach (byte b in Encoding.Unicode.GetBytes(UserName))
        {
            Marshal.WriteByte((IntPtr)pCurrent, b);
            pCurrent++;
        }
        pCurrent = pAddr + 0x394;//0x394 - offset for RASDIALPARAMS.Password
        foreach (byte b in Encoding.Unicode.GetBytes(Password))
        {
            Marshal.WriteByte((IntPtr)pCurrent, b);
            pCurrent++;
        }
        retVal = RAS.RasDial(IntPtr.Zero, IntPtr.Zero, (IntPtr)pAddr, 0, IntPtr.Zero, ref RasConn);
    }
 
    return retVal;
}
 
[DllImport("rasapi32.dll", CharSet = CharSet.Auto)]
public extern static uint RasDial(
    IntPtr dialExtensions,
    IntPtr phoneBookPath,
    IntPtr rasDialParam,
    uint NotifierType,
    IntPtr notifier,
    ref IntPtr pRasConn
    );
 

 
It works fine on my xp machine,but move it to win7 the Connect() method returns erro 632,what's wrong in win7,does anyone have a clue? Cry | :((
AnswerRe: Auto Dial-Up Method not working on 64-bit machine PinmemberGarth J Lancaster5-May-13 17:41 
GeneralRe: Auto Dial-Up Method not working on 64-bit machine PinprofessionalMember 100161428-May-13 21:10 
Questionwebrequest/response live.mail.com PinmemberCrispybc5-May-13 13:15 
AnswerRe: webrequest/response live.mail.com PinprofessionalBernhard Hiller5-May-13 23:04 
GeneralRe: webrequest/response live.mail.com PinmemberCrispybc6-May-13 3:41 
Questionproblem Webservice Pinmemberazadehrasadi5-May-13 1:12 
AnswerRe: problem Webservice PinmvpOriginalGriff5-May-13 7:08 
GeneralRe: problem Webservice Pinmemberazadehrasadi12-May-13 3:17 
GeneralRe: problem Webservice PinprotectorOriginalGriff12-May-13 3:24 
GeneralRe: problem Webservice Pinmemberazadehrasadi12-May-13 19:31 
QuestionWEB SERVICES Pinmembersonu Ranjan4-May-13 23:16 
AnswerRe: WEB SERVICES PinmvpAbhinav S5-May-13 21:37 
QuestionUSB device being in use PinmemberBlubbo3-May-13 6:10 
AnswerRe: USB device being in use PinmemberGerry Schmitz3-May-13 12:54 
GeneralRe: USB device being in use PinmemberBlubbo8-May-13 9:23 
GeneralRe: USB device being in use PinmemberGerry Schmitz8-May-13 12:12 
QuestionIs streamreader slow compared to other text import functions? Pinmemberturbosupramk33-May-13 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150128.1 | Last Updated 28 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid