Your question is a bit unclear. I'm assuming you're asking how to detect thread creation from within the process that creates it. If this is the case one way is to load a DLL into the process and handle the DLL_THREAD_ATTACH notification in its DllMain[^] function.
sorry for not mentioning it earlier, it is from outside the software.
Actually, i want to detect the thread creation for a software (black box)running on windows xp. I want to write a software that could give me the following information for each thread in a process running on windows xp:
1. time of its creation
2. associated function (that was given in the lpStartAddress attribute of CreateThread function)
One way is to create the process to be monitored using the CreateProcess[^] function and passing the DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS flag (and I'd also add the CREATE_DEFAULT_ERROR_MODE flag) in the dwCreationFlags parameter. Alternatively you could use the DebugActiveProcess[^] function to attach to an active process. To find out how to proceed after this start at the WaitForDebugEvent[^] function.
In my system I have installed windows Vista os. When I entered into Vista, In the Login dialog, User Name and Password textboxes are there. When the Password text box is empty, it is showing "Password" text image. When we entered some character, that Password image had gone and the text which entered is dispalying as *. Here my question is when the Password fields is empty it showing the "Password" text image, whethere it is image or text, how do i get this feature in VC++ 6.0. Awaiting for your reply.
CEdit::<a href="http://msdn.microsoft.com/en-us/library/kb01s86y(vs.80).aspx">SetCueBanner</a>[<a href="http://msdn.microsoft.com/en-us/library/kb01s86y(vs.80).aspx" target="_blank" title="New Window">^</a>]
Sets the text that is displayed as the text cue, or tip, in an edit control when the control is empty and does not have focus.
Use the Edit_SetCueBannerText[^] macro (which you'll get by #including commctrl.h) to set the prompt text in the edit box. Note that the text you pass as the macro's second argument is a wide-string, something like L"Password"
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
strQuery.Format(_T("SELECT Name FROM EmployeeDetails WHERE Name='%s'"),m_EditBoxValue);
m_pRS->Open(strQuery,m_ptrConnection->ConnectionString, adOpenForwardOnly,adLockReadOnly , adCmdText);
Is anyone familiar with the MAPI embedded attachments? I need to combine a message from my code, and attach an Image inside the message, so it will be visible as an image.
I was able to find an article from Microsoft that is supposed to explain how to do it(http://support.microsoft.com/kb/168903[^], but when I do it Outlook tells me (at the top of the new message) that the attachment was blocked since it unsafe. Does anybody have a clue? A code that does it or what flags / functions can solve it?
Outlook tells me (at the top of the new message) that the attachment was blocked since it unsafe.
All versions of Outlook since Outlook 2000 Service Release 1 (SR1) include a security feature that blocks attachments that might put your computer at risk for viruses or other threats. Although Outlook blocks access to the attachment, the attachment still exists in the e-mail message.
Does anybody have a clue? A code that does it or what flags / functions can solve it?
This[^] MSDN article gives more detail on this; no codes.
Look at the Advanced troubleshooting section of the article, I am sure you can do some tweaking with outlook registry entries to Outlook's attachment security behavior locally. Or you can ZIP the image and attach to a mail so that your recipients may not see a security warning.
First of all, thanks for your quick answer.
I am familiar with the security issue, but I'm afraid my problem is a bit more complex than that - I am able to attach images in the 'regular' way (as an attachment), the problem is only when I try to embed it (so the image will appear as a part of the text). This is why I believe what you suggest cannot help me...
Any other ideas?
This is why I believe what you suggest cannot help me...
Sorry for that!
Any other ideas?
I haven't played much with MAPI; How about attaching certificate[^] with your message so that outlook may identify your mail as a 'safe' one ? Please look at this, and check whether this works for you... [Just a suggestion, and am not sure about this approach]
There are lot of samples on MAPI programmes here[^]; I think you may get some more ideas from there.
Last Visit: 31-Dec-99 19:00 Last Update: 29-Nov-23 14:25