
Should I define both _WIN32 and _WIN64 in 64bit build?
6 _WIN32:Defined for applications for Win32 and Win64. Always defined. _WIN64:Defined for applications for Win64. More detail: Predefined Macros . To put it simply, WIN32/_WIN32 is …
MinGW not defining WIN32, error in preprocessor directives
Try passing the -E -dM options to verify if your MinGW compiler is (or isn't) pre-defining the WIN32 macro. Note that strictly speaking, WIN32 should not be predefined by the compiler …
How can I uninstall an application using PowerShell?
Is there a simple way to hook into the standard 'Add or Remove Programs' functionality using PowerShell to uninstall an existing application? Or to check if the application is installed?
How do I get total physical memory size using PowerShell without …
(get-wmiobject -class "win32_physicalmemory" -namespace "root\CIMV2").Capacity This gives me the value: 8589934592 bytes So, not only is the total physical memory calculated from …
ssl - How to install OpenSSL in Windows 10? - Stack Overflow
I have a question about how and which version of OpenSSL I must install on Windows to later create certificates. I installed one version (openssl-1.0.2d-fips-2.0.10) found on SourceForge …
c++ - Platform detection in CMake - Stack Overflow
CMAKE_HOST_WIN32 is the variable that is set when compiling ON Windows. WIN32 is the variable that is set when compiling FOR a Windows target platform. So …
ImportError: No module named win32com.client - Stack Overflow
I am currently using python 2.7 and trying to open an Excel sheet. When using the code below: import os from win32com.client import Dispatch xlApp = …
How to list all properties of a PowerShell WMI object
Get-WmiObject -Class "Win32_computersystem" | Format-List * Get-WmiObject -Class "Win32_computersystem" | Format-List -Property * For certain objects, PowerShell provides a …
download windows API reference (MSDN) for offline use
Although it is now 17 years old, the Win32.hlp file from Microsoft is still a useful reference for those, like me, still programming using the "flat" Windows API. It still covers 99% of what I …
What does a Windows service type of 0x30 mean? - Stack Overflow
A Windows service of type WIN32_SHARE_PROCESS (0x20) runs as a thread in a process which it shares with other services. (Although, in recent Windows 10 builds, it may get its own …