windows

How to view who has a file open on Windows fileserver

I was contemplating moving to a version control system at work, but the learning curve may be too much for the many copywriters that open simple html files and editt them on our shared development server. The main issue is that sometimes two people will work on the same file (on our development server) at once and overwrite each other. ...

Any free libraries to send/receive SMS, send/receive Calls using GSM Modem?

I want to make a windows application in which I want to send ,receive and process SMS using GSM Modem( this one ), It would be very helpful If you provide me link to any opensource library or application which do the same. I am good in MFC and Qt, so any C++ or C library or app reference would be much better. It would be great help, If...

C# Hook Windows Processes to Check for Debugging Processes

I was wondering if there is a way I could hook the windows processes to check if any suspicious programs are running like (Wireshark, Fiddler, OllyDBG, etc). I want to hook the windows processes so it will close the client or pop-up a message in real time when it detects a unwanted process. If you guys can provide me with any links to ...

good resources for windows driver development

hello guys, I am a beginner to windows device driver development. So far I read Windows Internals book. I would like to know about any good resources available online so that I can start writing kernel drivers on my own. ...

a windows service monitors local system time to start other services?

Hi all, need your advices on this scenario: I have a bunch of services installed on a server, they need to be set to start and stop dynamically depending on the local system time, meaning the start time and end time are different almost everyday, e.g, today these services are set to start by 9am and end by 9pm, and tomorrow could be 10...

WMI Win32_PhysicalMedia SerialNumber

I am using WMI with C++ to get the physical disk serial number. On Windows 7 64bit, I get a string with the serial number. While when running the same application on a Windows XP 64bit machine I get a hexadecimal string with each char's values reversed. I have noticed 3 different behaviours so far: Windows 7 64bit String in correct ...

FTP Get works on windows but not on linux.

I am doing an FTP Get in Java with FTP Client which if I run on windows works fine but when I run the same on a linux box it get me the file with some modifications. I have a test.tar.gz file (bunch of text files) which is of size 2872578 but it shows up as 2872541 when I run my java program on linux. Anyone faced a similar problem? //...

Suppress warning messages about downloaded executables in custom installer

We are writing a custom installer for our software. This installer will execute several other installer that are either transferred over the network or on a usb disk. When executing these in their own process we get Windows warnings that these installers might not be safe. Is there a way to suppress this type of messages? ...

Run sysocmgr.exe on remote server using powershell remoting

Hi, I am unable to run remote installation of windows component on a remote server using sysocmgr.exe. It is working with "psexec.exe \ServerName -i sysocmgr.exe /i:%wnidir%\inf\sysoc.inf /u:\path\to\components.txt but I want to achieve the same results using powershell remoting. I have powershell remoting with WinRM working fine, but...

How to Start Windows Service in Administrator Mode

i bet its pretty easy question , any way im trying to run a windows service which host WCF service in administrator mode! i keep getting the exception of : HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details) i know its so...

Can I write an Extension for External Harddisk

I want to secure my external hard disk by writing sort of ShellExtension. But Shell extension is Workstation Specific. Is there a way I can write an application that will show a authentication or an extension encrypt my drive data so user will get a failure message when double click on my drive. ...

Can the console output of a Windows console application be captured fully (incl. advanced manipulations)?

It is a trivial matter of redirecting a console program's standard input/output, but what about if the program uses advanced console functions? Like outputting colored text, throwing the cursor around and manipulating the console buffer directly? Can that also be captured and redirected to my own program for processing? Note: I'm talkin...

Testing for an invalid windows handle: should I compare with 'NULL', '0' or even 'nullptr'?

I'm coming from a background whereby pointers should generally be compared with 'NULL' and integers with '0'. Since I didn't perceive Windows handles to be 'pointers' in the pure sense (being 'handles'), I'd got into the habit of comparing them with 0 rather than 'NULL'. Clearly they're implemented internally as pointers nowadays, but ...

Displaying string variable in editable portion of ComboBox

I have some value in variable string var="some text"; i have bind the combobox with list but during loadoing of form i want var to be displayed in editable portion of Combobox... Thanks in advance!!!! ...

Is there a tool to dump all API inside a dll writen by c/c++ in windows?

Anyone knows such a tool? ...

How can I hook mapped drive (Z: -> \\myserver\share) turn disconnected?

Hi I have several network drives connected to my PC. How can my application (VC++/Win32) on this PC, hook or get event when user disconnect drive? (Right click menu, Disconnect item). Thank a lot, Dmitry ...

Windows Application Icon Files

when creating an .exe on Windows (XP - 7, assuming it's the same process), what is the format for the application icon? what is the file extension? what size is the maximum? with applications on Mac OS X, it is possible to right-click on the application and select "Show Package Contents". from here, an .icns file can be found in a fo...

cannot convert from 'std::string' to 'LPSTR'

As I clould not pass LPCSTR from one function to another (Data get changed) I tried passing it as a string. But later I need to again convert it back to LPSTR. While trying the conversion I am getting the above error: cannot convert from 'std::string' to 'LPSTR' How can I resolve this? ...

How to programmatically create a shortcut using Win32

I need to programmatically create a shortcut using C++. How can I do this using Win32 SDK? What API function can be used for this purpose? ...

svn export from post commit does not work on window?

Hi Everyone, I am setting up a SVN server in a windows environment: Whenever a tag is made, the post-commit script export a certain number of information about the tag (like author, comments, dependencies ...). I also want to attach specific files from the tagged repository. To do so, I have been trying the "svn export" commands. This ...