2,793 questions with Windows development | Windows API - Win32 tags

Sort by: Updated
0 answers

algorithm provider in B- and N-Crypt

In BCrypt-functions and NCrypt-functions you often need an algorithm or storage provider (BCryptOpenAlgorithmProvider or NCryptOpenStorageProvider) to create/load a key. The question that I have is... can I use those keys after closing those providers?…

Windows development | Windows API - Win32
asked 2021-04-13T14:39:25.457+00:00
Rudolf Meier 291 Reputation points
commented 2021-04-14T09:12:05.47+00:00
Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
5 answers

Windows shutdown functions

Hello, I am not clear on the windows shut down function. I want the system to shutdown by closing all the apps (controlled shutdown). The function which is used in the code is ExitWindowsEx(EWX_FORCE | EWX_SHUTDOWN, 0); This does the shut down…

Windows development | Windows API - Win32
Windows for business | Windows Server | User experience | Other
Developer technologies | C++
asked 2021-04-09T10:03:41.937+00:00
AKR 21 Reputation points
commented 2021-04-13T09:01:45.643+00:00
Castorix31 90,686 Reputation points
2 answers One of the answers was accepted by the question author.

MS-DOS How to write simple task in batch program

Hello, I have to say that I am not interested in MS-DOS batch programming at all. I just want to execute a simple task like this: Show no messages or commands at all. FileName="abc.def" /* no path */ If FileName exists in…

Windows development | Windows API - Win32
asked 2021-04-11T23:29:40.967+00:00
Emmad Kareem 81 Reputation points
commented 2021-04-12T23:04:58.227+00:00
Emmad Kareem 81 Reputation points
1 answer One of the answers was accepted by the question author.

Copying ZIP files

I issue the DOS cmd "Copy C:\BackUp\ *1.zip C:\Temp" in a batch file. It is supposed to copy all of the .zip files that end with a "1". But it also copies a file named Music5.zip and does NOT copy Music4.zip So is it looking…

Windows development | Windows API - Win32
asked 2021-04-12T02:02:45.597+00:00
Fred Zuckerman 21 Reputation points
commented 2021-04-12T19:32:29.96+00:00
Gary Nebbett 6,216 Reputation points
2 answers

App Verifier Stop 00000900 using File Open Dialog

My C++/MFC program uses the CFileDialog class to retrieve a filename to open. If I comment out the DoModal() call, no Verifier Stops occur. If the dialog is opened (even if it is then simply Canceled), the stops are generated -- three in a row. So I…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-04-08T15:54:00.257+00:00
Dave Colter 1 Reputation point
commented 2021-04-12T13:39:51.897+00:00
Dave Colter 1 Reputation point
0 answers

Windows 10 File Cloud / Sync Provider API - TransferData problem

0 I am building upon the Cloud Mirror Sample and having a similar issue to this one Here is the test code involved: // When the client needs to fetch data from the cloud, this method will be called. // The FakeMirrorDataMover class does the…

Windows development | Windows API - Win32
asked 2021-04-12T08:32:47.617+00:00
miguel apop 6 Reputation points
1 answer

KB4601319 and GdipDeleteFontFamily

We have detected that since February Windows cumulative update (KB4601319), in gdiplus API, the GdipDeleteFontFamily function is more than 10 times slower than before. As a consequence, the GUIs using massively gdiplus with fontfamily are slowed down…

Windows development | Windows API - Win32
asked 2021-04-08T12:09:05.307+00:00
DAVID Nicolas 11 Reputation points
answered 2021-04-12T07:58:44.1+00:00
DAVID Nicolas 11 Reputation points
1 answer

find computer name/sid

I try to find the SID of a computer account in Active Directory. Why? Well, a service from one computer is calling a service on the other one and the files that are returned should be accessible only by the correct computer. That's why I want to set…

Windows development | Windows API - Win32
asked 2021-04-09T14:04:26.693+00:00
Rudolf Meier 291 Reputation points
answered 2021-04-09T21:37:12.027+00:00
Michael Taylor 60,346 Reputation points
4 answers One of the answers was accepted by the question author.

Kill Timer doesnot end the timer - WINAPI c++

Hallo, I have been working a application which communicates with the micro controller with com interface and send status request and receive the answer every few seconds. I used set timer for the same. When there is a change in status warning…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-04-08T11:36:32.547+00:00
AKR 21 Reputation points
accepted 2021-04-09T07:20:44.063+00:00
AKR 21 Reputation points
0 answers

DirectX 12 color banding ( FLOAT16 swapchain + fullscreen mode)

There is huge color banding in fullscreen mode when using swapchain buffer of _FLOAT format. Windowed mode is ok. could you please fix, HelloTriangle.zip demo attached. Thank you, E. in reference D3D12HelloTriangle demo change to: void…

Windows development | Windows API - Win32
asked 2021-04-05T22:38:55.667+00:00
e e 1 Reputation point
commented 2021-04-08T13:13:25.06+00:00
e e 1 Reputation point
0 answers

