Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: retrive single fieald form database Pin
turbochimp5-Nov-04 9:12
turbochimp5-Nov-04 9:12 
Generalinheritance from an interface and base class problem Pin
impeham3-Nov-04 2:13
impeham3-Nov-04 2:13 
GeneralRe: inheritance from an interface and base class problem Pin
Daniel Turini3-Nov-04 2:51
Daniel Turini3-Nov-04 2:51 
GeneralRe: inheritance from an interface and base class problem Pin
impeham3-Nov-04 4:03
impeham3-Nov-04 4:03 
GeneralRe: inheritance from an interface and base class problem Pin
sreejith ss nair3-Nov-04 3:06
sreejith ss nair3-Nov-04 3:06 
QuestionUPNP anyone? Pin
Assaad Chalhoub3-Nov-04 1:42
Assaad Chalhoub3-Nov-04 1:42 
AnswerRe: UPNP anyone? Pin
sreejith ss nair3-Nov-04 3:10
sreejith ss nair3-Nov-04 3:10 
QuestionHow to use "RasGetProjectionInfo" in C#??? Pin
hailei3-Nov-04 0:55
hailei3-Nov-04 0:55 
"RasGetProjectionInfo" function in MSDN.
this is right?
[DllImport("Rasapi32.dll", CharSet = CharSet.Auto)]
public static extern uint RasGetProjectionInfo(IntPtr hrasconn,RASPROJECTION rasprojection,[Out]RASPPPIP[] test,ref int size);
public struct RASPPPIP
{
[MarshalAs(UnmanagedType.U4,SizeConst=4)]
public uint dwSize;
[MarshalAs(UnmanagedType.ByValArray,SizeConst=44)]
public byte[] bt;
}
public enum RASPROJECTION
{
RASP_Amb = 0x10000,
RASP_PppNbf = 0x803F,
RASP_PppIpx = 0x802B,
RASP_PppIp = 0x8021,
RASP_PppCcp = 0x80FD,
RASP_PppLcp = 0xC021,
RASP_Slip = 0x20000
}

when i call this function in C#,it's return 632 or 87...
int ii = 0;
RASPPPIP[] rasPPPIP = new rasPPPIP[1];
rasPPPIP[0].dwSize = (uint)Marshal.SizeOf(typeof(RASPPPIP));
RasFunction.RasGetProjectionInfo(connectedRasHandle,RASPROJECTION.RASP_PppIp,rasPPPIP,ref ii);
"connectedRasHandle" is correct,and i can call RasHangUp(connectedRasHandle)

I'm going crazy ...

Help !
AnswerRe: How to use "RasGetProjectionInfo" in C#??? Pin
Alex Korchemniy3-Nov-04 8:08
Alex Korchemniy3-Nov-04 8:08 
GeneralRe: How to use "RasGetProjectionInfo" in C#??? Pin
hailei3-Nov-04 14:27
hailei3-Nov-04 14:27 
GeneralRe: How to use "RasGetProjectionInfo" in C#??? Pin
Alex Korchemniy3-Nov-04 15:32
Alex Korchemniy3-Nov-04 15:32 
AnswerRe: How to use "RasGetProjectionInfo" in C#??? Pin
Marcco13-Jan-05 5:57
Marcco13-Jan-05 5:57 
AnswerRe: How to use "RasGetProjectionInfo" in C#??? Pin
Marcco14-Jan-05 4:32
Marcco14-Jan-05 4:32 
GeneralSharePoint and Active Directory Pin
robmekong3-Nov-04 0:24
robmekong3-Nov-04 0:24 
GeneralGrid problem Pin
babeng3-Nov-04 0:17
babeng3-Nov-04 0:17 
GeneralRe: Grid problem Pin
Alex Korchemniy3-Nov-04 7:58
Alex Korchemniy3-Nov-04 7:58 
GeneralRe: Grid problem Pin
Huseyin Altindag4-Nov-04 1:28
Huseyin Altindag4-Nov-04 1:28 
Generaldatagrid problem Pin
babeng3-Nov-04 0:14
babeng3-Nov-04 0:14 
GeneralMDI headscratcher Pin
m0nkeybot2-Nov-04 23:35
m0nkeybot2-Nov-04 23:35 
GeneralDate Time Picker Control Pin
manoj_kr742-Nov-04 23:31
manoj_kr742-Nov-04 23:31 
GeneralRe: Date Time Picker Control Pin
Alex Korchemniy3-Nov-04 7:50
Alex Korchemniy3-Nov-04 7:50 
Generalclass problem!! Pin
xiaowenjie2-Nov-04 21:56
xiaowenjie2-Nov-04 21:56 
GeneralRe: class problem!! Pin
Stefan Troschuetz2-Nov-04 22:33
Stefan Troschuetz2-Nov-04 22:33 
GeneralRe: class problem!! Pin
Ketty Avashia3-Nov-04 8:16
Ketty Avashia3-Nov-04 8:16 
GeneralDistibute My Exe Pin
amalatsliit2-Nov-04 19:21
amalatsliit2-Nov-04 19:21 

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.