Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "WriteFile" in [All]

kernel32

.

    private static extern bool WriteFile(IntPtr handle,

.

        bool result = WriteFile(_handle, buffer, (uint)count, ref written, IntPtr.Zero);

.

Warning! GetOverlappedResult writes to the address of the buffer specified in the ORIGINAL OPERATION (ie/ ReadFile or WriteFile). .NET may move the address of the buffer before GetOverlappedResult returns, resulting in a buffer overflow. Use AllocHGlobal and FreeHGlobal or otherwise ensure the buffer is pinned between the two calls.

.

        if (!WriteFile(hDevice, pBuffer, dwBytesToWrite, ref lpNumberOfBytesWritten, ref lpOverlapped) &&

.

WriteFileGather

.
Summary
.

static extern bool WriteFileGather(IntPtr hFile, [Out] FILE_SEGMENT_ELEMENT []

.

static extern unsafe int WriteFileGather(IntPtr hFile,

.

ReadFileScatter, ReadFile, WriteFile

.
Documentation
[WriteFileGather] on MSDN
.
Summary
.

static extern bool WriteFileEx(IntPtr hFile, byte [] lpBuffer,

.

   WriteFileCompletionDelegate lpCompletionRoutine);

.

  public delegate void WriteFileCompletionDelegate(UInt32 dwErrorCode,

.

  static extern bool WriteFileEx(IntPtr hFile, byte [] lpBuffer,

.

    WriteFileCompletionDelegate lpCompletionRoutine);

.

    WriteFileEx(hfile, new byte[] { (byte)'t', (byte)'e', (byte)'s', (byte)'t' }, 4, ref ol, new WriteFileCompletionDelegate(Class1.callback));

.
Documentation
[WriteFileEx] on MSDN
.
Summary
.

static extern bool WriteFileGather(IntPtr hFile, [Out] FILE_SEGMENT_ELEMENT []

.

static extern unsafe int WriteFileGather(IntPtr hFile,

.
Documentation
[WriteFileGather] on MSDN
.

This function is provided for compatibility with 16-bit versions of Windows. New applications should use the WriteFile function.

coredll

.

static extern Boolean WriteFile(IntPtr fFile, Byte[] lpBuffer, UInt32 nNumberOfBytesToWrite,

.

Declare Function WriteFile Lib "coredll.dll" (TODO) As TODO

.

Public Declare Function WriteFile Lib "coredll" ( _

.

    WriteFile hFile, MyString, LenB(MyString), lWritten, 0

.
Documentation
[WriteFile] on MSDN

setupapi

.

Private Declare Function WriteFile Lib “kernel32″ _

.

Ret = WriteFile(DeviceHandle, PrintOut, _

Structures

.
Summary
The COMMTIMEOUTS structure is used in the SetCommTimeouts and GetCommTimeouts functions to set and query the time-out parameters for a communications device. The parameters determine the behavior of ReadFile, WriteFile, ReadFileEx, and WriteFileEx operations on the device.

rapi

. .

public static extern int CeWriteFile(

.

function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeWriteFileRAPI.asp

.
Documentation
[CeWriteFile] on MSDN

 
Access PInvoke.net directly from VS: