logo
down
shadow

WINAPI QUESTIONS

Where is a good place to start programming GUIs for windows?
Where is a good place to start programming GUIs for windows?
I wish this helpful for you This is a rather broad question, as programming GUI applications in Windows can be done in so many ways.There are two main parts to developing any GUI app: the language and the API/framework. Considering you're interested
TAG : winapi
Date : January 22 2021, 04:47 PM , By : user152423
Questions regarding GetWindowPlacement return data
Questions regarding GetWindowPlacement return data
wish help you to fix your issue The meaning of the showCmd member of the WINDOWPLACEMENT struct is a bit confusing because Win32 is reusing the SW_* commands used by ShowWindow().Luckily, the meaning is documented on the GetWindowPlacement() function
TAG : winapi
Date : January 02 2021, 06:48 AM , By : chawei
RoundRect on Transparent background?
RoundRect on Transparent background?
I think the issue was by ths following , Windows by default are rectangles. When you paint them you have to paint a whole rectangle. That said, there are at least three ways to owner draw a button as a round rectangle:The easy way: Paint the area out
TAG : winapi
Date : January 02 2021, 06:48 AM , By : iyogee
Console application fails to create child process when executed at startup
Console application fails to create child process when executed at startup
it should still fix some issue The working directory of applications executed by the Run key is an implementation detail and you are not specifying a path to Manager.exe so ShellExecuteA can't find the file.Specify a full path to Manager.exe. You can
TAG : winapi
Date : January 02 2021, 06:48 AM , By : Sebastián Ucedo
FindFirstFile(Ex) wildcard characters
FindFirstFile(Ex) wildcard characters
it helps some times There are actually five wildcard characters on Windows (from http://www.osronline.com/showThread.cfm?link=36720): * = "match zero or more characters" ? = "match one character" < = "match zero or more characters using MS-DOS semant
TAG : winapi
Date : January 02 2021, 06:48 AM , By : mhedberg
How to set foreground Window from Powershell event subscriber action
How to set foreground Window from Powershell event subscriber action
Hope this helps I have a FileSystemWatcher instance running in the background of my PoSh session watching for changes to text files. A PoSh event subscriber is attached to this event and, when fired, it launches a console program by calling Start-Pro
TAG : winapi
Date : January 02 2021, 06:48 AM , By : usingtechnology
Get the selected file in an Explorer window
Get the selected file in an Explorer window
To fix the issue you can do So after some more creative Google Searching, I found a method using the ShellWindows class from ShDocVW.dll
TAG : winapi
Date : January 02 2021, 06:48 AM , By : BinaryBoy
Win32 textBox in treeview
Win32 textBox in treeview
seems to work fine The native TreeView control isn't going to be helpful at all to make this work. Programming one yourself is a tricky proposition. It is however a very popular UI gadget. Any component vendor sells one, invariably called "TreeList".
TAG : winapi
Date : January 02 2021, 06:48 AM , By : Paolo
Restart a windows 7 machine programmatically
Restart a windows 7 machine programmatically
may help you . You can call ExitWindowsEx to restart, shutdown, logoff, etc.Use InitiateShutdown (Vista) or InitiateSystemShutdownEx (Win2k or higher) to shutdown a computer remotely.
TAG : winapi
Date : January 02 2021, 06:48 AM , By : Tom D
Write the resource-definition in the .h/.cpp file is allowed?
Write the resource-definition in the .h/.cpp file is allowed?
should help you out Yes it is possible. The Microsoft resource compiler has a basic C pre-processor and it defines a macro you can check for.
TAG : winapi
Date : December 23 2020, 07:01 PM , By : yatil
Win32 PKCS#7 Low Level Message Functions to use specific content
Win32 PKCS#7 Low Level Message Functions to use specific content
will help you The (inner) content type of the message is the 5th parameter to CryptMsgOpenToEncode (pszInnerContentObjID).It should accept any ASCII dotted decimal OID value as input, including the predefined value for the OID you mentioned (SPC_INDI
TAG : winapi
Date : December 15 2020, 09:28 AM , By : LucaN
Compose new 32bit bitmap with alpha channel from other 32bit bitmaps
Compose new 32bit bitmap with alpha channel from other 32bit bitmaps
seems to work fine I found the following solution that fits best for me. I Create a new target bitmap with CreateDIBSection I prefill the new bitmap with fully transparent pixels. (FillMemory/ZeroMemory) I Receive the Pixel that needs to be copied wi
TAG : winapi
Date : November 14 2020, 05:16 PM , By : KL.
XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'Microsoft.Win32.Registry.dll'
XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'Microsoft.Win32.Registry.dll'
I think the issue was by ths following , I was struggling with the same issue earlier and just managed to fix it by removing the .vs folder from the solution folder.
TAG : winapi
Date : November 13 2020, 03:01 PM , By : Mike
How can constants WM_IME_COMPOSITION and WM_IME_KEYLAST have the same value
How can constants WM_IME_COMPOSITION and WM_IME_KEYLAST have the same value
To fix the issue you can do WM_IME_KEYLAST is not a message identifier. It is a symbolic constant that marks the end of the WM_IME_* range of messages1. You see this pattern throughout the Windows SDK, e.g. there are WM_KEYFIRST and WM_KEYLAST symbol
TAG : winapi
Date : November 06 2020, 03:01 PM , By : billputer
How can I measure the width of the caption bar available for text?
How can I measure the width of the caption bar available for text?
like below fixes the issue As andlabs said in the comments, the WM_GETTITLEBARINFOEX message can be used to obtain the required information. This message can be sent to the window and the TITLEBARINFOEX struct is populated with the state and location
TAG : winapi
Date : October 31 2020, 01:47 PM , By : user109285
Mixing Win32 SEH with heap-allocated stack frames
Mixing Win32 SEH with heap-allocated stack frames
I hope this helps . Fibers were specifically added to Win32 to support this. Start reading here... Check this cautionary blog post as well.
TAG : winapi
Date : October 19 2020, 11:12 PM , By : zdyne
Is there any way to trace through the execution of a batch file?
Is there any way to trace through the execution of a batch file?
wish help you to fix your issue You can just look inside them and figure out what they do.You can also remove any echo off statements and @ preceding commands; that way every command is output before it's run and you can redirect the output to a file
TAG : winapi
Date : October 18 2020, 11:12 PM , By : John Bentley
Windows Game Loop 50% CPU on Dual Core
Windows Game Loop 50% CPU on Dual Core
help you fix your problem Classic busy/wait loop. Your CPU is busily checking (and rechecking ad infinitum) for messages. You need to wait for messages in a blocking way or, more likely, use a timer that periodically wakes up your game thread so it c
TAG : winapi
Date : October 18 2020, 11:12 PM , By : Pierre LeBoo
how check mdi child already running?
how check mdi child already running?
it helps some times I use the following technique, but it requires a specific Sub for each Form type(I'm using VB.NET). However I'm sure there could be a way to simplify this to handle all child forms with one sub
TAG : winapi
Date : October 18 2020, 11:12 AM , By : Hibame
Programmatically toggling off the Windows Virtual Touchpad / Trackpad
Programmatically toggling off the Windows Virtual Touchpad / Trackpad
I hope this helps . Here's a C++ working code sample for toggling the touchpad open, the closed for anyone interested. I believe you need a touch-enabled display for the touchpad to actually come up. I've been unable to get it working on my touchless
TAG : winapi
Date : October 16 2020, 03:08 PM , By : Killercode
Using Win32-Ada bindings: SNMP
Using Win32-Ada bindings: SNMP
help you fix your problem Unfortunately, I cannot create a minimal working example to test the code, so I cannot guarantee that the code below will actually work:test.adb
TAG : winapi
Date : October 09 2020, 08:00 AM , By : PaulPlum
How to launch Windows Explorer with a custom Search Result
How to launch Windows Explorer with a custom Search Result
wish of those help The Explorer saved search format (.search-ms) is documented on MSDN. The only downside is that it will perform the actual search when you open it, it does not contain a list of paths of files found.If this is unacceptable then you
TAG : winapi
Date : October 08 2020, 04:00 AM , By : JSebok
What is the use-case for TryEnterCriticalSection?
What is the use-case for TryEnterCriticalSection?
I wish this help you As an example you might have multiple threads that each produce a high volume of messages (events of some sort) that all need to go on a shared queue.Since there's going to be frequent contention on the lock on the shared queue,
TAG : winapi
Date : October 08 2020, 01:00 AM , By : Kenny
Win32 programming and char type as UTF-8
Win32 programming and char type as UTF-8
it should still fix some issue Windows 10 (build 17035 and later) supports setting the active codepage of the system locale to UTF-8 ("Use Unicode UTF-8 for worldwide language support"). If you cannot rely on a user configuring this on machines where
TAG : winapi
Date : October 07 2020, 06:00 AM , By : Novi Indrayani
NASM Assembly Pe32 - What is the Optional Header Data Directory value
NASM Assembly Pe32 - What is the Optional Header Data Directory value
it fixes the issue It is an array of IMAGE_DATA_DIRECTORY structs. MSDN tells you what the struct looks like:
TAG : winapi
Date : October 05 2020, 06:00 PM , By : Robert MacGregor
How to determine cursor visibility for a thread in Win32?
How to determine cursor visibility for a thread in Win32?
wish help you to fix your issue Each thread have their own cursor count that is incremented/decremented by ShowCursor calls. Is there a way to query that counter to determine if the cursor is currently visible? , You can test for cursor visibility di
TAG : winapi
Date : October 05 2020, 08:00 AM , By : Ricardo
Is CreateThread() a "synchronization point"?
Is CreateThread() a "synchronization point"?
With these it helps internally with thread will be associated some structure, where os store thread data. this is for any os. what is CreateThread (or any analog function) is doing ? it first create and initialize this structure and then push it in s
TAG : winapi
Date : October 02 2020, 02:00 AM , By : Andrew Bailey
Nasm - Faulty win32n.inc doesn't reserve space for arrays in struct definitions?
Nasm - Faulty win32n.inc doesn't reserve space for arrays in struct definitions?
Does that help Your .inc file seems to have been generated by a tool that does not understand arrays.Replace .RegisterArea RESB 1 with .RegisterArea RESB 80.
TAG : winapi
Date : October 01 2020, 10:00 AM , By : Guyou
Rich Edit Control paints whole application black after unminimize
Rich Edit Control paints whole application black after unminimize
will help you This has nothing to do with Rich Edit Control , even if you delete all of the controls, this will happen.All you have to do is add a default color to the window background when you register the window.
TAG : winapi
Date : September 28 2020, 10:00 AM , By : Ohad Barzilay
How to change desktop background image on windows with c++?
How to change desktop background image on windows with c++?
will be helpful for those in need How to change the desktop background image on Windows? , You need to include the SPIF_UPDATEINIFILE flag:
TAG : winapi
Date : September 27 2020, 12:00 AM , By : gbodunski
From Raku/Perl6, how to read this registry key?
From Raku/Perl6, how to read this registry key?
help you fix your problem Here's what I have so far. I am able to successfully retrieve the handle for the registry key, but when I try to read the key it throws "Native call expected argument that references a native integer, but got P6int". And I d
TAG : winapi
Date : September 21 2020, 01:00 AM , By : Val
shadow
Privacy Policy - Terms - Contact Us © scrbit.com