Retrieving username and job name from shd and spl printer files

I have the .shd and .spl files for a print job. Is there a way to extract the username and job name from these files? The .shd file has the info I need, but I can't seem to read it into a string. How about an API call? Is there a way to extract the info from job_info_1? Thanks for the help
gtarasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnny6Commented:
You can find information about almost any type of file format here:  http://wotsit.org/
0
rondeaujCommented:
GetJob

VB Declaration

Declare Function GetJob& Lib "spoolss.dll" Alias "GetJobA" (ByVal hPrinter As_
Long, ByVal JobId As Long, ByVal Level As Long, pJob As Byte, ByVal cdBuf As_
Long, pcbNeeded As Long)

Description

Retrieves information on the specified job.

Use with VB

No problem.

Parameter      Type/Description
hPrinter      Long—A handle to an open printer (obtain using OpenPrinter).
JobId      Long—A job number.
Level      Long—1 or 2
pJob      Byte—See “Spooler Functions and Structures” in the chapter text. The buffer will contain a JOB_INFO_1 or JOB_INFO_2 structure containing information about the job. Refer to Appendix B for information on these structures.
cdBuf      Long—See “Spooler Functions and Structures” in the chapter text.
pcbNeeded      Long—See “Spooler Functions and Structures” in the chapter text.
Return Value

Long—Nonzero on success, zero on failure. Sets GetLastError.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.