windows

Most approprite place for storing registration info in the registry

I'm aware that any licensing registry key can be detected using monitoring tools, just want to secure it against ordinary users. What places of registry look fit for storing a key? ...

OpenGL: How much memory anisotropic filtered textures will use?

I'm curious, does the anisotropic texture filtering increase the memory usage? And how to calculate it? ...

Auxiliary power Control in ARM -Wince 4.2 - VC++

Guide me please with any suggestions/articles to look for controlling the auxiliary power in wince 4.2 device using vc++.The api provided by vendor is currently not working[It worked previously].The port is not responding to any api calls, I wish to fix it as web searches / contacting the vendor has become fruitless.Its a Samsung Process...

Are there any complete examples of using winhttp in C on windows?

I can find tons of examples in C++, but nothing that's written in just C. I am trying to connect to an http server, download the returned data, and then save it to a file. Is there a better way to do it on Windows? Should I not be using WinHttp or WinInet? Windows documentation for C seems to be extremely lacking on the internet. Thank y...

Extend an external application's menu

Hello, I am currently writing a plugin for a third party application. As the plugin framework does not provide any way to access the UI I am now trying to do this manually via the WinAPI. More specifically, I want to add a custom menu item for my plugin in the "File" menu. My first attempt using FindWindow to retrieve the handle of t...

Detecting user name from process ID

Ho can i get user account name, that ran the process with specified id. Is there any api function for this? I am using windows,c++. ...

Installer or no installer?

There's lots of questions about installers but I haven't seen one about whether or not to actually use one in the first place. What is the logic behind using them in the first place? Can't the user just extract it somewhere? But I guess it depends on the target user. And on the subject of the actual setup: Can't that be done on the fir...

Faster method for rendering anisotropic textures?

Is there any faster methods for improving texture quality on oblique angles than using anisotropic texture filter? In my previous question i asked if it takes more memory than normal mip mapped textures, but apparently it doesnt, so i am hoping this could be optimized. So is there any way to optimize the rendering speed ? ...

PHP5 COM(), DOTNET(): how to start?

Where I'm stuck is the right parameter syntax to instantiate an object using PHP's com() and dotnet() classes to load .net assemblies, windows system applications and components beyond the usual MS Office apps. If successfully created, working with the objects isn't an issue here. Can anyone explain what each part of each parameter mea...

How can I find a window with a specific window style? (WS_CHILDWINDOW)

I've got a specific window with the window style WS_CHILDWINDOW. It's the child window of a window of which I've got the handle already. This window is the second-last one. How do I get it? It's C++ by the way. ...

File handle leak on dynamically loaded DLL caused by activation context

I have a dynamically loaded & unloaded DLL which requires COMCTL32.dll >= v6.0 and MSVCR >= v9.0. To ensure that the correct versions are loaded, I enable manifest file generation in Visual Studio project setting, and add this entry to another manifest file: <dependency> <dependentAssembly> <assemblyIdentity type...

What is the difference between a .h(header file) and a .cpp file?

I am creating a windows:forms application. I have read some of the answers give to try to understand the concept of .h(header file) & .cpp(implementation files). As I created the GUI for my app. I noticed the code being placed in the .h file. But when I double clicked a button control to add code to the procedure, the code was created in...

How to automate this process?

I do these jobs every day manually with a GUI client: upload data(.tar.gz) to remote server(linux) via ssh,which takes about an hour. uncompress the data and run update.sh How can I automate the process so that I don't need to wait an hour? My PC OS is windows. How to do the above jobs by commandline? ...

Java HttpURLConnection uses SOCKS proxy instead of HTTP

I have a very simple code that uses HttpURLConnection to access some web site via proxy System.setProperty("java.net.useSystemProxies", "true"); System.out.println("Proxy: " + ProxySelector.getDefault().select(new URI(urlS))); URL url = new URL(urlS); HttpURLConnection ic = (HttpURLConnection)url.openConnection(); i...

Hard evidence that Linux is more stable than windows?

I am trying to convince management to switch from SQL Server, to MySQL on Linux. This is very much a windows house, and management seems very wary of using Linux. Can anyone provide hard facts showing Linux is more stable, higher performance than windows for running a DB server? And any other advantages? Also, nobody here knows how to...

Virtual drivers with Windows Driver Model - where to begin?

I've never written drivers before but I'm starting an open-source project that involves creating virtual MIDI ports that will send the MIDI data over a network. For this, I presume I would be creating some sort of virtual driver using WDM (unless it's possible with kernel hooks?) - but being a beginner to driver development I don't know...

Get Windows user name - different methods

In .NET there appears to several ways to get the current Windows user name. three of which are: string name = WindowsIdentity.GetCurrent().Name; or string name = Thread.CurrentPrincipal.Identity.Name; or string name = Environment.UserName; What's the difference, and why choose one method over the other? Are there any other ways?...

require_once and include_once not resolving files correctly.

Am having problems with PHP's require_once, require, include_once and include functions not correctly resolving a file. I am running PHP 5.3.1 on Windows Vista with Apache 2.2.11. These are the problems I am getting: file_exists('C:/wamp/www/park_factor_network/system/application/shared/config/language.php') returns TRUE is_readable...

C++ REG_SZ to char* and Reading HKLM without Elevated Permissions

So I've been trying to get a REG_SZ value out of the registry and store it as a char*. After looking around the internet this is what I came up with. The problem is that the value I get is not what is stored in the registry, I get a bunch of random garbage. How would I correctly get the value? HKEY hKey; char value[256]; // Open the key...

CoffeeScript on Windows?

How can I try CoffeeScript on Windows? The installation instructions are only for *nix: http://jashkenas.github.com/coffee-script/#installation EDIT: I don't think I need node.js -- I am just writing javascript for web pages, (using some jQuery, etc)...So all I really want is simple way to write CoffeeScript and "compile" it down to J...