shell32.dll access

Hi... Little question about how this works... and why Visual Studio does this. When you open the shell32.dll from an application (e.g. your own), you get pretty much what you see in the explorer... same size, same everything... and when you copy this…

Windows development | Windows API - Win32
asked 2021-04-07T16:15:25.873+00:00
Rudolf Meier 291 Reputation points
commented 2021-04-08T11:35:19.943+00:00
Rudolf Meier 291 Reputation points
3 answers

detect Windows 10 edition

Hi... I'm developing a software, that can only run on Windows 10 or Server 2016/2019 and not on the Home edition of Windows 10... now. What's the official way that Microsoft suggests to use to detect if I'm running on the correct system? If possible,…

Windows development | Windows API - Win32
asked 2021-04-06T22:28:26.647+00:00
Rudolf Meier 291 Reputation points
commented 2021-04-08T08:55:44.297+00:00
Song Zhu - MSFT 906 Reputation points
0 answers

Can DPI awareness be set via manifest in a DLL COM class?

Hi, I'm creating a COM class within a DLL that's loaded out of process by DllSurrogate. I've been trying to set the DPI awareness using an application manifest, but none of the manifest DPI awareness examples I've found have worked. Is it impossible to…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-04-07T23:39:44.477+00:00
loop123123 1 Reputation point
commented 2021-04-08T03:29:52.62+00:00
Strive Sun-MSFT 426 Reputation points
0 answers

Remote Access to Windows Error Reporting Crash Logs?

I'm a Windows developer, and I've published a popular Win32 application. I understand that Windows Error Reporting may give me the ability to download crash logs that are automatically sent to Microsoft. However, after reading documentation on this, I…

Windows development | Windows API - Win32
asked 2021-04-06T02:04:49.19+00:00
Jonathan Taylor 1 Reputation point
commented 2021-04-07T23:57:55.163+00:00
Jonathan Taylor 1 Reputation point
0 answers

_stat and _utime synchronization

Hi, I'm working on a project regarding time, and I 'm trying to read/write time data from different processes. I'm thinking of using _stat/_utime to read/write time data, and I was wondering if anyone knew how _Stat and _utime manages synchronization. …

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-04-07T06:25:17.397+00:00
Daniel Choi 26 Reputation points
commented 2021-04-07T08:41:29.557+00:00
David Lowndes 4,726 Reputation points
0 answers

COM Singleton in terminal server

I have a COM singleton exe which is started as administrator. The exe is responsible to launch another exe (COM exe) with UserName (in task manager) same as the user requesting to launch the exe. This works fine in remote desktop services but in terminal…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-03-22T08:18:37.737+00:00
Anshul Mittal 201 Reputation points
commented 2021-04-06T13:55:20.817+00:00
Anshul Mittal 201 Reputation points
0 answers

Cannot decrypt Unicode password, passed from RDP (need plain password for credential provider)

Just repeating question here - as suggested. Issue with CredIsProtected API When RDP passes the password to destination PC it is in protected form, something like "@@D...." We are using following code in order to get plain text password…

Windows development | Windows API - Win32
asked 2021-04-05T19:17:30.567+00:00
Alex Danilov 6 Reputation points
commented 2021-04-05T19:54:08.973+00:00
Viorel 122.9K Reputation points
0 answers

Have Media Foundation's AAC decoder sample rate limits changed?

[The Media Foundation docs specify][1] that the maximum sample rate supported by the Media Foundation AAC decoder is 48k. However, I've been testing passing files with higher sample rates such as 96k and these files are decoded on my up to date Windows…

Windows development | Windows API - Win32
asked 2021-03-17T20:55:25.903+00:00
Bryce Van Dyk 1 Reputation point
commented 2021-04-05T14:24:57.427+00:00
Bryce Van Dyk 1 Reputation point
1 answer One of the answers was accepted by the question author.

GDI bitmap printing got broken sometime after Feb 2021?

Hello, Sometime after Feb 2021, Win GDI using PlgBlt (or BitBlt) no longer prints bitmap images. This is for different PC's and using Print to PDF as well as with a real printer. I know the code has worked for many years and has not changed, here the…

Windows development | Windows API - Win32
asked 2021-04-03T07:24:45.763+00:00
Peter Koller 21 Reputation points
accepted 2021-04-03T12:12:13.443+00:00
Peter Koller 21 Reputation points
1 answer

WIN feature updates fail on VDI

Hi, Can you please help me with a reason as why the feature updates are failing? This is a VDI machine, but on a laptop and other machines this worked OK. this is going WUfB and I have multiple machines like this win version is 1803 2021/03/30…

Windows development | Windows API - Win32
Windows for business | Windows Server | User experience | Other
asked 2021-03-30T10:51:37.85+00:00
Victor Petrindean 1 Reputation point
answered 2021-04-02T10:05:50.397+00:00
Anonymous