从对象指针得到名称

RtlInitUnicodeString( &nameString, L"\\Device\\RawCdRom" );

status = IoGetDeviceObjectPointer(
            &nameString,
            FILE_READ_ATTRIBUTES,
            &fileObject,
            &rawDeviceObject );

 

从名称得到对象指针

用NLGetAndAllocateObjectName

 

    devName = NLGetAndAllocateObjectName( DeviceObject,
                                          &gSfNameBufferLookasideList );



NLGetAndAllocateObjectName需要namelookup库.新版的sfilter带

相关文章:

  • 2022-12-23
  • 2021-10-31
  • 2021-08-27
  • 2022-02-04
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-12-19
  • 2021-05-17
  • 2021-07-05
  • 2021-07-05
  • 2022-12-23
  • 2022-02-05
  • 2021-09-05
相关资源
相似解决方案