サイトマップ 連絡先 トップに戻る 最初に戻る
$Date: 2018-07-07 06:49:13 +0900 (2018/07/07 (土)) $
$Revision: 1347 $

Sample KMDF Function Driver for OSR USB-FX2

DllMain (dllsup.c)

  1. IoGetActivityIdIrp のアドレス取得

DllGetClassObject (dllsup.c)

  1. new CClassFactory()
  2. factory->QueryInterface
  3. factory->Release

CClassFactory::CreateInstance (dllsup.c)

  1. CMyDriver::CreateInstance
  2. driver->QueryInterface
  3. driver->Release

CClassFactory::LockServer (dllsup.c)

CMyDevice::CreateInstance (device.c)

  1. new CMyDevice()
  2. device->Initialize

CMyDevice::Initialize (device.c)

  1. FxDeviceInit->SetLockingConstraint
  2. this->QueryIUnknown
  3. unknown->Release
  4. fxDevice->Release

CMyDevice::Configure (device.c)

CMyDevice::OnDeinitialize (device.c)

CMyDriver::CreateInstance (driver.c)

  1. new CMyDriver
  2. driver->Initialize
  3. unknown->Release
  4. fxDevice->Release

CMyDriver::OnInitialize (device.c)IDriverEntry::OnInitialize

CMyDriver::OnDeviceAdd (device.c)IDriverEntry::OnDeviceAdd

  1. CMyDevice::CreateInstance
  2. device->Configure
  3. device->Release

CMyDriver::OnDeinitialize (device.c)

  1. new CMyDriver()
  2. driver->Initialize