Click here to Skip to main content
       

C#

 
AnswerRe: What kind of video recognition software exists? PinmemberMatt U.6-May-13 7:18 
AnswerRe: What kind of video recognition software exists? PinmemberAmarnath S6-May-13 7:42 
AnswerRe: What kind of video recognition software exists? PinmvpEddy Vluggen6-May-13 7:48 
GeneralRe: What kind of video recognition software exists? PinmemberWigwam23236-May-13 8:49 
GeneralRe: What kind of video recognition software exists? PinprotectorPete O'Hanlon6-May-13 9:04 
GeneralRe: What kind of video recognition software exists? PinmvpDave Kreskowiak6-May-13 12:02 
QuestionRemplir une datagridview à l'aide d'une autre Pinmembergeralson6-May-13 4:45 
AnswerRe: Remplir une datagridview à l'aide d'une autre PinmvpEddy Vluggen6-May-13 4:58 
GeneralFill a datagridview using another Pinmembergeralson6-May-13 5:09 
GeneralRe: Fill a datagridview using another PinmvpDave Kreskowiak6-May-13 7:12 
QuestionFetch Data from another website Pinmembersandeep Nishad5-May-13 20:40 
AnswerRe: Fetch Data from another website PinmvpOriginalGriff5-May-13 22:07 
AnswerRe: Fetch Data from another website PinmemberClifford Nelson6-May-13 5:38 
QuestionAuto Dial-Up Method not working on 64-bit machine PinprofessionalMember 100161425-May-13 14: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 16:41 
GeneralRe: Auto Dial-Up Method not working on 64-bit machine PinprofessionalMember 100161428-May-13 20:10 
Questionwebrequest/response live.mail.com PinmemberCrispybc5-May-13 12:15 
AnswerRe: webrequest/response live.mail.com PinprofessionalBernhard Hiller5-May-13 22:04 
GeneralRe: webrequest/response live.mail.com PinmemberCrispybc6-May-13 2:41 
Questionproblem Webservice Pinmemberazadehrasadi5-May-13 0:12 
AnswerRe: problem Webservice PinmvpOriginalGriff5-May-13 6:08 
GeneralRe: problem Webservice Pinmemberazadehrasadi12-May-13 2:17 
GeneralRe: problem Webservice PinprotectorOriginalGriff12-May-13 2:24 
GeneralRe: problem Webservice Pinmemberazadehrasadi12-May-13 18:31 
QuestionWEB SERVICES Pinmembersonu Ranjan4-May-13 22:16 
AnswerRe: WEB SERVICES PinmvpAbhinav S5-May-13 20:37 
QuestionUSB device being in use PinmemberBlubbo3-May-13 5:10 
AnswerRe: USB device being in use PinmemberGerry Schmitz3-May-13 11:54 
GeneralRe: USB device being in use PinmemberBlubbo8-May-13 8:23 
GeneralRe: USB device being in use PinmemberGerry Schmitz8-May-13 11:12 
QuestionIs streamreader slow compared to other text import functions? Pinmemberturbosupramk33-May-13 3:42 
AnswerRe: Is streamreader slow compared to other text import functions? PinmemberGuyThiebaut3-May-13 4:21 
GeneralRe: Is streamreader slow compared to other text import functions? Pinmemberturbosupramk33-May-13 4:51 
AnswerRe: Is streamreader slow compared to other text import functions? PinprotectorPete O'Hanlon3-May-13 4:24 
GeneralRe: Is streamreader slow compared to other text import functions? Pinmemberturbosupramk33-May-13 5:13 
AnswerRe: Is streamreader slow compared to other text import functions? Pinmemberturbosupramk33-May-13 5:14 
GeneralRe: Is streamreader slow compared to other text import functions? PinmentorDaveyM693-May-13 13:47 
QuestionEvent/Delegate for progress bar issue PinmemberMichCl3-May-13 3:13 
AnswerRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen3-May-13 7:21 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl3-May-13 7:31 
AnswerRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen3-May-13 8:29 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl3-May-13 8:39 
GeneralRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen3-May-13 8:53 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl3-May-13 9:22 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl3-May-13 9:25 
GeneralRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen3-May-13 9:40 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl3-May-13 9:48 
GeneralRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen4-May-13 0:41 
GeneralRe: Event/Delegate for progress bar issue PinmemberMichCl6-May-13 3:40 
GeneralRe: Event/Delegate for progress bar issue PinmvpEddy Vluggen6-May-13 7:52 

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
Web04 | 2.8.140827.1 | Last Updated 29 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid