Skip to main content

Posts

Showing posts from January, 2009

Apple CEO on Palm Pre :"if others rip off our intellectual property, we will go after them."

Palm Pre is making big noise as REAL iPhone competitor and apparently it is designed by one of ex-Apple engineer !!!!   Can Apple really patent the Multi touch ? If it does what's the big deal for other manufacturers. Don't you think that patenting on Multitouch is something like patenting mouse device which i feel is general device and preventing others to replicate can have dangerous monopoly issues. Anyways .. read on!!!!!! For those of you who weren't listening in to Apple's earnings call today, you missed a prime moment of defensiveness when Tim Cook fielded a question about how the company plans to stay competitive amidst new entries from the likes of Google and, more recently, Palm. What seemed like an answer due to end with a "we've got some great new stuff on the way" slant, Cook dovetailed into how the company views its new smartphone competition. In his words: Q: "There are other iPhone competitors coming to the market: Android, Palm Pre

CreateProcess() - Waiting for CreateProcess to finish.

CreateProcess() :   Creates a new process and its primary thread. The new process runs in the security context of the calling process. If the calling process is impersonating another user, the new process uses the token for the calling process, not the impersonation token. To run the new process in the security context of the user represented by the impersonation token, use the CreateProcessAsUser or CreateProcessWithLogonW function. Primary focus of this post is going to be waiting for CreateProcess() to finish. I have seen in many situations developer wants to start a external binary and this task can be accomplished by using CreateProcess() API. What happens after starting this process ?  We will not have control over this newly running application/binary, that is expected however at times we want to wait till it completes it execution.  How do achieve that ? It is not rocket science it in fact is pretty simple.  // Create the process PROCESS_INFORMATION pi; CreateProcess(...,