FNWRITE 宏 (fdi.h)

FNWRITE宏會提供應用程式定義回呼函式的宣告,以將資料寫入 FDI 內容中的檔案。

語法

void FNWRITE(
  [in]  fn
);

參數

[in] fn

用來識別開啟檔案的應用程式定義值。

傳回值

備註

函式接受類似 _write的參數。

範例

FNWRITE(fnFileWrite)
{
    DWORD dwBytesWritten = 0;

    if ( WriteFile((HANDLE)hf, pv, cb, &dwBytesWritten, NULL) == FALSE )
    {
        dwBytesWritten = (DWORD)-1;
    }

    return dwBytesWritten;
}

需求

   
目標平台 Windows
標頭 fdi.h

另請參閱

FDICreate