|
Strange!!! people like you are talking about shame... just analyze your language then you come to know who is shameless....
Idiot, Criminal, Shameful, Coward.
ALL of these words are used by you , not by me and I have no doubt that you deserve all these titles. I used the words idiot only when you used it for me as a response and still I am excusing you. Indeed you are a totaly technology nut having no content (innerself) and you should be proud over.
|
|
|
|
|
See it for yourself:
1. You don't comply with the guidelines
2. I ask you to read the guidelines (along with an answer - links to open source implementations of the stuff you asked for).
3. You send me a stupid reply and then modify it so that it won't be visible publicly (changed it to "thanks"). You are a tosser.
4. Now, you think I cannot call you an idiot? And you are not a shameful person? Actually, YOU ARE.
5. And you think that I am ignorant.
Actually, you are the ignorant one.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Ignore this tool. He won't accomplish any of his tasks, the best he can hope for is to download some source and be utterly baffled at it's complexity, he won't accomplish his tasks plain and simple.
Stop wasting your breath and these broken English comebacks. And be more direct. A fucking idiot is a fucking idiot.
|
|
|
|
|
EliottA wrote: A f***ing idiot is a f***ing idiot.
Well said
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks!
I must agree with you. I usually don't get into such arguments, but I really wish people stop behaving like children when they're left anonymous over the internet. But then I'll ignore such ones now.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
More often then not people aren't truly anonymous over the internet. Especially on places like CP. Whatever he will is trying to do, take solace in the fact he will fail.
|
|
|
|
|
So you're two: the coward and the idiot.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Dont be upset . Now you are too TWO and an idiot find another idiot for help:
modified on Tuesday, July 28, 2009 1:54 AM
|
|
|
|
|
Madhu_Rani wrote: modified on Tuesday, July 28, 2009 1:54 AM
Yet again you go about posting one thing and modifying it to look innocent. You're a tosser.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
and you know it very well that this time I did not delete a single word rather I added more words in your praise. So this time this silly excuse of modification would not work.
|
|
|
|
|
Madhu_Rani wrote: an idiot find another idiot for help
I do not know about your IQ, but commenting like this on two MVPs is utterly foolish.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Rajesh R Subramanian wrote: I think that you are a complete idiot.
Yes He is!!!
He probably does not have access to Yahoo and that is why trying to pass time here.
You should just ignore him as you can never win if you arguing with an idiot.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I should have realised. I'll ignore 'em from now.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi, I'm rather new to using COM. I was to trying to connect to WMI and plan to create two separate threads that will connect to WMI parallelly. Both the threads will be watching for some WMI events. My question is, do I need to use two separate proxies for each of the threads. Can I use the same IWbemServices pointer (say declared globally ,or passed by reference to the thread) in my second thread as well. This other thread would be looking for some other event but using the same WMI namespace. Would that work?
Also can the same WMI locator (obtained from CoCreateInstance) be used to connect to other WMI namespaces as well?
I'm very new to COM and don't understand the concepts too well. Please help
[Edit]
Someone please guide me a little here! I'm totally lost in COM ocean..
modified on Thursday, July 16, 2009 11:37 AM
|
|
|
|
|
I think it depends how you initialise COM. COM can be run as single[^]- or multi[^]-threaded. I think the multi-threaded version would allow you to share interface pointers.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Well I've initialized it as COINIT_MULTITHREADED in CoInitializeEx() but it doesn't work as hoped. I use the same IWbemServices pointer (all initializations done just the first time) to run an ExecNotificationQuery with different WMI queries. However my ExecNotificationQuery fails. The two queries work fine if done individually but I can't seem to be able register for two separate WMI events separately.
If I do the whole initialization again for my 2nd query then I get an error in COM security initialization.
Code Snippet:
HANDLE hres;
hres = CoInitializeEx(0, COINIT_MULTITHREADED);
if (FAILED(hres))
{output something}
hres = CoInitializeSecurity(NULL,1,NULL,NULL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE,NULL, EOAC_NONE,NULL);
hres = CoCreateInstance(
CLSID_WbemLocator,
0,
CLSCTX_INPROC_SERVER,
IID_IWbemLocator, (LPVOID *) &pLoc);
hres = pLoc->ConnectServer(
_bstr_t(L"ROOT\\WMI"), // Object path of WMI namespace
NULL, // User name. NULL = current user
NULL, // User password. NULL = current
0, // Locale. NULL indicates current
NULL, // Security flags.
0, // Authority (e.g. Kerberos)
0, // Context object
&pSvc // pointer to IWbemServices proxy
);
hres = CoSetProxyBlanket(
pSvc, // Indicates the proxy to set
RPC_C_AUTHN_WINNT, // RPC_C_AUTHN_xxx
RPC_C_AUTHZ_NONE, // RPC_C_AUTHZ_xxx
NULL, // Server principal name
RPC_C_AUTHN_LEVEL_CALL, // RPC_C_AUTHN_LEVEL_xxx
RPC_C_IMP_LEVEL_IMPERSONATE, // RPC_C_IMP_LEVEL_xxx
NULL, // client identity
EOAC_NONE // proxy capabilities
);
IEnumWbemClassObject* pEnumerator = NULL;
hres = pSvc->ExecNotificationQuery(
bstr_t("WQL"),
bstr_t("SELECT * FROM ..."),
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&pEnumerator);
Then I use pEnumerator->Next within a loop and cleanup.
I run this function twice in separate threads.Ideas?
|
|
|
|
|
Hi all,
Is it possible to get client IP from the socket handle to which it is connected.
If possible please let me know.
Regards,
Sunil Kumar
|
|
|
|
|
getpeername [^] looks promising.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello I have the following code but it isn't working as expected, can't figure out what the problem is.
Basically, I'm executing a process (a .NET process) and passing it command line arguments, it is executed successfully by CreateProcess() but CreateProcess() isn't passing the command line arguments
What am I doing wrong here??
int main(int argc, char* argv[])
{
PROCESS_INFORMATION ProcessInfo;
STARTUPINFO StartupInfo;
ZeroMemory(&StartupInfo, sizeof(StartupInfo));
StartupInfo.cb = sizeof StartupInfo ;
LPTSTR cmdArgs = "name@example.com";
if(CreateProcess("D:\\email\\smtp.exe", cmdArgs,
NULL,NULL,FALSE,0,NULL,
NULL,&StartupInfo,&ProcessInfo))
{
WaitForSingleObject(ProcessInfo.hProcess,INFINITE);
CloseHandle(ProcessInfo.hThread);
CloseHandle(ProcessInfo.hProcess);
printf("Yohoo!");
}
else
{
printf("The process could not be started...");
}
return 0;
}
Hey one more thing, if I pass my cmdArgs like this:
LPTSTR cmdArgs = " manzoor10@gmail.com";
I get the error:
Object reference not set to an instance of an object
then CreateProcess returns TRUE but my target process isn't executed.
|
|
|
|
|
good morning
Not sure it will solve your problem but did you notice that lpCommandLine is an in out parameter ?
in MSDN Help i found the following information:
The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation.
Hope this will help.
Regards
Franck
|
|
|
|
|
This:
http://bobmoore.mvps.org/Win32/w32tip46.htm[^]
may give you some insight but I'm not sure.
I always use CreateProcess by concatenating the app name and the arguments and set this as the second parameter (first parameter set to NULL) and it has never failed.
|
|
|
|
|
I suspect your command-line argument is being interpreted as the executable name. See the CreateProcess[^] documentation:
Console processes written in C can use the argc and argv arguments to parse the command line. Because argv[0] is the module name, C programmers generally repeat the module name as the first token in the command line.
While that's talking about C programs, .NET programs conform to that as well. Add an argument before the e-mail address and you should find it all works.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
PROCESS_INFORMATION pi;
ZeroMemory (&pi, sizeof (pi));
STARTUPINFOA si;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW;
//si.wShowWindow = SW_HIDE;
si.wShowWindow = SW_SHOW;
CreateProcessA (NULL, cmd, 0, 0, 0, CREATE_NO_WINDOW, 0, 0, &si, &pi);
|
|
|
|
|
tns_ranjith wrote: STARTUPINFOA
tns_ranjith wrote: CreateProcessA
Why?
|
|
|
|
|