Routine to check if a given date is summertime or wintertime
Do you know if an API exists for that checking? ...
Do you know if an API exists for that checking? ...
I need also to be able to control its volume. Also, how do I control system sound volume, to detect low volume, or mute states ? ...
I have some VB code which makes use of a COM api and results in a certain dialog box popping up on the screen. My program is a console application, that needs to run in a batch file, but I haven't found any other way to do things other than finding a way to automatically manipulate the dialog box. Here is the api call (omitting setup co...
I've got some old VB6 code part of which enumerates the running processes on the machine via a call to CreateToolhelpSnapshot. I'm attempting to run this code on Win 2003 R2 and I have reason to be a little suspicious of the list of processes that it's returning. I found this article which leads me to think I might need to use a differ...
I'm looking the way to build an AddIn for Outlook with Python that add a button to the toolbar that has a behavior (doesn't matter). I've searched around and didn't found anything. The only things I've found are backend, no GUI. thanks! ...
I hava a Java program that needs to monitor a directory tree for changes. I have JNI code that uses ReadDirectoryChangesW(). The directory is opened like: HANDLE dirHandle = CreateFile( path, FILE_LIST_DIRECTORY, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL ); and then I pass dirH...
What set of Windows API calls will allow downloading a web resource (specifically an XML document) when the site is protected using Digest authentication without having to enter a username and password? I can use MSXML's “open” function on the IXMLHTTPRequest interface, but it requires a username and password to be supplied even thoug...
I am trying to make a window that alternates between having an Aero/Glass and a custom rendered frame (by handling WM_NCPAINT) based on a user setting. (Windows Vista). DwmComposition is enabled. My app comes up with the glass frame, but as soon as I toggle the setting to trigger the custom WM_NCPAINT codepath then toggle back to use De...
I'm trying to use IE8 through COM to access a secured site (namely, SourceForge), in Python. Here is the script: from win32com.client import gencache from win32com.client import Dispatch import pythoncom gencache.EnsureModule('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}', 0, 1, 1) class SourceForge(object): def __init__(self, baseURL=...
I'm trying to make a pop up message box with "Hello World" written on it. I started off with File>New Project>Visual C++>CLR>Windows Form Application Then I dragged a button from the toolbox onto the form, double clicked it entered private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { MessageBox("Hello Wo...
I'm very new to programming, and I'd like to write a Windows Application. So far I've read Teach Yourself C in 24 Hours, what should I do (tutorial to read) next to accomplish my goal? Thanks ...
Is there any fundamental differences in the WinAPI/Win32? Is there any additional knowledge required to take advantage of new OS features? Are there any pitfalls which someone who's coded Win32 apps in the past might fall in? I'm not talking about Silverlight, that's a whole different ball of wax. (I don't have the VS that supports th...
Is there a difference between compiling projects in *nix enviroments and MS Visual C++? For example, there is a "stdafx.h" file in Visual C++. The reason I'm asking is that I submitted a piece of code which compiled in g++, to refactormycode.com. Then after it got a refactoring, it seemed to include a "stdafx.h", so I figured I'll down...
I have tried a lot of code over the year but nothing work 100% I just need to be able to put an image as the background of my main form, and be able to tile it. I am using DELPHI 2007. ...
Is there any way to automatically remove a NotifyIcon in the event of a crash? (I know you can mouse-over to remove it) I'm running windows xp. ...
I need to detect whether a given .dll or .exe file is 32 bit or 64 bit At the moment I have only one solution: read the PE Header from the specified file and take the 'Machine' field from there. ( Specification: Microsoft Portable Executable and Common Object File Format Specification (.docx file) at section "3.3. COFF File Header (Obj...
In a Win32 API C++ project, I have a dialog with a tab control (3 tabs) and 3 dialogs that are children of the tab control. I load the main dialog with tab control using DialogBoxParam, and the child dialogs from resources with CreateDialogParam. The main dialog appears with the child dialogs. Clicking the tabs shows/hides the correct...
Are there any alternatives to LogonUser and for impersonating given account in order to access network resources? I'm looking for the method of impersonation which would let me connect to machine in foreign domains (or, workgroup machines for the same matter). For initial data I have: machine name, username (or domain\username), cleart...
I want to use API functions to set focus on one window under Windows (XP , Vista , 7 (whatever , any version who support .NET 3.0 or later)). So that when you press a key , the OS changes focus to another window. Thanks P.S: If you know any class in .NET 2.0 (or later) with which I can develop this solution I'd like you to tell me abou...
I would like to have a DLL with window creation and management code in a way that the developer could just add a named main.h header and load the DLL to be able to instance a window. #include "dllheader.h" void user_main(); main = user_main; // attach user main to the dll callback int user_main() { Window *w = new Window(); } ...