1 Introduction With the continuous development of computer technology, applications on Windows systems are becoming more and more diverse and feature-rich. This article will take you to explore how to develop Windows system applications and provide some practical code examples. Building development environment Before starting the development of Windows applications, you first need to set […]
Tag: window
WIndows’ CMD\PowerShell command line startup program runs a nohup command similar to Linux system in the background.
There is no command similar to nohup under windows, but you can use other commands to achieve this function. 1. Explanation of commands used: 1. Start-Process: Start one or more processes on the local computer. Related introduction links: Start-Process (Microsoft.PowerShell.Management) | Microsoft Learn? Mainly used parameters 1.1, -WindowStyle Specifies the state of the window used […]
2.3 Windows driver development: kernel string conversion method
In kernel programming, strings have two formats: ANSI_STRING and UNICODE_STRING. These two formats are safe versions of string structures introduced by Microsoft and are also formats recommended by Microsoft. , usually the type represented by ANSI_STRING is char *, which is a string in multi-byte mode of ANSI, and UNICODE_STRING represents wchar*, which is a […]
android ANativeWindow rotation rendering angle
android ANativeWindow rotation rendering angle MediaCodec rotation angle reference videoExtractor opens an angled video file mediaFormat.getInteger(MediaFormat.KEY_ROTATION); gets the angle MediaFormat mediaFormat = videoExtractor.getTrackFormat(j); String mime = mediaFormat.getString(MediaFormat.KEY_MIME); if (mime.startsWith(KEY_VIDEO)) {//Match the track corresponding to the video videoExtractor.selectTrack(j);//Select the track corresponding to the video long duration = mediaFormat.getLong(MediaFormat.KEY_DURATION); int width = mediaFormat.getInteger(MediaFormat.KEY_WIDTH); int height = mediaFormat.getInteger(MediaFormat.KEY_HEIGHT); […]
2.2 Windows driver development: kernel spin lock structure
When it comes to spin locks, we must talk about linked lists. In the previous article “Linked Lists and Structures in the Kernel”, we simply used the linked list structure to store the process information list. I believe readers should have understood it. The basic use of kernel linked lists. This article will explain the […]
FTP setup for ubuntu and windows
1. Install vsftpd software package Use the command sudo apt-get install vsftpd to install vsftpd software After the installation is complete, use vsftpd -v to check whether the version is correct. sudo apt-get install vsftpd 2. Configuration file 1. The default configuration file translation is as follows # Sample configuration file, address: /etc/vsftpd.conf # # […]
libusb gets the Windows device instance path DevicePath
The interface provided by the libusb.h header file in the current version of libusb (1.0.26) seems to have no way to obtain the device instance path related to the Windows platform. It looks like: \?\usb#vid_04ca & amp;pid_7070#5 & amp;20d34a76 & amp;0 & amp;6#{a5dcbf10-6530-11d2-901f-00c04fb951ed} Only interfaces such as libusb_get_port_numbers are provided to obtain the topology. We […]
Under Windows 10, download, install and use GMT with Vscode
Table of Contents 1.gmt download 2.gmt installation and configuration 2.1 gmt installation 2.2gmt configuration 2.3 Test installation 3. Install Bash environment 4. Configure VsCode 4.1 Install plug-ins 4.2 Add GitBash 5. Use gmt under Vscode 5.1 Run the .bat file ?edit 5.2 Run .sh file 5.3 Error reporting refer to: I recently wanted to draw […]
How to run js files under windows, how to enable javascript on the computer
This article will talk about how javascript code runs in the browser and how to run js files under windows. I hope it will be helpful to you. Don’t forget to bookmark this site. JavaScript ECMAScript It is a script programming language standardized by Ecma International (formerly the European Computer Manufacturers Association) and established by […]
Windows enumerates device information
Enumeration of device information is mainly implemented through the interface in the SetupAPI module, in conjunction with the corresponding device class GUID. Here we take enumerating USB device information as an example, including device instance addresses, etc.: #include <stdio.h> #include <Windows.h> #include <SetupAPI.h> #pragma comment(lib, “SetupAPI.lib”) #include <devguid.h> // The specific device GUID requires initguid, […]