Tags "winapi" Result

Enable/disable ClearType in Windows7

Hi I need to enable/disable Cleartype (or "Adjust the appearance and performance of Windows > Smooth edges of screen fonts") via cmd (or any script like VBS/JS) or from registry without log off or windows restart. May be it's possible enable ClearType only for one application Thanks Solution The modern way of scripting under Windows is using Pow

it1352 32 2019-05-14

Move a file, AX2012

I'm trying to move a file, nothing clever. The problem I am having is explained in the AX WONDERS blog. The reason for this is that when using an AX class that runs on the server, the exception never comes back to the client and therefore cannot be handled correctly.... the operation will not fall into the Exception::CRLError exception If

it1352 0 2020-10-27

what does WINAPI stand for

I've started to learn Win32 API in C. I saw that the main function is something like int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { .. } but I know that a function in C is like [ReturnType] [FunctionName] (Args) { .. } In this case the return type is int and the function name is WinMain. So

it1352 1 2019-05-08

How to get name of active window?

I've confronted with problem of getting active window's name. When I use this code: HWND currentWindowHWND = GetForegroundWindow(); char title[100]; GetWindowTextA(currentWindowHWND, title, 100); I get something like: "How to get active window's name? - Stack Overflow - Google Chrome". But I want to get "Google Chrome", which WINAPI function s

it1352 1 2019-05-10

Unique File Identifier

Possible Duplicate: Unique file identifier in windows I need to retrieve a unique identifier for certain files on the computer, and have only came across the Win32 GetFileInformationByHandle function. How can I accomplish this with the. NET framework? Update: I need a persistent id that will not change if the file is moved, updated, ren

it1352 11 2019-05-06

What does "WINAPI" in main function mean?

Could you please explain to me the WINAPI word in the WinMain() function? In the simplest way.. #include <windows.h> int -->WINAPI<-- WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; } Is it just some Windows funk

it1352 3 2019-05-09