Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
How to convert a bitmap file to monochrome format (1 bpp)
Peer-to-peer LAN messenger built with Mailslot API functions
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
Using InternetSetFilePointer when resuming interrupted download from the Internet
Using mailslots to send messages on the network
Using named pipes for interprocess communication
Vertical Label control
WriteFile
..msdn    Add comment     W32 Constants      Translate this page
The WriteFile function writes data to a file and is designed for both synchronous and asynchronous operation.
Code examples:
Storing content of the Clipboard to a bitmap file
Vertical Label control
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
How to convert a bitmap file to monochrome format (1 bpp)
Peer-to-peer LAN messenger built with Mailslot API functions
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Using InternetSetFilePointer when resuming interrupted download from the Internet
Using named pipes for interprocess communication
Using mailslots to send messages on the network
Declaration:
BOOL WriteFile(
  HANDLE hFile,                    // handle to file
  LPCVOID lpBuffer,                // data buffer
  DWORD nNumberOfBytesToWrite,     // number of bytes to write
  LPDWORD lpNumberOfBytesWritten,  // number of bytes written
  LPOVERLAPPED lpOverlapped        // overlapped buffer
);
FoxPro declaration:
DECLARE INTEGER WriteFile IN kernel32;
    INTEGER   hFile,;
    INTEGER   lpBuffer,;
    INTEGER   nBt2Write,;
    INTEGER @ lpBtWritten,;
    INTEGER   lpOverlapped
Parameters:
hFile
[in] Handle to the file to be written to. The file handle must have been created with GENERIC_WRITE access to the file.

lpBuffer
[in] Pointer to the buffer containing the data to be written to the file.

nNumberOfBytesToWrite
[in] Specifies the number of bytes to write to the file.

lpNumberOfBytesWritten
[out] Pointer to the variable that receives the number of bytes written.

lpOverlapped
[in] Pointer to an OVERLAPPED structure. This structure is required if hFile was opened with FILE_FLAG_OVERLAPPED.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
The function also can be used to put a message in a mailslot.
Word Index links for the WriteFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-05 21:03:22
Modified: 2005-12-02 18:14:10
Visited in last 7 days: 63
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.16.43)
16 sec.Function: 'GetAncestor'
32 sec.Function: 'GetComputerNameEx'
47 sec.Function: 'GetIfEntry'
1.03 min.Function: 'GetLogicalDrives'
1.28 min.Function: 'UuidCreateSequential'
1.5 min.Function: 'Process32Next'
1.73 min.Function: 'CeRegDeleteKey'
1.98 min.Function: 'GetProfileString'
2.22 min.Function: 'GetSecurityDescriptorDacl'
2.45 min.Function: 'WinHttpConnect'
Google
Advertise here!