Click here to Skip to main content
15,891,431 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: creating an Install Pin
Kyle Tillman4-Mar-04 17:04
Kyle Tillman4-Mar-04 17:04 
GeneralRe: creating an Install Pin
rodneyk15-Mar-04 5:43
rodneyk15-Mar-04 5:43 
GeneralRe: creating an Install Pin
Kyle Tillman5-Mar-04 8:56
Kyle Tillman5-Mar-04 8:56 
GeneralRe: creating an Install Pin
rodneyk15-Mar-04 5:44
rodneyk15-Mar-04 5:44 
GeneralButton with Image Pin
camasmartin3-Mar-04 18:51
camasmartin3-Mar-04 18:51 
GeneralRe: Button with Image Pin
Daniel Strigl7-Mar-04 5:38
Daniel Strigl7-Mar-04 5:38 
GeneralRe: Button with Image Pin
Member 10840949-May-04 1:24
Member 10840949-May-04 1:24 
GeneralAdd/Remove Network connections (Help!!!!) Pin
CyMad3-Mar-04 6:22
CyMad3-Mar-04 6:22 
Anyone know how to add/remove network connections programatically from WinCE (C# & Compact framework). I think that I need to use the WNet functions but not sure how?Confused | :confused:

I have the following code:-

using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential)]
public struct NETRESOURCEA
{
public int dwScope;
public int dwType;
public int dwDisplayType;
public int dwUsage;
public string lpLocalName;
public string lpRemoteName;
public string lpComment;
public string lpProvider;

}

class CMyTest
{
[DllImport("core.dll")] // Not sure if this is correct
public static extern int WNetAddConnection3(
NETRESOURCEA[] lpNetResource,
string lpPassword,
string UserName,
int dwFlags);

public static void Main(String[] args)
{
NETRESOURCEA [] n = new NETRESOURCEA[1];
n[0] = new NETRESOURCEA();
n[0].dwType = 1;
int dwFlags = 1;
n[0].lpLocalName = @"LocalName";
n[0].lpRemoteName = @"\\Server01\Share01";
n[0].lpProvider = null;
Console.WriteLine(n[0]);
int res = 0;
try
{
res = WNetAddConnection3( n, null, null, dwFlags );
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Console.WriteLine("WNetAddConnection3 returned : " + res);
Console.WriteLine(n[0]);
}
}


Any Help would be appreciated

CyMadigan
CF Developer
GeneralRe: Add/Remove Network connections (Help!!!!) Pin
aashu3-Mar-04 18:45
aashu3-Mar-04 18:45 
GeneralRe: Add/Remove Network connections (Help!!!!) Pin
CyMad4-Mar-04 6:13
CyMad4-Mar-04 6:13 
GeneralRe: Add/Remove Network connections (Help!!!!) Pin
Mike Dimmick4-Mar-04 6:54
Mike Dimmick4-Mar-04 6:54 
Questionhow to get computer name on ethernet Pin
aashu3-Mar-04 3:34
aashu3-Mar-04 3:34 
AnswerRe: how to get computer name on ethernet Pin
CyMad4-Mar-04 6:12
CyMad4-Mar-04 6:12 
GeneralInputPanel Blues Pin
Dan Broomall2-Mar-04 10:44
Dan Broomall2-Mar-04 10:44 
General_com_dispatch_method undefined while using #import "msxml3.dll" Pin
nigs_krec1-Mar-04 18:43
nigs_krec1-Mar-04 18:43 
GeneralRe: _com_dispatch_method undefined while using #import "msxml3.dll" Pin
João Paulo Figueira2-Mar-04 23:46
professionalJoão Paulo Figueira2-Mar-04 23:46 
GeneralSuddenly Symbian Pin
Sarvesvara (BVKS) Dasa1-Mar-04 17:59
Sarvesvara (BVKS) Dasa1-Mar-04 17:59 
GeneralRe: Suddenly Symbian Pin
João Paulo Figueira1-Mar-04 22:23
professionalJoão Paulo Figueira1-Mar-04 22:23 
GeneralRe: Suddenly Symbian Pin
Sarvesvara (BVKS) Dasa1-Mar-04 22:26
Sarvesvara (BVKS) Dasa1-Mar-04 22:26 
GeneralRe: Suddenly Symbian Pin
annum2-Mar-04 7:50
annum2-Mar-04 7:50 
GeneralRe: Suddenly Symbian Pin
João Paulo Figueira2-Mar-04 11:05
professionalJoão Paulo Figueira2-Mar-04 11:05 
GeneralRe: Suddenly Symbian Pin
Sarvesvara (BVKS) Dasa2-Mar-04 17:40
Sarvesvara (BVKS) Dasa2-Mar-04 17:40 
GeneralRe: Suddenly Symbian Pin
annum3-Mar-04 9:31
annum3-Mar-04 9:31 
GeneralRe: Suddenly Symbian Pin
Sarvesvara (BVKS) Dasa3-Mar-04 17:47
Sarvesvara (BVKS) Dasa3-Mar-04 17:47 
GeneralInstallation program Pin
Cedric Moonen27-Feb-04 1:23
Cedric Moonen27-Feb-04 1:23 

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

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