|
Pls clear my doubt ,
Weather the ITaskScheduler interface is create the schedule task in vista Environment. Pls reply if u know.
Thanks
|
|
|
|
|
NO
It only work on -> Windows XP, Windows 2000 Professional, Windows Me, or Windows 98.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
vicky00000 wrote: Weather the ITaskScheduler interface is create the schedule task in vista Environment.
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How to connect Modem after two rings through RS-232 in MFC
|
|
|
|
|
Your question implies that you dont know much (in what trouble you are).
Working with modem ist really hard work.
I recommand you to learn about it with this article:
http://www.codeproject.com/system/serial.asp
Have a lot of fun
Greetings from Germany
|
|
|
|
|
Mr.KarstenK,
iam already go through that topic that what u are specified to me and i know abt serial communication.but what iam asking is communication b/w system and Modem.
i have to prepare that code in VC++
like when we press the button "connect".it will conncet 2 modem after 2 rings.
thanQ,
kp.
|
|
|
|
|
And where are you stuck exactly ? Do you know the protocol you need to use to communicate with the modem (probably AT commands) ?
|
|
|
|
|
Mr.Moonen,
thanks for reply,
i know all the Hayes AT Commandswhich are the communication protocols through hyperterminal 2 modem.
but iam enable to instantiate a connection to modem in MFC.
how can i start,by inserting an activex control..shall it work
regards,
kp
|
|
|
|
|
krishna Vuppala wrote: how can i start...
I would start by thoroughly reading modem-related articles such as this and this.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
How do i convert LPARAM to CComBstr?
Sunil
|
|
|
|
|
Use itoa() to convert long/int to char* and append this to CcomBSTR as in the given sample code:
LPARAM temp = 90;
CComBSTR t;
char* buf= new char[5];
buf = itoa(temp,buf,10);
t.Append(buf);
Cheers!!
Bhawna
|
|
|
|
|
Solution[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
When I try to shutdown remote pc Using the followind code it gives me the error of Access denied. Can anyone tell why this is happening.
HANDLE tokenHandle = INVALID_HANDLE_VALUE;
TOKEN_PRIVILEGES newTokenPrivileges;
TOKEN_PRIVILEGES oldTokenPrivileges;
DWORD oldTokenPrivilegeSize = 0;
LUID newLuid;
DWORD dError;
WCHAR CompName[] = L"node129xp.radixweb.local";
OpenProcessToken(GetCurrentProcess(), (TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY), &tokenHandle);
LookupPrivilegeValue(CompName, SE_REMOTE_SHUTDOWN_NAME, &newLuid);
newTokenPrivileges.PrivilegeCount = 1;
memcpy(&newTokenPrivileges.Privileges[0].Luid, &newLuid, sizeof(LUID));
newTokenPrivileges.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(tokenHandle, FALSE, &newTokenPrivileges, sizeof(TOKEN_PRIVILEGES), &oldTokenPrivileges, &oldTokenPrivilegeSize);
if(!InitiateSystemShutdown(CompName, L"System is shutting down in 30 seconds", 30, TRUE, TRUE))
dError = GetLastError();
|
|
|
|
|
Does it fail on all machines or just node129xp.radixweb.local?
What did LookupPrivilegeValue() and AdjustTokenPrivileges() return? If either of those fail, it obviously does no good to call LookupPrivilegeValue() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I am checking return value after each and every WinAPI call and it doesn't fail after LookupPrivilegeValue and AdjustTokenPrivileges but fails on InitiateSystemShutdown when I use
DWORD dError = GetLastError();
Its Shows dError = 5. i.e. Access Denied.
If I give My Computer Name instead of anyone else's from my network it is working. But If I give any other Machines's name it gives above Error.
|
|
|
|
|
What happens if you use shutdown -m \\node129xp.radixweb.local -t 30 from a command prompt?
I tried your code on the two machines on my desk and it works as expected. The key difference may be that I belong to the Administrators group.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I am using win2000 Service Pack 4. And When tried the command you have told me it shows the following error
'SHUTDOWN' is not recognized as an internal or external command,
operable program or batch file.
I am not able to figureout what is the problem.Do have any Idea ?
|
|
|
|
|
GauranG33 wrote: 'SHUTDOWN' is not recognized...
Sorry, it must be a Windows XP thing.
GauranG33 wrote: Do have any Idea ?
If I did, don't you reckon I would have offered it by now? Other than your own, can you shut down any PC on your network?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I tried the same code to shutdown other computers in the LAN.But it is showing the same Error Access is denied.
|
|
|
|
|
Have you ruled out your user account not having the correct privileges?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I think I have the administrative rights for the computer I am working. but not sure. If you can tell me how to check will be helpful to answer correctly.
|
|
|
|
|
GauranG33 wrote: I think I have the administrative rights for the computer I am working.
Which the other (remote) computer couldn't care less about.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Then What do you think what should be the problem.I have tried to google the thing but getting the same line of code,that is not working in my case.
|
|
|
|
|
GauranG33 wrote: Then What do you think what should be the problem.
Have you considered joining the Domain Administrators group?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
No I dont have Idea about that. Can you guide me through that.
|
|
|
|