TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: DSM 2.0 does not work with DS 1.9 on Windows 7

Forums › TWAIN Classic › DSM 2.0 does not work with DS 1.9 on Windows 7 › Reply To: DSM 2.0 does not work with DS 1.9 on Windows 7

July 16, 2009 at 10:16 am #24967
Dmitry Smirnov
Participant
  • Topics - 1
  • Replies - 3
  • Total Posts - 4

We found that in Windows 7 implementation of major functions is moved from “kermel32.dll” to “kernelbase.dll”. Thus it’s “kernelbase.dll” which calls “LdrGetProcedureAddress” from ntdll.dll. For more details see http://www.nirsoft.net/articles/windows_7_kernel_architecture_changes.html

So on Windows 7 DSM should hook “kernelbase.dll” instead of “kermel32.dll”.
In our tests following fix of hook.cpp [CTwHook::Hook(), line #360] resolved the issue:
//hmodule = GetModuleHandle(“kernel32.dll”);
hmodule = GetModuleHandle(“kernelbase.dll”); //Windows 7

Of course, regular DSM needs a little bit more complex code to distinguish Windows 7 case, etc..

Hope that above information will help to fix and release next verison of DSM soon.

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Sports betting Bonus Code
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in