windows

What is the meaning of these Windows Enviroment variables: HOMEDRIVE, HOMEPATH, HOMESHARE, USERPROFILE

What is the meaning of these Windows Enviroment variables: HOMEDRIVE, HOMEPATH, HOMESHARE, and USERPROFILE? Who set them? When? Who use them? For doing what? How the configuration of the samba server modify these variables? Thanks! ...

Convert VARIANT to...?

Note: Attempting to invoke a method of an interface, of which the return type is _variant_t Code: _variant_t resultsDataString; _bstr_t simObjectNames; simObjectNames = SysAllocString (L"TEST example 3"); resultsDataString = pis8->GetSimObject (simObjectNames); inline function illustrated below, contained in .tli FILE: inline ...

Opening a remote machine's Windows C drive

I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like $remote_machine/local_access/C Is anyone familiar with how this is done? ...

Do you know of a Java library to access the native windows api?

Either with COM or JNI. ...

Windows file copy using http

Is there a windows command to copy or download files from a http url to the filesystem? I've tried with copy, xcopy and robocopy and they dont seem to support http urls. ...

DateTimePicker for custom calendars

Do you know any DateTimePickers for calendars other than the Gregorian calendar? ...

VB6 application no longer opens on Vista computer

I have a VB6 app that formerly worked perfectly on a Vista machine as a scheduled task, but it will no longer open on the same machine. The app generates export files in a specified folder with no direct output on the screen. I get no errors, no missing references, just absolutely nothing. The machine is running Vista Business 32-bit...

Wine linker error: trying to create .lnk

I'm trying to create an .lnk file programatically. I would prefer to use C, but C++ is fine (and is what all the MSDN stuff is in). The relevant code sample is: #include <windows.h> #include <shobjidl.h> #include <shlguid.h> HRESULT CreateLink(LPCSTR lpszPathObj, LPCSTR lpszPathLink, LPCSTR lpszDesc) { HRESULT hres; IShellLink* p...

Why are executable files not included in 'Extract All' on one machine, but not another?

We're providing a zip file of our application for testing and the same zip file on two separate machines is extracted differently. One will extract all files, the other will extract all but the executables (.exe and .msi specifically). We're going to have to tell our customers something other than 'use WinZip' (or 7zip, or whatever) Wh...

Programming a USB transfer cable / talking to a USB device driver

How do I programmatically access a USB transfer cable (such as Belkin's Easy Transfer Cable) from Windows? I'm familiar with libusb-win32, but from what I can tell, using that with newer devices and with Windows Vista seems iffy. I know that Windows Easy Transfer can do this. How do I write code that does the same thing as Windows Eas...

Getting the name of the active window

I want to write a python script on Windows that saves the title of the program that the user uses at a given time like the http://www.rescuetime.com . I don't want to use rescuetime because of privacy consideration but instead write a script that does something similar myself to capture data about how much I use my computer. Is there so...

Strange Ogre Error and A Non-Existant FIle

I am getting this error, I have no clue where: OGRE EXCEPTION(2:InvalidParametersException): Header chunck didn't match either endian: Corrupted stream? in Serializer::determineEdianness at f:\codingextra\ogre\shoggoth_vc9\ogre\ogremain\src\ogreserializer.cpp (line 90) I am using Visual Studio 2008. I tried to gvim the file on th...

Authentication of Windows Local User account in C# 3.0

How to authenticate local windows user account in C# 3.0. Windows OS on which i have to validate the password is Vista and Win2K8. Note: User account is a local account and not an domain account. I found a solution in C# 3.5(PrincipalContext class), but could not find in 3.0 framework. Please suggest, thanks ...

How do you determine the network transfer speed of a Windows application?

I would like to determine the network usage of my application. It uses various methods for data transfer (web services, net.tcp WCF contracts, P2P contracts) so I guess I'm interested in the statistics for the running process. Something like uTorrent displays for it's total transfer rates. ...

How to check that a disk is RAID1 on Windows Server 2003/2008?

I am usually renting dedicated servers under Windows Server 2003/2008. Those servers are said to be "hardware RAID1"; yet I am wondering how can I verify this property of the server remotely? As far I can see, disks appears as classical IDE disk from the windows disk manager, and it does not tell me anything about the RAID properties o...

WinQual: Why would WER not accept code-signing certificates?

In 2005 i tried to establish a WinQual account with Microsoft, so i could pick up our (if any) crash dump files submitted automatically through Windows Error Reporting (WER). i was not allowed to have my crash dumps, because i don't have a Verisign certificate. Instead i have a cheaper one, generated by a Verisign subsidiary: Thawte. ...

Start Directory in Windows Explorer running Vista not set properly ?

When I right click on Windows Explorer, select Properties, it opens a panel, I set the value of "Start In" to "C:\", which means I want it to point to my C: drive when I open explorer, but it's not working, it always points to "Documents". On XP I did the same thing and it worked, but now I got this new PC with Vista, it doesn't work? Ho...

Writing a COM object totally from scratch?

I just started a new job that involves lots of COM programming. I'm doing ok so far, by going on my COM fundamentals that I've picked up along my journey as a dev, but I'm the kind of guy that needs to know everything. And working with COM all day irks me since I don't know how this stuff works. Is there a simple walk through to cre...

Do you know of any OpenSSH libraries for Windows?

I'd like to incorporate OpenSSH support into a Windows application and I am looking for a library (preferably .Net or something easily integrated into .Net) that can provide this functionality. I'm more interested in ssh client software than server software, but both functions would be even better. Edit: I'd prefer a free and open so...

Winsock: Windows networking programming in C++

I need books that truely explian sockets in windows in C++ ive been looking at tutorials but they dont tell what anything means they dont go into great detail so i need come books on Winsock in C++ for windows ...