I myself found the answer,
Thanks,
I am attaching the code for it might be useful...
<Code>
#include "tlhelp32.h"
BOOL bRet;
PROCESSENTRY32 eProcess;
HANDLE hProcessEnumerator = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
bRet = Process32First(hProcessEnumerator, &eProcess)...
I am writing a service and my service is supposed to function only when a particular application is not running.
But, How do I determine whether that particular exe - for which I know the exact name - is running or not?
Is there a way to programatically achieve this?
Regards & thanks in...
Hi,
When I try to map a network drive, all it asks me is the network password. The username is taken by default as my logged in user ID.
What if I want to specify the user name explicitly?
Is there a way for it?
Please help...
Chaitu
Hi,
I am using Wininet set of APIs for a connection with an FTP server. Is there a way by which I can get the TP quota for the site.
FTPCommand doesn't seem to work.
It seems to be a "for future use" kind of a thing.
Regards,
Hi,
I am using Winsock2.0 and as seen in help everywhere, for using SSL with it, the function 'setsockopt' can be used with certain flags SO_SECURE, SO_SEC_SSL etc.
But on Windows2000, in header file Winsock2.h, there is nothing like these flags.
Can't I do SSL with Winsock2.0 on Visual...
Hi,
I am usinsg WinInet dll for FTP operations.
Basically calling InternetConnect(), FTPOpenFile(), FTPPUTFile() etc.
But while I send the ID and password through InternetConnect() fuction, I need to do this using SSL.
There are SSL operations available through WinInet APIs, but they are...
Is it possible to use SSL, when establishing connectivity to Internet, through a VB code?
If yes, is there any API and/or a function to do this.
All I want is,
I am using InternetConnect() function, but I want to do this with SSL. Is it possible?
cheers,
Chaitu
Is is possible to use SSL, when establishing connectivity to Internet, through a VB code?
If yes, is there any API and/or a function to do this.
All I want is,
I am using InternetConnect() function, but I want to do this with SSL. Is it possible?
cheers,
Chaitu
Here is a simple but effective code used to send keystrokes
to Notepad / Wordpad.
Sending text to another program
------------------------------------------------------------
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Long, ByVal Msg As...
Here's the simple code to use SendKeys function effectively
to write to a notepad.
Sending text to another program
------------------------------------------------------------
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Long, ByVal Msg As...
Thanks,
But does it work even with WebFolders. By Webfolders, I mean shared folders on the internet. For this, the parameter for the function WNetAddConnection would be something like, "http://www.msn.com/myfolder".
This doesn't seem to work. Is there a way that I can do this...
Hi,
Any idea whats the alternative of SendKeys method of VB in C++/VC++.
SendKeys of VB sends key strokes to any application specified, as if entered from the keyboard.
Tried WinExec() & OpenProcess() to get a handle, but this handle cannot be used in SendMessage().
All I want is, through my...
Hi,
Using this function (WNetAddConnection) supported in "mpr.lib", I am able to map a folder on LAN by mentioning its sharename. But when I try to map using its IP address or any other http folder, I get an error saying, no 'Network Provider found'.
Is there any other function to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.