I have a c++ function that i would like to convert into c#, Im not the best at Marshalling so can someone help with it?
Basically I would like to use the Setjob function to change a documents name
The Job_INFO is where the name is going to be set, its a structure that needs to be set and i have
However how do i marshal a byte to a structure?
Any help would be greatly appreciated
c = SetJob(hPrinter, pJobs[iIndex].JobId, 2, (LPBYTE) pJobs,0);
SetJobA(pHandle, jobinfo.JobId, 2, ref b, 0);