Lines Matching refs:hand
1235 tuntap->hand = NULL;
2536 tt->hand,
2598 tt->hand,
3796 tap_allow_nonadmin_access_handle (const char *device_path, HANDLE hand)
3804 status = SetKernelObjectSecurity (hand, DACL_SECURITY_INFORMATION, &sa.sd);
3822 HANDLE hand;
3842 hand = CreateFile (
3852 if (hand == INVALID_HANDLE_VALUE)
3855 tap_allow_nonadmin_access_handle (device_path, hand);
3856 CloseHandle (hand);
3881 hand = CreateFile (
3891 if (hand == INVALID_HANDLE_VALUE)
3895 tap_allow_nonadmin_access_handle (device_path, hand);
3896 CloseHandle (hand);
4573 tt->hand = CreateFile (
4583 if (tt->hand == INVALID_HANDLE_VALUE)
4609 tt->hand = CreateFile (
4619 if (tt->hand == INVALID_HANDLE_VALUE)
4640 if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_VERSION,
4677 if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_MTU,
4740 status = DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_TUN,
4756 if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT,
4798 if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_DHCP_MASQ,
4818 if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT,
4833 if (!DeviceIoControl (tt->hand, TAP_WIN_IOCTL_SET_MEDIA_STATUS,
4941 if (tt && tt->hand != NULL)
4945 if (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_INFO,
4959 if (tt && tt->hand != NULL)
4963 while (DeviceIoControl (tt->hand, TAP_WIN_IOCTL_GET_LOG_LINE,
5019 if (tt->hand != NULL)
5022 if (!CancelIo (tt->hand))
5032 if (tt->hand != NULL)
5035 if (!CloseHandle (tt->hand))