accessing remote print queue

VC

    Next

  • 1. IDE editor is very slow!
    Hi, I have a large EXE and editing is becoming progressively slower. Even just pressing enter to move to a new line takes forever. I suspect this has something to do with Intellisense or browsing support, but it is really bad! Is there a way to reduce this delay or even eliminate it? It certainly does not occur in C#... -- Thanks in advance, Juan Dent, M.Sc.
  • 2. Why couldn't reboot my PC?
    Hello all: My PC's OS is win2000,and my user belong to the group User(not in group administators),Look: { HANDLE hToken; TOKEN_PRIVILEGES tkp; if(!OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY ,&hToken)) { printf("Faile\n"); } if(!LookupPrivilegeValue(NULL,SE_SHUTDOWN_NAME,&tkp.Privileges[0].Luid)) { printf("Faile\n"); } tkp.PrivilegeCount=1; tkp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED; if(!AdjustTokenPrivileges(hToken,FALSE,&tkp,0,(PTOKEN_PRIVILEGES)NULL,0)) { printf("Faile\n"); } if(!ExitWindowsEx(EWX_REBOOT,0)) { printf("%d\n",GetLastError());//error code is 1314 } } and I find the function ExitWindowsEx(EWX_REBOOT,0) run error, I want to know how to reboot the PC using a user of group User? Thank you very much.
  • 3. Avoiding Escape Sequence....
    Hai All, when I store a char array with "20005Admin01151R/1+'lt;bI : .d.ci2NBl. pY.€p.\"B" values, it is telling as '"' : unrecognized character escape sequence. How to overcome this escape sequence? Thanx in advance...
  • 4. Which messages should I delegate?
    Hi, This seems like a tough one. I have placed one dialog embedded as a child for each tab item in a tab control. However I need everything to work as before, i.e. as when all the controls now contained in the dialog (per tab) were rather contained directly by the CView subclass. -- You know, dealing with the little real support MFC has for tabbed controls. Which messages should I send the CView class and which should I process in the dialog? One thing seems clear: all notifications from child controls should be relayed to the CView class. Yet, there are so many possible notifications... -- Thanks in advance, Juan Dent, M.Sc.

accessing remote print queue

Postby cmF5dWR1 » Fri, 18 Jun 2004 14:59:01 GMT

Hi,
I've to get the queue details from the remote printers in the network.How can I identify those automatically and get the details of those using vc++?
I know how to do this for the local printer n its not working if I give "\\\\servername\\printer name".
I tried EnumPrinters() also but its working for PRINTER_ENUM_NETWORK n _REMOTE with PRINTER_INFO_1 structure only n this structure is not giving the printer name for NT systems.
So,pls help me as the submission date for my module is nearing by.

Pls reply me asap.

Thank you verymuch in advance.
Regards,
Rayudu.


accessing remote print queue

Postby cmF5dWR1 » Fri, 18 Jun 2004 15:00:01 GMT

Hi,
I've to get the queue details from the remote printers in the network.How can I identify those automatically and get the details of those using vc++?
I know how to do this for the local printer n its not working if I give "\\\\servername\\printer name".
I tried EnumPrinters() also but its working for PRINTER_ENUM_NETWORK n _REMOTE with PRINTER_INFO_1 structure only n this structure is not giving the printer name for NT systems.
So,pls help me as the submission date for my module is nearing by.

Pls reply me asap.

Thank you verymuch in advance.
Regards,
Rayudu.


accessing remote print queue

Postby cmF5dWR1 » Fri, 18 Jun 2004 15:01:01 GMT

Hi,
I've to get the queue details from the remote printers in the network.How can I identify those automatically and get the details of those using vc++?
I know how to do this for the local printer n its not working if I give "\\\\servername\\printer name".
I tried EnumPrinters() also but its working for PRINTER_ENUM_NETWORK n _REMOTE with PRINTER_INFO_1 structure only n this structure is not giving the printer name for NT systems.
So,pls help me as the submission date for my module is nearing by.

Pls reply me asap.

Thank you verymuch in advance.
Regards,
Rayudu.


Similar Threads:

1.accessing remote print queue

2.How can I get # of print jobs in a print queue from WMI using C#

I checked Win32_Printer and Win32_printjobs WMI classes but can't find
Number of jobs in print queue variable.  Where can I find one using
WMI.

TIA!

3.how to create queue at remote machine?

-- 
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx

4.create public message queue at remote machine

I have to create message queue at remote machin. My code works properly when 
i use console application in c#. But it throws exception whenever i try it on 
web application in c#. My code is 


MessageQueue.Create("FormatName:DIRECT=OS:MachineName\\QueueName");

or 

MessageQueue.Create("MachineName\\QueueName");




-- 
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx

5.Sending messages on queue present on remote machine

Hello,

      How to send messages to a queue preent on remote machine. I have given 
all the rights to the user. Still the user is able to create a queue through 
program but is not able to send messages to it.
        Is any special rights need to be given.

Thanks,

6. how to create msmq queue at remote machine?

7. Can not send message to remote transaction queue.

8. Retaining local file system access while impersonating to access a remote drive



Return to VC

 

Who is online

Users browsing this forum: No registered users and 58 guest