Kernel32SetCommBreak Method
Suspends character transmission for a specified communications device and
places the transmission line in a break state until the ClearCommBreak function is called.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static bool SetCommBreak(
IntPtr hFile
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function SetCommBreak (
hFile As IntPtr
) As Boolean
Dim hFile As IntPtr
Dim returnValue As Boolean
returnValue = Kernel32.SetCommBreak(hFile)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static bool SetCommBreak(
[InAttribute] IntPtr hFile
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member SetCommBreak :
hFile : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hFile IntPtr
-
A handle to the communications device.
The CreateFile(String, FileAccessRights, FileShare, IntPtr, FileMode, CreateFileFlags, IntPtr) function returns this handle.
Boolean
If the function succeeds, the return value is
.
If the Function fails, the Return value Is
.