阅读:1597回复:1
要实现类似Fineprint的功能,将oemdll改成输出bitmap应该怎么进行?请指教!
要实现类似Fineprint的功能,用oemdll改成输出bitmap,参考了几位前辈的思路,但是不知道从何下手,望高手指点,多谢
|
|
|
沙发#
发布于:2005-01-27 17:02
我看了一下ddk的sample已经编译过oemdll
是在下面两个出口函数里改吗? // Exported functions // // Can DLL unload now? // STDAPI DllCanUnloadNow() { if ((g_cComponents == 0) && (g_cServerLocks == 0)) { return S_OK ; } else { return S_FALSE ; } } // // Get class factory // STDAPI DllGetClassObject(const CLSID& clsid, const IID& iid, void** ppv) { VERBOSE(DLLTEXT("DllGetClassObject:Create class factory.\r\n")); // Can we create this component? if (clsid != CLSID_OEMUI) { return CLASS_E_CLASSNOTAVAILABLE ; } // Create class factory. IOemCF* pFontCF = new IOemCF ; // Reference count set to 1 // in constructor if (pFontCF == NULL) { return E_OUTOFMEMORY ; } // Get requested interface. HRESULT hr = pFontCF->QueryInterface(iid, ppv) ; pFontCF->Release() ; return hr ; } |
|
|