/r/windowsdev

Photograph via snooOG

This a Reddit for highly technical questions and discussion about

development for Microsoft Windows platforms, Microsoft Windows related platforms such as .Net.

A Reddit to ask technical questions about Windows Development

At the core of Universal Windows Platform is the idea that users want their experiences to be mobile across ALL their devices, and they want to use whatever device is most convenient or productive for the task at hand.

Build Windows apps now. Windows 10 makes it easier than ever to develop apps for the Universal Windows Platform with just one API set and one app package to reach all Windows 10 devices – PCs, tablets, phones, and more.

Get Started now!

  1. Get Visual Studio
  2. Learn to develop Windows Apps
  3. Publish to the Windows Store

Read more on developing great Windows Apps.

/r/windowsdev

1,669 Subscribers

2

GitHub repo review request

I’m an autistic, self-taught 24yo software engineer (hobbyist and family business) who was homeschooled, so I’ve never really had any direct detailed evaluation, discussion, critique/criticism or validation in regards to my knowledge and software works that most people get during formal education and/or employment.

I started learning C++ in June of 2019 because I wanted to make an FOV slider for Fortnite, but wound up falling in love with programming itself instead; though I should note I’ve been tinkering with computers since I was ~4, as my mom was an early mover to eBay, and thus, a PC (or two) was present in our house to mess with.

I don’t know math past algebra I lmao, but I think my code is decent, but I don’t know for sure.

I know C and C++ well (?), and know my way around basic C#/WPF dev. I also know Windows (incl. kernel) programming well (?).

I have elementary-level knowledge of x86/x64 assembly.

I have below-working-level knowledge of JavaScript (and HTML and CSS).

I can write my way around Python, Java, Go, etc. cause it’s just syntax obv.

https://www.github.com/sondernextdoor

0 Comments
2024/11/11
16:51 UTC

2

If you need an .ico file for your app I made Simple Icon File Maker to do just that

1 Comment
2024/11/10
00:00 UTC

1

Access Microphone Indicator by USB?

Anyone know how to access system state for the microphone indicator, ideally via USB? I'm pretty new to this; I've built input devices, but now I want to get information out and I'm not sure how to do that. Any advice would be appreciated.

This handy indicator appears in the taskbar when an app is using the microphone and says whether or not it's muted.

0 Comments
2024/11/06
13:55 UTC

1

Command for getting the current system date format

I'm trying to determine the current system locale date format so I can format the dates correctly for the schtasks-create command.

Is there a cmd or powershell command that can get me this info?

https://preview.redd.it/kg82v01iu0zd1.png?width=880&format=png&auto=webp&s=06920c69d6c8aa3388667fd04179ec5be86621f0

2 Comments
2024/11/05
05:49 UTC

2

Windows application

Hi everyone,

I’m working on creating a Windows application that includes both WPF and a background service. However, I don’t have prior experience with Windows development, so I need guidance on how to enable communication between Windows service technology and WPF.

