2,585 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

how to code an MSI to ensure installation roll-back when a file is in use (Windows Installer question)

If I'm installing an MSI using silent operation (e.g msiexec /q /norestart /i my.msi /l my.log) what code in the MSI will ensure that the install (or upgrade when it's an upgrade) rolls back if the "Files in use" situation occurs? When the…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-29T22:13:13.863+00:00
Alan Sinclair 11 Reputation points
commented 2021-02-01T02:42:24.87+00:00
Rita Han - MSFT 2,161 Reputation points
4 answers One of the answers was accepted by the question author.

MCI: playing a CD, get the time position

Hello I followed the example here https://video2.skills-academy.com/en-us/windows/win32/multimedia/playing-a-compact-disc-track about playing an audio CD using mciSendCommand(). I would like to know which and how to use a MCI command to get the actual…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-31T07:46:57.443+00:00
David L 161 Reputation points
accepted 2021-01-31T19:10:30.237+00:00
David L 161 Reputation points
4 answers One of the answers was accepted by the question author.

Windows 10 version 2004 Smart Card authentication problem with custom CP's

Windows 10 version 2004 and 20H2 both have an issue with custom Credential Providers that worked fine in versions prior to 2004. After packaging the credentials in GetSerialization and handing them off to Lsass, ReportResult returns "An invalid…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,471 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,887 questions
asked 2020-11-13T14:19:37.333+00:00
Greg_N_Huntsville 21 Reputation points
accepted 2021-01-29T19:06:47.363+00:00
Greg_N_Huntsville 21 Reputation points
1 answer

OneDrive download file automatically when right click file

Hi, I use OneDrive or Cloud Mirror sample code on a specify NB. When right click file, file will be downloaded automatically. How can i check which app trigger this action or how to prevent this download action??

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2020-12-15T08:56:32.777+00:00
Jojo Tang 86 Reputation points
answered 2021-01-29T09:45:50.34+00:00
wangfu 1 Reputation point
2 answers

How to share data between Service Program and Desktop Program?

I want to share data between service program and desktop program. I made very simple DLL file like below #pragma data_seg(".MyShare") char g_player_running = 0; // 0 - No Running, 1 - Running, 2 - User…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-29T01:18:08.077+00:00
재환 주 1 Reputation point
answered 2021-01-29T07:25:09.153+00:00
Drake Wu - MSFT 991 Reputation points
1 answer

DataSend y DataRecv Client-Server help

hello I have a great question I have a launcher that I am creating, in the launcher datasend added the following bool CConnection::DataSend(BYTE* lpMsg,int size) // OK { this->m_critical.lock(); if(this->CheckState() == 0) { …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-27T22:45:41.04+00:00
Eduardo Tosca Avalos 1 Reputation point
answered 2021-01-29T02:50:05.127+00:00
Drake Wu - MSFT 991 Reputation points
4 answers One of the answers was accepted by the question author.

Parent a user control inside a Windows Form (with one eye on Win32 window!)

I have a service page (actually a Win32 tab control panel) that I'd like to embed a C# .NET user control inside. The service manager app is Win32. As a test I thought I'd try parenting an instance of the user control to a Windows Form, not by adding it…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,842 questions
asked 2021-01-26T22:21:16.547+00:00
Robinson 141 Reputation points
accepted 2021-01-27T15:45:07.18+00:00
Robinson 141 Reputation points
0 answers

How can I find out which ranges of a memory-mapped file are "hot"?

Background We've developed an application that demands fast access to data that's contained within gigantic static files (the largest individual files are dozens of GB in size, and there are multiple different sets of these files). For various…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-26T23:11:20.537+00:00
Joe Amenta 1 Reputation point
1 answer

Can I programmatically check a remote computer to see if someone is already connected via Remote Desktop to this computer?

We have a few Windows 10 Pro computers with Remote Desktop enabled. There are also "client" machines running Windows 10 Pro and Windows 10 Home. Is it possible to programmatically check, from a client machine, that the remote computer is…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,505 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,340 questions
asked 2021-01-26T16:21:15.563+00:00
Ivan-F 1 Reputation point
answered 2021-01-26T21:38:12.657+00:00
RLWA32 45,236 Reputation points
4 answers One of the answers was accepted by the question author.

How to use WinVerifyTrust dll

