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...
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.
...
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\...
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...
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 "...
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...
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...
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
...
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...
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...
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-...
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...
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 ...
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...
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
...
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 ...
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...
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...
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 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...