windows

How assert logged user session ID by user name?

Using a process identifier, I can get the user identifier. Indeed, if the process is executed in the user environment, I can get the user session id... But how can I derive a Windows session ID by only user name? (Of course, if the user is not logged, no session id can be derived). My situation is the following: I have a service (sy...

wcf windows service interaction

I have a windows service in which i host a wcf service. What is the best approach to control the windows service via the wcf service? I already created the interfaces for the wcf service, but I have no idea how to interact with the windows service's classes and functions. ...

Can anyone decipher why these two conversions to unsigned long long give different results?

LARGE_INTEGER lpPerformanceCount, lpFrequency; QueryPerformanceCounter(&lpPerformanceCount); QueryPerformanceFrequency(&lpFrequency); (Count.QuadPart is a long long showing a CPU count) (Freq.QuadPart is a long long showing frequency of Count for a second) Attempting to print microseconds in real time. stable output: printf("%llu\...

Programatic launching of application on windows startup

Hi. I have a particular piece of software that i wish to load on windows startup. Under normal circumstances i would simply place a shortcut in the startup folder or an entry in the run key in the registry. Unfortunately and for an unknown reason this application throws a win32 execption whenever that is done - and i am assuming it is b...

LocalSystem vs. System vs. Local System Windows system accounts

I am completely confused by MS docs on Windows built-in accounts. SQL Server 2008 R2 online docs "Setting Up Windows Service Accounts" tells "Local System is a very high-privileged built-in account. It has extensive privileges on the local system and acts as the computer on the network. The actual name of the account is "...

Desktop Widget using PHP

Hi all, I need to create a desktop widget where the users wants to update their details from the desktop html file.i haved tried with ajax but the value getting stored in the database but the response cannot get back to html file,i have included the remote js file into the html file. Im using Windows OS, php 5, Xampp server. the sa...

Firefox plugin dll dependency on the filename

Hello all, my current work tasking requires creating a firefox plugin. I've done this relatively easily on Linux but porting to windows has exposed a peculiar problem. To do the port, I refactored the basic windows example given in the mozilla source tree. I did this operation slowly and methodically, testing as I went. Aside from the oc...

Weird character shown in windows uninstall diaglog while the air application is still running.

Is there somebody who can tell me how to set a proper error message when the user want to uninstall the air application while it is running. Now the windows uninstall screen show some weird characters. See image http://img197.imageshack.us/i/weirdcharactersairunins.png ...

script, bat to monitor if a user is locked in active directory Windows.

Hi, there is a method to implement this functionality for monitor an specific user in active directory to check if this is blocked.(And if this is locked , unlocked this user automatically) Is a common user, that get blocked frecuently. Or there is a possibilty for avoid the "3 tries for login and then lock" for this specific user. I...

Showing application still processing in C# windows form apps

I need to show some sort of animation, while windows form application is processing data till it gives a output. Ones the processing completes the animation will stop. There are great tools for this in Dev express for web based apps. But do we have anything similar in windows form applications? Thanks This is a windows form calling a s...

Whose Bug Is This - IE or Windows/.NET?

When I run this and then go into the task manager and manually end one of the iexplore instances (there are 2 presumably since IE now also uses multiple processes) I see an error pop-up box that says a tab has been recovered. However, iexplore itself is invisible because of my process settings. Accordingly, I don't think that that pop-...

What can be used to replace _mm_set_epi64x on 32-bit Windows?

I'm trying to compile some code that uses the intrinsic _mm_set_epi64x under Visual C++. This intrinsic is supported by VC but only when compiling for x86-64, not for x86-32. I assume this is not an actual limitation of the processor, because other compilers (GCC and Clang) support this intrinsic for both 32 and 64 bit compiles. My firs...

Use CreateWindow(Ex) to create a dummy parent control (like a panel)

So basically, I have a Tab Control (WC_TABCONTROL) and I want to place all of the controls that go with a single tab page on a single window (control, if you will, or panel). I want to create something like the panel in wxWidgets, so that when I call ShowWindow(panel, SW_HIDE), I can hide the panel and all controls inside it. I hope you ...

Suggest a good Windows API project for a system programmer.

Hello, I've been reading Windows System Programming (4th Edition) - 2010 for couple of months. I've finished it. I've referred to Windows Internals (5th Edition) when required. Now, I'm ready to do some solid real world project using purely Windows API. Kindly suggest a real world moderate sized project (which can involve processes, th...

How to run a windows scheduled task 20 mins after system startup?

In windows scheduled tasks properties, you can only choose "at system startup" without being able to assign a specific delay such as 20 minutes, so I wonder how can I setup a schedule task if I want it to run after the system "fully" starts up(you know how fast this can be in XP)? Hope you guys know the answer. Thanks ...

R inline compilation of C code fails on Windows

Within the Windows XP Pro RGui, can't compile inline C code. Get error: 'sh' is not recognized as an internal or external command Clearly there is a configuration error, but can't find a way to resolve it either in R documentation or via googling. Must be a simple solution! The same R code works fine on linux: the inline C compiles ...

Mime Types in the windows registry

Hello, In my windows service built with C# I am trying to set the mime types based on the file extensions as shown below static string GetMimeType(string fileName) { string mimeType = "application/unknown"; string ext = Path.GetExtension(fileName).ToLower(); Microsoft.Win32.RegistryKey regKe...

Redirect inside domain using IIS 6.0?

I'm currently using an index.html with a meta-redirect to forward clients from http:// www.example.com to http:// www.example.com/directory. After reading that this affects my SEO, with meta-redirects having been abused by spammers, I want to change this type of redirection. Is there a way to redirect from http:// www.example.com to ht...

SendMessage WM_LBUTTONDOWN/UP works on buttons but not window

I am trying to send some simple mouse down/up messages to Windows Calculator using SendMessage. I have been able to press the buttons by sending the messages to the buttons directly. However, I have not been able to successfully send the same messages to the main calculator window handle. Given that hWnd is the window handle to calculato...

What are some *slick* UI libraries/frameworks/tools for, non-MFC, Win32 C++ apps?

What is a really good Windows, C++, UI library, framework, or tool that will allow me to very simply and easily add a slick look & feel to my native C++ win32 application? Also; Slick means skinnable with window background images, fancy buttons, shadows, all that jazz. This is non-MFC Supporting Windows XP and beyond Royalty free lice...