$36 GRAYBYTE WORDPRESS FILE MANAGER $78

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/golang/src/internal/syscall/windows/

HOME
Current File : /usr/lib/golang/src/internal/syscall/windows//string_windows.go
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package windows

import "syscall"

// NTUnicodeString is a UTF-16 string for NT native APIs, corresponding to UNICODE_STRING.
type NTUnicodeString struct {
	Length        uint16
	MaximumLength uint16
	Buffer        *uint16
}

// NewNTUnicodeString returns a new NTUnicodeString structure for use with native
// NT APIs that work over the NTUnicodeString type. Note that most Windows APIs
// do not use NTUnicodeString, and instead UTF16PtrFromString should be used for
// the more common *uint16 string type.
func NewNTUnicodeString(s string) (*NTUnicodeString, error) {
	s16, err := syscall.UTF16FromString(s)
	if err != nil {
		return nil, err
	}
	n := uint16(len(s16) * 2)
	// https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdmsec/nf-wdmsec-wdmlibrtlinitunicodestringex
	return &NTUnicodeString{
		Length:        n - 2, // subtract 2 bytes for the NUL terminator
		MaximumLength: n,
		Buffer:        &s16[0],
	}, nil
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Dec 2025 6.06 PM
root / root
0755
registry
--
16 Dec 2025 9.30 PM
root / root
0755
sysdll
--
16 Dec 2025 9.30 PM
root / root
0755
at_windows.go
14.653 KB
4 Dec 2025 6.06 PM
root / root
0644
memory_windows.go
0.918 KB
4 Dec 2025 6.06 PM
root / root
0644
mksyscall.go
0.37 KB
4 Dec 2025 6.06 PM
root / root
0644
net_windows.go
1.051 KB
4 Dec 2025 6.06 PM
root / root
0644
nonblocking_windows.go
0.736 KB
4 Dec 2025 6.06 PM
root / root
0644
psapi_windows.go
0.699 KB
4 Dec 2025 6.06 PM
root / root
0644
reparse_windows.go
3.429 KB
4 Dec 2025 6.06 PM
root / root
0644
security_windows.go
8.147 KB
4 Dec 2025 6.06 PM
root / root
0644
string_windows.go
1.072 KB
4 Dec 2025 6.06 PM
root / root
0644
symlink_windows.go
1.662 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_windows.go
18.96 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows.go
8.911 KB
4 Dec 2025 6.06 PM
root / root
0644
version_windows.go
4.447 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_windows.go
25.902 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF