I am developing a printer driver. Now i have to communicate the error from server to driver.
I will explain step for step.
The printer is installed on the printserver and is shared to the client. This client gets the driver from the server and works fiine. Now one applicatioin from client prints some document from the server. The printjob arrives on the server and is managed by the print monitor on the server. Anything goes wrong. How to get the errormessage to the client? Or any errormessage to the client?
If the printer is installed locale on the client, i use CreatePrintAsyncNotifyChannel to create the error-message-ballon on the desktop. But if i am a shared printer i get no baloonmassage on Client nor on the server.
I would like to run a program with the Windows Scheduler.
I can create the task with the GUI in the Task Scheduler (taskschd.msc) but would prefer to create the task by the terminal with the schtasks command.
The problem is that my program need one argument for the main method and I'm unable to create a task and specify the argument in the command. In the Windows Scheduler I can specify the argument with no problem. But as I said, I would prefer to create the task in the terminal.
I can have notepad started each minute with this command:
Trying "schtasks /create /?" gave me this example:
==> Spaces in file paths can be used by using two sets of quotes, one
set for CMD.EXE and one for SchTasks.exe. The outer quotes for CMD
need to be double quotes; the inner quotes can be single quotes or
escaped double quotes:
/tr "'c:\program files\internet explorer\iexplorer.exe'
\"c:\log data\today.xml\"" ...
I tested it with notepad and a file on my desktop and it worked:
First,i m a Chinese and my Eng is poor,but i really have a difficult question for your help !!
The error is :
STATUS_INVALID_PARAMETER_4:The given 32-Bit library does not exist!
I'm doing a project with Easyhook, before yesterday,all things goes well,but a problem occur and i tried to fix it buf i failed.
Then i find that the Filemon.exe Demo in my NetFX3.5/4.0 faced the same error.
I have use the "gacutil.exe"cmd to install Easyload32/64.dll Easyhook.dll and the Fliemoninject.dll to the GAC and it does not work
what i confused is not only my project crashed but also why your NetFx3.5/4.0 demo also meet the same error , even i have reunfold the EasyHook-2.7.5558.0-Binaries.zip.
i have search for help online 2 days and my works delayed, information about this error is difficult to find .
I really need your suggestion ,any suggestion will be appreciate!!!!
Help me!! Please!!
Initially we have designed a client server model with named pipes.
Where Server is capable of handling only one client.
We expanded the server to hold 4 client instances at a time.
After which application hangs frequently while connection is established between client and Server.
Added the code snippet below.
Please look at the snippet and suggest Is it a right method to handle multiple clients.
//Returns Writing Instance
int i = 0;
BOOL wr_status = FALSE;
BOOL isNewConnetion = FALSE, fSuccess = FALSE,dwWait = FALSE;
int cbRet = 0,dwErr = 0;
dwWait = WaitForMultipleObjects(INSTANCES, hEvents, FALSE, INFINITE);
i = dwWait - WAIT_OBJECT_0; // determines which pipe
if (i < 0 || i > (INSTANCES - 1))
printf("Index out of range: %d\n",i);
// Get the result if the operation was pending.
fSuccess = GetOverlappedResult(Pipe[i].hPipeInst, &Pipe[i].oOverlap, &cbRet, FALSE);
sprintf(log_buf,"Current state system is in : %d ",Pipe[i].dwState);
if (! fSuccess)
sprintf(log_buf,"Error %d.", GetLastError());
Pipe[i].dwState = READING_STATE;
int clientSessionId = 0;
sprintf(log_buf,"APP THREAD Process id: %d with sessionID : %d ",Pipe[i].processId,clientSessionId);
sprintf(log_buf,"Connected Client process id: %d",Pipe[i].processId);
if (! fSuccess || cbRet == 0)
Pipe[i].cbRead = cbRet;
Pipe[i].dwState = WRITING_STATE;
if (! fSuccess || cbRet != Pipe[i].cbToWrite)
Pipe[i].dwState = READING_STATE;
I am trying to develop a PCI driver in C,I want to know how to configure and how to access PCI device in windows, I am using Eclipse IDE and mingw compiler. Can any one inform me how to develop a PCI driver or provide some sample examples for PCI driver.
like you see, is a very nice code and can avoid several head pains
but i have more memory leaks. how i know? the memory used is increasing and i'm getting problems how to find the problem
can anyone advice me?