Windows error 0x0000030A, 778

Detailed Error Information

BADSTARTPOSITION[1]

MessageThe iterator's start position is invalid.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x8007030A.

HRESULT analysis[2]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][1]
DescriptionThe default facility code.[2][1]
Error Code778 (0x030a)

Questions

1vote
1answer

Placing a TAP-Windows device in TAP mode

I am using TAP-Windows (from the OpenVPN project) to create an interface as described here and here. I am basing my code of the example provided in the first article: const string UsermodeDeviceSpace = "\\\\.\\Global\\"; string devGuid = GetDeviceGuid(); IntPtr ptr= CreateFile(UsermodeDeviceSpace+devGuid+".tap", FileAccess.ReadWrite, FileShare.ReadWrite, 0, FileMode.Open, FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED, IntPtr.Zero); [...] read more
c#
windows
network-programming
tun
0votes
1answer

tap windows set TUN MTU

I was trying to set up TUN-TAP device in Windows using this sample code (all driver already installed correctly): http://www.varsanofiev.com/inside/TunTest.cs IntPtr ptr = CreateFile(UsermodeDeviceSpace + this.devGuid + ".tap", FileAccess.ReadWrite, FileShare.ReadWrite, 0, FileMode.Open, FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED, IntPtr.Zero); int len; IntPtr pstatus = Marshal.AllocHGlobal(4); Marshal.WriteInt32(pstatus, 1); DeviceIoControl(ptr, TAP_CONTROL_CODE(6, METHOD_BUFFERED) /* TAP_IOCTL_SET_MEDIA_STATUS */, [...] read more
c#
windows
adapter
tap
mtu

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0