, * pfile_basic_information; // ntddk WDM nthal
This structure contains the File Creation Time and modification time. In addition, the file attribute domain fileattributes contains the attributes used to record the file, including whether the file is a system file or a hidden file, this field may be a combination of the following tags:
# Define file_attribute_readonly 0x00000001 // read-only# Define file_attribute_hidden 0x00000002 // hide# Define file_attribute_system 0x00000004 // System# Defi
Studio. NET \ vc7 \ platformsdk \ include.
To find these constants, I executed a findstr in this directory.
Findstr "mb_iconhand" *. h
It determines that constants are located in winuser. h, and then I use these constants to create my Enum and prototype:
Public Enum beeptype{Simplebeep =-1,Iconasterisk = 0x00000040,Iconexclamation = 0x00000030,Iconhand = 0x00000010,Iconquestion = 0x00000020,OK = 0x00000000,}[Dllimport ("user32.dll")]Public s
logic output error, causing the board to crash, the author has experienced n times, be sure to use the read-modify-write mode to modify the register value.Import Opizero_gpio Import Time # The following are the main programs GPIO = Opizero_gpio. Gpio () Gpio. Init (); # PA17 configured as output mode GPIO. Writereg (GPIO). Pio_pa_cfg2_reg,gpio. Readreg (GPIO). Pio_pa_cfg2_reg) | 0x00000010)while (1): ^ 0x00020000) time.sleep (0.3)The actual re
conf, location conf, Conf flag, one of the last relatively unfamiliar, similar values are:
#define NGX_CONF_ARGS_NUMBER 0x000000ff
#define NGX_CONF_BLOCK 0x00000100
#define NGX_CONF_FLAG 0x00000200
#define NGX_CONF_ANY 0x00000400
#define NGX_CONF_1MORE 0x00000800
#define NGX_CONF_2MORE 0x00001000
#define NGX_CONF_MULTI 0x00002000
Set:ngx_http_set_status
Here are some explanations of types:4.2.1 Ngx_conf_xxx The f
:
System.Drawing.Imaging.Metafile MF;
Graphics G1 = control. CreateGraphics ();
INTPTR hdc = G1. GetHdc ();
MF = new Metafile (hdc, new Rectangle (0, 0, control. Width, Control
. Height), Metafileframeunit.pixel, emftype.emfonly);
G1. RELEASEHDC (HDC);
G1. Dispose ();
Graphics g2 = graphics.fromimage (MF);
Call WINAPI to print the control to this graphics object (the Graphics object is passed as a parameter to the OnPaint () function of the
The example in this article describes the go language MessageBox usage. Share to everyone for your reference. Specifically as follows:
Copy Code code as follows:
Package Main
Import (
"Syscall"
"Unsafe"
"FMT"
)
Func Abort (funcname string, err int) {
Panic (FuncName + "failed:" + syscall.) Errno (ERR). Error ())
}
VAR (
Kernel32, _ = Syscall. LoadLibrary ("Kernel32.dll")
GetModuleHandle, _ = Syscall. GetProcAddress (kernel32, "Getmodulehandlew")
User32, _ = Syscall. Load
. For example, when an architecture rule breaks to the address 0x00000010 execution, it is necessary to load an ISR program into this address beforehand, and the ISR program is part of the kernel code that first determines which device caused the interrupt, Then call the device's interrupt handler function for further processing. Because each device operates differently, each device requires a specialized device driver (Devicedriver), and an operating
bytes.
The other three functions are actually just three macro definitions, wait a minute, let's look at the macro definition _intsizeof in the middle:
#define _INTSIZEOF (N) (sizeof (n) + sizeof (int)-1) ~ (sizeof (int)-1))
The function of this macro is to calculate the length (size) of the byte aligned to the integer byte length for a given variable or type N. int occupies 4 bytes in 32-bit systems and 16-bit systems account for 2 bytes.An expression(sizeof (n) + sizeof (int)-1)The effect
Interruptsynchronizationmode;Where Hwmsinterruptrountine is the MSI response function, Interruptsynchronizationmode is the MSI synchronization mode supported by miniport, with the following values:
typedef enum _INTERRUPT_SYNCHRONIZATION_MODE {Interruptsupportnone,Interruptsynchronizeall,Interruptsynchronizepermessage} Interrupt_synchronization_mode;Can be based on the needs of the value, the author only tried the Interruptsynchronizeall way.
In addition, the following items need to be added to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.