windows

How to scan the wireless devices which exist on the network

Now my team working in a network project using windows application c#. How to scan the wireless devices which exist on the network.The functionality is exactly the same thing that you see in the existing windows utilities within the windows operating system. I'm sure you experienced when you plug a wireless laptop card in, it brings up...

C# way to convert char into 8x8 binary

Hi guys, Can you help me look for a way to convert char into 8x8 binary (am not sure how to call it) like for example an "A" 00011000 00100100 00100100 01000010 01111110 10000001 10000001 10000001 am actually doing this manually :( suggestions are still open :D EDIT: Anyway, if you guys are wondering what am trying to do. Am try...

How do I sign my certificate using the root certificate

I am using certificate based authentication between my server and client. I have generated Root Certificate. My client at the time of installation will generate a new Certificate and use the Root Certificate to sign it. I need to use Windows API. Cannot use any windows tools like makecert. Till now I have been able to Install the Root c...

How to disable that an MFC application exits on pressing ESC or ALTF+F4?

Hi! I have an MFC application, which i don't want to be closed during the running. I have disabled the "X" icon in the right upper corner, but now if i press the ESC key, or ALT+F4 it still closes. How can i disable this, so it won't close, if someone press those keys? After the program has finished running i want to reenable them. T...

How do I get rid of broadcast routing entries to the link-local (169.254.x.x) address range in Windows 7? These cause UDP broadcast problems.

I've been having problems with a third-party application that uses UDP broadcasts to configure some propitiatory networked hardware and I think I've worked out what's going on. It seems that all outgoing broadcast packets are being lost because of bunch of entries in my routing table that route broadcast packets to a non-existent link-lo...

Can safearrays take, and marshall, user defined types?

I would like to move fairly complex types from the managed to native world and visa versa. Currently this is being done by creating multidimensional safearrays, which has the advantage that marshalling is done for you, but means we end up with rather complex jagged arrays to get our heads around. I have tried to put some structs into S...

Date/time conversion problem if moment is exactly at end of wintertime (non-DST)

In my application I need to calculate shifts using a pattern described in a file. Recently, at one of my customers the application was hanging because of the following reason: If you fill in a 'struct tm' with the exact moment at the end of the wintertime (non-DST) _mktime seems to return an incorrect result. The code looks like this: ...

Windows Login Integration

Hi Peeps. I am building facial recognition software for a certain purpose, however, as a spin-off i would like to use that same software / concept, to automatically recognize me when i sit in front of the PC, and log me in. recognition is handled.. however, i need to incorporate this into windows, the same way fingerprint logins work. ...

Get first record from WMI ExecQuery

I have a simple vbscript for retrieving Windows version: Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Set colVersions = objWMI.ExecQuery("Select * from Win32_OperatingSystem") For Each objVer in colVersions ver = objVer.Version Next Is is possible to get the first record or do I have to loop o...

How do i emulate a storage card in Windows Mobile 6?

I have seen in many programs such as FreeOTFE that they can emulate a storage card in WinMo. It will be shown in Windows Mobile just as a storage card is inserted and i can interact with it just like a SD Card. How do i implement that? Any tips/tricks/guides/samples? I am using WinMo 6 Professional with Dot Net Framework :) I know i ...

How to programatically retrieve the "Location" as displayed in the Regional and Language Settings?

Hi, How can I programatically retrieve the "Location" as displayed in the Regional and Language Settings? ...

Installing a python module on windows

Hi, so i tried asking this question before but i seemed to word it wrongly I am trying to install a module called Swish-E 0.5 and for some reason im getting an error when running the command python setup.py install i keep getting this error no matter what module i try to install. Ive tried installing other modules to see if the prob...

Javascript on different platforms

I've got a simple js script that scrolls image horizontaly. the strange thing is, it loads CPU up to 100% on windows, while on linux the CPU load rarely reaches 20% on the same computer. I've tested this in firefox, chrome and opera on both platforms — results are practically the same. Can someone explain what's going on? <script> v...

how to pass HTML DOM for windows sidebar?

I am trying to play multiple videos one after the other in windows sidebar. I'm using javascript setInterval method to change the video. But windows sidebar doesn't parse javascript. Can anyone help me, please. ...

Launching Windows Explorer from ANT?

Is there any way of launching Windows Explorer from ant without stopping the build? Here is what I have so far: <project default="default"> <target name="default"> <fail unless="customerName"> You need to set the customerName. -DcustomerName=Value </fail> <fail unless="htmlCode"> You need to set the htmlCode. -Dcusto...

How to change the default font for a windows unicode locale / language

Hi, When I select a language from the language toolbar, windows automatically changes the input font to one with characters from that language. Is there are a way to change the default font to something else? Thank you for your help ...

How to have memfun with two parameters

Hi, I want to use this function "EnumWindows(EnumWindowsProc, NULL);". The EnumWindowsProc is a Callback function: BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam); For this callback I want to use a member function of a class. e.g: Class MyClass { BOOL CALLBACK My_EnumWindowsProc(HWND hwnd, LPARAM lParam); void ...

Window shell script return codes

Is there a standard set of return code for Window shell scripts (*.bat files)? I'm looking for something analogous to Linux exit codes, where 0==success and non-zero==failure. I need a way to programmatically check if my shell script failed during execution. ...

Directory printing tool?

I have a very complex web app project I want to re-structure. Naturally, it consists of a considerable number of folders and sub-folders. I have a huge piece of paper ready to sketch a new structure on. Now, I need paper printouts of the projects. Some directories I need in full detail including their files - the /library directory for ...

%windir% in Python?

How can I do something like if sys.argv[0] != '%windir%\\blabla.exe' I'm having no success at all ...