D
Dennis Sia via DotNetMonster.com
Hi everybody,
Unable to resolve the size of RasConnStatus which causing the
RasGetConnectStatus() of code # 632. Is there anyone who can tell me how to
get the correct size (structure) for the RasConstatus? Thanks in Advanced.
RasGetConnectStatus returning 632 error code.
dennis
Unable to resolve the size of RasConnStatus which causing the
RasGetConnectStatus() of code # 632. Is there anyone who can tell me how to
get the correct size (structure) for the RasConstatus? Thanks in Advanced.
RasGetConnectStatus returning 632 error code.
Code:
[StructLayout(LayoutKind.Sequential,CharSet=CharSet.Auto)]
internal class RASCONNSTATUS
{
public int dwSize = 0;
public RASCONNSTATE rasconnstate;
public int dwError = 0;
[MarshalAs(UnmanagedType.ByValTStr,SizeConst=(int)RasFieldSizeConstants.
RAS_MaxDeviceType+1)]
public string szDeviceType = null;
public string szDeviceName = null;
}
dennis