Tech Support > Microsoft Windows > Drivers > oemuni help !
oemuni help !
Posted by dh on December 26th, 2003


Hi,
I have a working driver, and am trying to enhace it.
I'm trying to implement the CommandCallback & need a little help....
I do not see the desired output showing up.

Can you gurus check oveer the below info to see if there's anything way off
?

thanks!!




1) I just got the 2003 ddk and have built the oemuni sample
2) in my gpd, I have the following:

<...>
*Command: CmdStartDoc
{
*Order: DOC_SETUP.1
*CallbackID: 1
}
<...>

3) in the ini I have

[OEMFiles]
OEMDriverFile1=oemuni.DLL


4) in the dll, I have

HRESULT __stdcall IOemUni::CommandCallback(
PDEVOBJ pdevobj,
DWORD dwCallbackID,
DWORD dwCount,
PDWORD pdwParams,
OUT INT *piResult)
{
VERBOSE(DLLTEXT("IOemUni::CommandCallback() entry.\r\n"));
VERBOSE(DLLTEXT(" dwCallbackID = %d\r\n"), dwCallbackID);
VERBOSE(DLLTEXT(" dwCount = %d\r\n"), dwCount);
m_pOEMHelp->DrvWriteSpoolBuf(pdevobj, "TEST", 4, &dwResult);
return S_OK;
*piResult = 0;
}





Similar Posts