Visual Basic .NET Framework Hello How to use WinVerifyTrust dll? i wrote <System.Runtime.InteropServices.DllImport("Wintrust.dll")> Public Shared Function SignVerifier(GUID As IntPtr, LPVOID As IntPtr, pgActionID As IntPtr, …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-24T13:29:00.377+00:00
VB_al 91 Reputation points
accepted 2021-01-26T19:49:17.49+00:00
VB_al 91 Reputation points
1 answer One of the answers was accepted by the question author.

VMR9 memory growth

Hello, I'm running example which is "Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\vmr9\vmrplayer". Whenever I change a video file, the memory increases. How to use code to solve the problem of memory increase in…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-25T03:51:24.52+00:00
Rayman Lu 21 Reputation points
commented 2021-01-26T02:50:21.967+00:00
Rita Han - MSFT 2,161 Reputation points
4 answers One of the answers was accepted by the question author.

FILEMUIINFO Structure

Hi I want to get MUI file information directly from a .mui file type (without GetFileMUIInfo function) and I found following structure but some members of it is missed. Where is complete structure? typedef struct _FILEMUIINFO { DWORD dwSize; …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-22T07:45:54.633+00:00
drjackool 956 Reputation points
accepted 2021-01-25T09:05:30.947+00:00
drjackool 956 Reputation points
1 answer

Registry 32 to 64 bit porting

Hi We're porting 32bit C++ code to 64bit. The porting of DLL and libs and exe is done and now we're trying change the registry part. Installer has done the changes to create the application related registry key at native hive. In 32bit version,…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-21T06:58:34.403+00:00
prxy 61 Reputation points
answered 2021-01-25T09:03:53.61+00:00
Petrus 【KIM】 456 Reputation points
0 answers

[cfAPI] File created with Cloud Filter API might be deleted by other cloud provider

Hi guys, I'm currently developing a product using cloud filter API. Some of our customer report that while they uninstall OneDrive, all the file (placeholder) created by our product will also be deleted. In the past, we use AckDelete to prevent…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2020-12-15T02:19:18.18+00:00
Chieh Yu 1 Reputation point
commented 2021-01-25T03:16:10.13+00:00
Chieh Yu 1 Reputation point
3 answers

Differentiate between a "direct" (i.e. "directly" started by a user) and a non-direct (i.e. started on behalf) process

Background: I am working on a project that is supposed to control whether an application should be allowed to execute or not as well as handle UAC for the users i.e. a user at the maximum, only sees a customized consent screen and never a credential…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,471 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-20T15:46:47.083+00:00
Avineshwar (Gartner) 1 Reputation point
commented 2021-01-22T12:09:19.19+00:00
RLWA32 45,236 Reputation points
1 answer

Question about EnableThreadProfiling and ReadThreadProfilingData

Hi, When using ReadThreadProfilingData (https://video2.skills-academy.com/en-us/windows/win32/api/winbase/nf-winbase-readthreadprofilingdata), for the hardware counter data the documentation is not clear how the OS handle the thread being interrupted…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-21T17:26:06.883+00:00
Issam Khalil 1 Reputation point
answered 2021-01-22T02:13:59.18+00:00
Drake Wu - MSFT 991 Reputation points
1 answer One of the answers was accepted by the question author.

Set MINMAXINFO in WM_GETMINMAXINFO: No Effect?

Hi, the code handled in this message shows that mmi is updated, yet during sizing, the structure reverts to the defaults, understandably so by the way it's processed: case WM_GETMINMAXINFO: { // myWidth, myheight initialised e.g 250, 150 …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-10T05:24:12.687+00:00
Laurie Stearn 91 Reputation points
commented 2021-01-21T05:11:28.75+00:00
Laurie Stearn 91 Reputation points
2 answers

IFileDialogCustomize::SetControlItemState() not working?

In the attachment you find a small program which shows a FileSaveDialog with a custom checkbox and combobox. It uses IFileDialogControlEvents to modify the visible items in the combobox when the checkbox is toggled. I find that the contents of the…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
asked 2021-01-20T10:27:59.7+00:00
de Vos, Gert-Jan 1 Reputation point
commented 2021-01-20T23:52:57.63+00:00
David Lowndes 4,711 Reputation points
1 answer

Question for Custom StringFileInfo ?

Hi Expert, After building some free utilities, I want to write some information to the exported .dll file. I am customizing file.rc and want to add author information as well as URL like image, however after build, output file is empty these…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-19T09:19:06.133+00:00
DangDKhanh-2637 946 Reputation points
commented 2021-01-20T15:13:21.823+00:00
DangDKhanh-2637 946 Reputation points
1 answer

Who is an owner of data rendered by IDataObject::GetData?

Documentation wording on that matter is somewhat confusing. First it states: The caller then assumes responsibility for releasing the STGMEDIUM structure then in parameters description: A pointer to the STGMEDIUM structure that indicates…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,585 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
asked 2021-01-20T09:48:50.053+00:00
infinityeternity 21 Reputation points
answered 2021-01-20T14:40:20.767+00:00
Igor Tandetnik 1,106 Reputation points