If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Leo Havmøller. |
Ads |
#2
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Also, what is the correct way to launch it again? Leo Havmøller. |
#3
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#4
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#5
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#6
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#7
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#8
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#9
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#10
|
|||
|
|||
Shutdown Windows Messenger programatically?
How do I request Windows Messenger shutdown from C/C++?
Also, what is the correct way to launch it again? Leo Havmøller. I think you have to read something about c/c++ process (exec funtions family) and thread (p_thrread.h header file under linux) management. However you could try using c routine system("name of command") for calling the application but it is not very 'powerfull'; se also dos.h header, it include many function corresponding to system calls such as cd , copy and so on. Hi |
#11
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Found the solution myself. The following will gracefully shutdown both MSN Messenger and Windows Messenger: void ShutdownMessenger(void) { HWND hwnd; UINT msgid; // MSN Messenger. hwnd = FindWindow("MSNHiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryMsnMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } // Windows Messenger. hwnd = FindWindow("HiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryWindowsMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } } Leo Havmøller. |
#12
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Found the solution myself. The following will gracefully shutdown both MSN Messenger and Windows Messenger: void ShutdownMessenger(void) { HWND hwnd; UINT msgid; // MSN Messenger. hwnd = FindWindow("MSNHiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryMsnMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } // Windows Messenger. hwnd = FindWindow("HiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryWindowsMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } } Leo Havmøller. |
#13
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Found the solution myself. The following will gracefully shutdown both MSN Messenger and Windows Messenger: void ShutdownMessenger(void) { HWND hwnd; UINT msgid; // MSN Messenger. hwnd = FindWindow("MSNHiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryMsnMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } // Windows Messenger. hwnd = FindWindow("HiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryWindowsMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } } Leo Havmøller. |
#14
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Found the solution myself. The following will gracefully shutdown both MSN Messenger and Windows Messenger: void ShutdownMessenger(void) { HWND hwnd; UINT msgid; // MSN Messenger. hwnd = FindWindow("MSNHiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryMsnMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } // Windows Messenger. hwnd = FindWindow("HiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryWindowsMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } } Leo Havmøller. |
#15
|
|||
|
|||
Shutdown Windows Messenger programatically?
"Leo Havmøller" wrote in message
... How do I request Windows Messenger shutdown from C/C++? Found the solution myself. The following will gracefully shutdown both MSN Messenger and Windows Messenger: void ShutdownMessenger(void) { HWND hwnd; UINT msgid; // MSN Messenger. hwnd = FindWindow("MSNHiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryMsnMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } // Windows Messenger. hwnd = FindWindow("HiddenWindowClass", NULL); if (hwnd) { msgid = RegisterWindowMessage("TryWindowsMsgrShutdown"); PostMessage(hwnd, msgid, 1, 0); } } Leo Havmøller. |
|
Thread Tools | |
Display Modes | |
|
|