By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 2,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

Word search in byte image data

P: 3
I hope someone can help....

I'm looking for ways to parse PBYTE image data created by GDI (via Unidrv) and search for a word. The original data consisted of images and text. Any idea?

Thanks in advance.
Sep 24 '07 #1
Share this Question
Share on Google+
4 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
PBYTE is a pointer to a BYTE which is a typedef for an unsigned char.

That means PBYTE probably points to an array. Your task is to locate the array and find out what the elements mean.

Post again when you have more info.
Sep 24 '07 #2

P: 3
It's
IOemUni::FilterGraphics
in WDK.

HRESULT FilterGraphics(PDEVOBJ pdevobj, PBYTE pBuf, DWORD dwLen)

I'm trying to see if I can somehow parse pBuf to find a string.
Sep 24 '07 #3

P: 3
... or anywhere between an application and a printer...
Sep 25 '07 #4

weaknessforcats
Expert Mod 5K+
P: 9,197
HRESULT FilterGraphics(PDEVOBJ pdevobj, PBYTE pBuf, DWORD dwLen)
Just as I thought. That PBYTE is the address of a BYTE buffer. Now you have to figure out what the buffer format is. It is obviously dwLen bytes in size.
Sep 25 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.