winapi

Win32 C++ SetLayeredWindowAttributes is either fully opaque or fully transparent; nothing in between

好久不见. 提交于 2021-02-07 10:20:57
问题 So I have a 2nd Window created within my program like: #define WINDOW_CLASS_NAME "WINCLASSFULL" WNDCLASSEX winclass; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } some function { HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(NULL); // first fill in the window class stucture winclass

SendMessage TreeView TVM_GETITEM crashes that process

谁说我不能喝 提交于 2021-02-07 10:19:18
问题 I am trying to access a TreeView running in another process. Many of the tree view messages work correctly. However, trying to use the TVM_GETITEM causes that other process to crash. The code below is a simple program that illustrates the crash. To get it to run, you will need some CHM help file. I'm using a CHM help file because hh.exe uses a TreeView control for the table of contents. The goal is to be able to get the a tree node's text. using System; using System.Collections; using System

SendMessage TreeView TVM_GETITEM crashes that process

孤者浪人 提交于 2021-02-07 10:18:26
问题 I am trying to access a TreeView running in another process. Many of the tree view messages work correctly. However, trying to use the TVM_GETITEM causes that other process to crash. The code below is a simple program that illustrates the crash. To get it to run, you will need some CHM help file. I'm using a CHM help file because hh.exe uses a TreeView control for the table of contents. The goal is to be able to get the a tree node's text. using System; using System.Collections; using System

SendMessage TreeView TVM_GETITEM crashes that process

此生再无相见时 提交于 2021-02-07 10:18:07
问题 I am trying to access a TreeView running in another process. Many of the tree view messages work correctly. However, trying to use the TVM_GETITEM causes that other process to crash. The code below is a simple program that illustrates the crash. To get it to run, you will need some CHM help file. I'm using a CHM help file because hh.exe uses a TreeView control for the table of contents. The goal is to be able to get the a tree node's text. using System; using System.Collections; using System

Win32 support on Windows 10

丶灬走出姿态 提交于 2021-02-07 10:11:32
问题 Does Windows 10 support running older Win32 (MFC, ATL, Visual Basic 6) applications on ARM processors? Does it require some form of emulation or conversion? 回答1: There's no x86 Win32 emulation at all. You need to use a toolset designed for the platform. 回答2: As with 7/8.1 Windows has leaned further and further into the Net way of doing things. So many of the commandline functions are done through net calls. Also note that Win10 is pretty much Win NT, it is basically what Win98 should have

Win32 support on Windows 10

孤人 提交于 2021-02-07 10:09:56
问题 Does Windows 10 support running older Win32 (MFC, ATL, Visual Basic 6) applications on ARM processors? Does it require some form of emulation or conversion? 回答1: There's no x86 Win32 emulation at all. You need to use a toolset designed for the platform. 回答2: As with 7/8.1 Windows has leaned further and further into the Net way of doing things. So many of the commandline functions are done through net calls. Also note that Win10 is pretty much Win NT, it is basically what Win98 should have

Win32 support on Windows 10

只谈情不闲聊 提交于 2021-02-07 10:07:30
问题 Does Windows 10 support running older Win32 (MFC, ATL, Visual Basic 6) applications on ARM processors? Does it require some form of emulation or conversion? 回答1: There's no x86 Win32 emulation at all. You need to use a toolset designed for the platform. 回答2: As with 7/8.1 Windows has leaned further and further into the Net way of doing things. So many of the commandline functions are done through net calls. Also note that Win10 is pretty much Win NT, it is basically what Win98 should have

Win32 support on Windows 10

给你一囗甜甜゛ 提交于 2021-02-07 10:06:22
问题 Does Windows 10 support running older Win32 (MFC, ATL, Visual Basic 6) applications on ARM processors? Does it require some form of emulation or conversion? 回答1: There's no x86 Win32 emulation at all. You need to use a toolset designed for the platform. 回答2: As with 7/8.1 Windows has leaned further and further into the Net way of doing things. So many of the commandline functions are done through net calls. Also note that Win10 is pretty much Win NT, it is basically what Win98 should have

Win32 support on Windows 10

≡放荡痞女 提交于 2021-02-07 10:05:02
问题 Does Windows 10 support running older Win32 (MFC, ATL, Visual Basic 6) applications on ARM processors? Does it require some form of emulation or conversion? 回答1: There's no x86 Win32 emulation at all. You need to use a toolset designed for the platform. 回答2: As with 7/8.1 Windows has leaned further and further into the Net way of doing things. So many of the commandline functions are done through net calls. Also note that Win10 is pretty much Win NT, it is basically what Win98 should have

How to get window station for a given process?

梦想的初衷 提交于 2021-02-07 09:58:45
问题 Say, if I have a process ID or its handle, can I get the window station that the process runs under? 回答1: Not straight forward, but try this: Call EnumWindowStations() to enumerate available window stations in the same Session as the calling process (if you need to query a process in another Session then this will not work). For each window station, call EnumDesktops() to enumerate its desktops. For each desktop, call EnumDesktopWindows() to enumerate its top-level windows. For each window,