InitFreeDeviceCreateType2 規則 (kmdf)
InitFreeDeviceCreateType2 規則指定驅動程式在呼叫 WdfDeviceInitFree 之後,不得呼叫 WdfDeviceCreate。
驅動程式模型:KMDF
測試方法
在編譯時期 |
---|
執行 靜態驅動程式驗證器 ,並指定 InitFreeDeviceCreateType2 規則。 使用下列步驟來執行程式碼的分析:如需詳細資訊,請參閱 使用靜態驅動程式驗證器尋找驅動程式中的瑕疵。 |
適用於
WdfControlDeviceInitAllocateWdfDeviceCreateWdfDeviceInitFree
另請參閱
InitFreeDeviceCallbackInitFreeDeviceCreatePdoInitFreeDeviceCreateType2InitFreeDeviceCreateType4PdoInitFreeDeviceCallbackPdoInitFreeDeviceCreatePdoInitFreeDeviceCreateType4InitFreeNull
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應