windows

C# Windows applications

I am developing a project in C# Windows applications(win form) in that I need to create a function to change the back color for all the buttons that are in the single Win Form using button mouse over event ...

How many time any exe run in windows

Hello, In windows os, how can i get count of execute any application? ...

How to determine whether a System.Diagnostics.Process is 32 or 64 bit?

I tried: process.MainModule.FileName.Contains("x86") But it threw an exception for a x64 process: Win32Exception: Only a part of the ReadProcessMemory ou WriteProcessMemory request finished ...

Launch a winform application from a windows service

Hi, Please let me know how do I run the app under current logged in user from the service. To give you background, I have a VB.NET Windows service whose sole functionality is to run a Winform App at a specified time. Apart from that it also sets a system wakeup timer so that the system can be woken up at the specified time, if it goes ...

how do I make my application as fast as windows explorer for rendering files.

I have a folder with a large amount of files inside of it. I want to be able to render each of my files as a button. And when I click on the button something will happen. private void Form1_Load(object sender, EventArgs e) { int x = 10; int y = 10; /// Process the list of files found in the directory. ...

Running JAVA on Windows Intel vs Solaris Sparc (T1000)

Hi I'm trying to test my JAVA app on Solaris Sparc and I'm getting some weird behavior. I'm not looking for flame wars. I just curious to know what is is happening or what is wrong... I'm running the same JAR on Intel and on the T1000 and while on the Windows machine I'm able to get 100% (Performance monitor) cpu utilisation on the Sola...

How to get logonserver name in AD domain programatically

A host which part of Active directory domain does authentication from the logon server (domain controller). LOGONSERVER env var has its value. C:>echo %LOGONSERVER% \PUN5OPSDIRPIN01 Is there any API using which I can retrieve this value? ...

Can I hook functions in linked libraries?

Using EasyHook I have successfully hooked both exported functions and known vtable functions for various C++ classes. In all these cases target programs have used DLLs. Provided I know the address of a function's entry point, is it possible to do the same when a library has been linked into the target program as opposed to being a separ...

GlobalAddAtom() returns 0 and GetLastError = 0x5 on Win7, works on XP

Simple code: ATOM atom = GlobalAddAtom(L"TestCpp1"); It returns 0 and GetLastError returns 0x5 (Access Denied). Nothing on MSDN about it. This is on Win7. Admin rights make no difference. Same code works on XP. AddAtom (local) works on Win7. What's causing this? ...

How to discover the method that is called by a Windows Context Menu item?

When you click the right mouse button on your clean desktop it opens a context menu. Each item there is a call to a method. To programmatically call those methods, first I need to know which one I want. IIRC there is a tool that helps with that, but I can't remember its name. ...

PHP not recognized on Windows

Hello there, I am trying to install symfony php framework. I am working with windows. My apache & php stuff is under C:\wamp The framework is under C:\dev\ I am trying to do something like this in ms-dos: c:\> php lib\vendor\symfony\data\bin\symfony -V The php command isnt recognized. I suppose this is a pretty simple issue, but ...

How to display utf-8 in windows console

I'm using Python 2.6 on Windows 7 I borrowed some code from here: http://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console My goal is to be able to display uft-8 strings in the windows console. Apparantly in python 2.6, the sys.setdefaultencoding() is no longer supported However, I wrote reload(sys) ...

How can I automate login on Windows Live using Ruby?

For hi5 there is a way to validate email addresses by importing your contacts from a hotmail account. I want to try and automate this task but am running into trouble. Steps to get to form page. Create hotmail email account. Using hotmail email, make a new hi5 account. After creating an account do not add photo, but navigate to home ...

.NET authorizing Windows Authentication

hi, I have this page http://www.mareez.com.sa/Camera1.htm. It asks for the windows username & password. I want to hide this username & password, and I want to pass it to the camera server in my code (i.e. not visible to the website visitor). ...

PyGTK: Parent window wait until child window is showed

Hi, I'm learning PyGTK and I have a parent window and a child window. Inside of a parent window's method, i create the child window and then I refresh a treeview... something like that: def add_user(self, widget, data = None): save_user.SaveUser(self.window) self.load_tree_view() But, when it's running, the child window appear...

Process Memory Map (Linux Windows)

Can someone please point me to some documentation on the virtual memory maps used for Linux and Windows. By that I mean what virtual addresses, code, writable static data, the stack and the heap (along with other kernel bits) will normally be placed in, in a typical process? ...

How to prevent CVS from converting line endings?

Like many other people we're having line ending issues with CVS. However, unlike most our problem is the opposite. Is there a way to force CVS to not convert lines from /n to CR/LF. I would like the line endings to remain in the Unix format even if I checkout to a Windows machine. Is that even possible? The problem: the conversion of t...

Using SSPI to get SSO from Java application running on Windows

I have a Java application running on Windows that needs to authenticate to a webapp using Kerberos/SPNEGO. I'm aware of how to configure JAAS to achieve this, but I find the Java (JDK6 and JDK7beta) Kerberos implementation to be lacking a couple important features I need. For example, support for referrals or using the DNS to figure ou...

Why does Windows Search query return DBNull for long non-empty string properties?

I have created a Windows Search string custom property that shows up fine as a column in Windows Explorer. In C# I issue the following SQL query: SELECT System.ItemPathDisplay, System.ItemName, My.Custom.Property FROM SystemIndex WHERE CONTAINS(My.CustomProperty, 'blah') The resulting OleDbDataReader correctly returns a list of the fi...

Windows file attributes / version of file

I know for dll files you can read an Assembly version, but I was wondering if there's some way to mark or read versions from ANY filetype (jpg for example). I'm making an update program that only updates what's necessary and it'd be better if all files were versioned instead of keeping track of versions in a separate file. Oh and this i...