Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

WriteFile() 或 ReadFile() 的函式呼叫可能會失敗,發生錯誤

ERROR_INVALID_PARAMETER

如果您是在具名管道上運作,並且使用,重疊的 I/O。

原因

失敗的可能原因是位移和 OffsetHigh 的 OVERLAPPED 結構成員不會設定成零。

解決方案

設定為零的位移和 OffsetHigh 的 OVERLAPPED 結構成員。

狀態

此行為是系統設計的一部份。位移和 OffsetHigh 的 OVERLAPPED 結構成員必須設為零或函式的 WriteFile() 和 ReadFile() 狀態的線上說明將會失敗。

其他相關資訊

在許多情況下可能會成功函式呼叫,如果您沒有明確設定 OVERLAPPED。位移] 與 [重疊。為零的 OffsetHigh。不過,這通常可能是因為 OVERLAPPED 結構是靜態或全域的並且因此會初始化為零或 OVERLAPPED 結構是自動 (本機)] 和 [在堆疊上的該位置的內容已經是零。您應該明確設定的 OVERLAPPED。位移] 與 [重疊。為零的 OffsetHigh 結構成員。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×