lwrite

lwrite
VB聲明
Declare Function lwrite Lib "kernel32" Alias "_lwrite" (ByVal hFile As Long, ByVal lpBuffer As String, ByVal wBytes As Long) As Long
VC++ 聲明
UINT _lwrite(hFile Long,lpBuffer String,wBytes Long);
說明
將數據從記憶體緩衝區寫入一個檔案
返回值
Long,寫入的位元組數。HFILE_ERROR意味著函式執行出錯。如這個數字小於wBytes,則表明早已抵達了檔案的末尾。會設定GetLastError
參數表
參數 類型及說明
hFile Long,檔案句柄
lpBuffer String,指定一個記憶體塊的指針,把這個記憶體塊的數據寫入檔案
wBytes Long,要寫入的位元組數

相關詞條

熱門詞條

聯絡我們