Additionally, I’m new(#noob) to Windows development. Could you recommend any tutorials or books that would be helpful given my current level?

2 Comments
2024/10/27
12:53 UTC

1

Installing a windows service on a remote server

Hi guys,
Me again. I asked a couple of weeks ago about creating a windows service, I developed and tested it on my local system. Now I want to install it on a remote host where it will run.

I am using the InstallUtil.exe from Microsoft.NET to install it on my machine. I wanted to ask what I need to move to the host to install it there? Do I only need the Configuration Source File, or do I need the complete `bin/` folder? Or is it something else entirely?

1 Comment
2024/10/21
12:46 UTC

1

Unusual titlebar created when intecepting WM_NCPAINT

https://preview.redd.it/ekgh7yjmr8vd1.png?width=1435&format=png&auto=webp&s=775744770fa277f46ca6fae60a62be23b5853f1e

I just return zero at the current moment, but what is this anyway? My goal is to remove the titlebar ONLY just like electronjs does it, ive already set the margins to zero and the WS styles are visible in the image.

My goal is to retain the shadow, resizability (but i could implement it myself) snapping while not having a titlebar. I would also like to keep the thin border stroke that appears on windows 11

What API calls should I make to acheive such a result?

1 Comment
2024/10/17
04:11 UTC

1

Creating an SQL based windows service.

Hi guys,

I'm a little new to creating windows services, so I'm here to ask for a little help. I want to create a service that will periodically query an SQL database and create a new table based on the results of the query. How can I go about implementing this.

P.S. Not sure if this is the right community to ask this. If anyone knows about that please lemme know

4 Comments
2024/10/07
11:34 UTC

2

Application Inside Taskbar for Win11

As title suggests i wanna inject my application's window to taskbar so it will be convenient and acts as native window.

ive already developed the application/UI now all i have to do is properly inject the window.

ive tried couple of times to attach my window to "ReBarWindow32" inside "Shell_TrayWnd" class it successfully attaches but the problem is its all blurred. ive tried disabling transparency, changing the theme, changing Z-axis of layers but still its all blurred behind acrylic style.

the same method worked perfectly with win10 but this time win11 is seems different

1 Comment
2024/10/05
11:29 UTC

0

Do you need Administrator to write to or modify the Master Boot Record (MBR) on Windows 11?

Because I'm trying to make a project that modifies the MBR to display stuff on the screen right before boot and I wanna know if I should add an Admin check or not.

3 Comments
2024/10/04
19:24 UTC

2

Get Device Name from Device Context Handle

I'm doing some work with MS Detours and one of the things I'm detouring is the Windows API GetDeviceCaps function which receives a handle to a device context as its first parameter. What I'm trying to figure out is how to get the name of the device that this device context handle represents. Basically I need to do the reverse of what the CreateDC function does, which takes a device name (amongst other things) and returns the device context handle. Anyone know if that's possible?

0 Comments
2024/10/04
06:15 UTC

2

Has COM become slower in Windows 10?

Good day.

Long story short, found that my C#/C++/VBA application become significantly slower after migrating from Windows 7 to Windows 10. After some investigation I've found that COM works slower in Windows 10.

My test suite now is 2 VirtualBox machines with same parameters, first has Windows 7 installed, second has Windows 10 installed. I have C# application, which connects 2 COM servers. InProcess and LocalServer and calls really simple method, literally no logic, just getting scalar value.

Win7 MTA

Win10 MTA

But if I change Application to STA picture is sligthly different:

Win7 STA

Win10 STA

Now Inprocess COM is even faster on Windows 10 than in Windows 7. I assume trouble is in cross-boundaries marshalling. Somehow it's slower in Windows 10. But I cannot understand why it's so and what can I do about it.

Has someone similar issues? What can be done here? Or maybe at least someone knows how can I debug COM/DCOM/RPC method calls. Some verbose logging could help in this case.

Thank you everyone,

3 Comments
2024/10/03
17:00 UTC

1

Can't Submit Apps for 24H2 in Partner Center

It's dissapointing that, yet again, Partner Center is rejecting submissions for apps that are targetting 24H2 (10.0.26100.0).

How can this same problem plague Partner Center every time there's a new SDK version.

0 Comments
2024/10/02
07:13 UTC

1

I need help, i dont understand whats dcom but it has been crashing

https://preview.redd.it/n9dbxd8b0dqd1.png?width=757&format=png&auto=webp&s=d7ea40b99a450fa9b328c958371478abbd8f73b2

this is what it says

It was like this for couple hours about six, was i hacked or my pc just tapped out cuz its running a game 24/7 for 3 days now??

0 Comments
2024/09/22
13:06 UTC

1

Help with an NSISS app compile

Hi There,

I need some guidance on compiling a program NSISS script.

See my company uses a program called PSPP for data analysis which from what I gather is built in NSISS. Here is the website.

https://www.gnu.org/software/pspp/get.html

I’m trying to remove a message box and recompile the script in NSISS. However I keep getting errors when compiling. (Maybe I need an older version, some separate libraries. I’m not quite sure?)

One of the first things I did was reach out to the developers of this program for help. They said none of them use Windows and therefore can’t help me (which I find crazy because they release windows builds regularly)

The message box is question is located in the git rep which needs to be cloned first to see: https://savannah.gnu.org/git/?group=pspp

Location pspp/windows/pspp.nsi

line 358 - 360

Error in question MessageBox MB_OKCANCEL "This windoze installer is work in progress. It is known to have deficiencies and is recommended for testing and evaluation purposes only." IDOK continue Abort ; Allow the use to decide not to continue continue

Thoughts?

4 Comments
2024/09/18
04:50 UTC

7

Driver submission systematically rejected by Microsoft Approval at shipping label step.

Maybe someone from Microsoft here can help, this is an issue we've been having for over a year, we have an open ticket, and we've been ghosted by Microsoft dev support (again).

We're trying to submit a driver but it is systematically rejected by Microsoft Approval at shipping label step. We follow the same steps as our previous driver submissions.

The reason for rejection is "it is self-attested, and it is not Co-Dev/SSRK, and it doesn't have a proper business justification". We used our SSL certificate configured in the system to sign the driver. We provided all the requested business justification. All previous steps were successful.

We need this driver to support USB connection to devices with our software.

Any advice welcome!

1 Comment
2024/09/11
23:18 UTC

1

How does Windows Dictation tool is works on any input field, content editable div?

I'm trying to understand how does windows dictation tool inserts and edits text everywhere seamlessly?

Refer to the video
Refer to the video. You will notice that
It is seamlessly able to insert text in a content editable div.
It is able to modify the text as well. Notice the three dots that are coming.
It is able to change the text to the complete output once I click that window i.e 3 dots disappears.

https://youtu.be/gGFv9eKaBqc

What kind of APIs do I need to use to achieve this functionality? Any input on it.

Is this level of functionality achievable by Electron as well?

0 Comments
2024/09/06
18:05 UTC

1

Reading sensor events through windows service?

Any idea how I can do the above? I've tried implementing Sensors API and winRT, but both don't work, the service just fails outright.

I just really need to read sensor values/events, and at least read sensor values without making another external app if possible.

0 Comments
2024/09/05
10:47 UTC

1

Windows 7 BSOD on Precision desktop

I have a Dell Precision T3600 with an Intel Xeon E5 and an Nvidia Quadro 2000 (ik, very old), it comes by default with windows 7 but I have upgraded it and installed a samsung 870 evo (SATA). Now, the windows 7 installer won't detect the SSD and if I deploy it using a windows 10 environment (which does detect the SSD), When trying to boot from SSD, it goes into BSOD right after the boot animation disappears. I don't get enough time to see the actual BSOD as it instantly crashes, I just get a blue glimpse which is definitely the bsod

0 Comments
2024/08/27
05:56 UTC

2

Where can I find status of Microsoft Projects?

Hi! I have seen someone somewhere on reddit talk about the status of MFC, WPF, WinUI, WinRT etc. Where can I find what the development status is for the different Windows development projects?

3 Comments
2024/08/05
13:00 UTC

2

Make an existing app run as a kiosk?

My company has an Electron app that does what we want it to, but we need a way to run it as a kiosk (can't be exited by the user without a code). We can build the app to an executable installer or an MSI, but it never shows as an app available to select as the system's kiosk app in the settings. Does anyone know what my options are?

FYI the app is not signed, at least not yet, due to the expense. But that is an option if it would help make it work as a kiosk app.

0 Comments
2024/07/26
18:27 UTC

1

How to run Windows Docker containers on Windows Server 2022 tutorial

0 Comments
2024/07/05
14:03 UTC

2

Is there a way to detect (event listenner) when an app is openned?

I'm trying to make a program that's similar to a "history". It shows all the software you have used the most, when, how, so if you give your computer to a friend for a day or two, you know what they did. But I can't find anything. Is there a specific language i can use to listen to process creating events?

2 Comments
2024/06/18
00:48 UTC

1

LuaRT 1.8.0 released

0 Comments
2024/05/22
19:18 UTC

1

Blazor .NET 8 complete tutorial for beginners - 4 hours

0 Comments
2024/05/21
14:28 UTC

1

Windows ctrl-c metadata power bi

If I copy a query from power query, I can paste it in another power query Windows. But if I paste it into notepad++ or VSC and the copy it again using ctrl-c. I cannot copy it into power query. It will say no query found in clipboard.

Anyone have any ideas on why this is happening. It seems like the clipboard knows where the ctrl-c data is coming from??

0 Comments
2024/04/24
15:16 UTC

3

RGFW.h | Single-header graphics framework cross-platform library | managing windows/system apis | Lightweight Flexible GLFW Alternative w/ directX support

RGFW is a single-header graphics framework cross-platform library. It is very simular in utility to GLFW however it has a more SDL-like structure. It is meant to be used as a very small and flexible alternative library to GLFW. Much like GLFW it does not do much more than the minimum in terms of functionality. However it still is a very powerful tool and offers a quick start so the user can focus on graphics programming while RGFW deals with the complexities of the windowing APIs.

RGFW also can be used to create a basic graphics context for OpenGL, buffer rendering, Vulkan or Direct X. Currently the backends it supports include, XLib (UNIX), Cocoas (MacOS) and WinAPI (Windows) and it is flexible so implementing a custom backend should be easy.

RGFW comes with many examples, including buffer rendering, opengl rendering, opengl 3 rendering, direct X rendering and Vulkan rendering. However there are also some projects that can be used as examples that use RGFW. Including PureDoom-RGFW which is my example DOOM source port using RGFW and pureDOOM, and RSGL which is my GUI library that uses RGFW as a base.

Here is very basic example code to show off how RGFW works.

#define RGFW_IMPLEMENTATION
#define RGFW_DIRECTX
#include "RGFW.h"

int main() {
    RGFW_window* win = RGFW_createWindow("name", RGFW_RECT(0, 0, 500, 500), RGFW_CENTER);
    RGFW_window_makeCurrent(win);

    RGFW_directXinfo dxInfo = *RGFW_getDirectXInfo();

    for (;;) {
        RGFW_window_checkEvent(win); // NOTE: checking events outside of a while loop may cause input lag 

        if (win->event.type == RGFW_quit || RGFW_isPressedI(win, RGFW_Escape))
            break;

        float clearColor[4] = { 1.0f, 0.0f, 1.0f, 1.0f };
        dxInfo.pDeviceContext->lpVtbl->ClearRenderTargetView(dxInfo.pDeviceContext, win->src.renderTargetView, clearColor);

        RGFW_window_swapBuffers(win);
    }

    RGFW_window_close(win);
}

More information can be found on the github, such as screenshots, a size comparison table and RGFW itself.

github : https://github.com/ColleagueRiley/RGFW

0 Comments
2024/04/22
00:48 UTC

Back To Top