See
Enumerating jobs in print queue FAQ #21203
>Hi All,
>
>I want to be able to view on a VFP form all print jobs that were created on a particular printer so I can also save it into a table.
>
>I figured out how to use OpenPrinter, ClosePrinter, and EnumJobs API functions but cant get pass deciphering the contents of the pJob pointer parameter of EnumJobs bec of the DWORD, STRUCTs! Man, that's way over me...
>
<snip>
>
>I was able to get pJob into a character variable but it was full of all those unprintable characters although I can see the pPrintName, pMachineName, pUserName, pDocument contents in that variable.
>
--sb--