Safety Not Guaranteed - Calling Windows APIs Using Unsafe and Syscall
Offered By: Gopher Academy via YouTube
Course Description
Overview
Syllabus
Intro
Windows Containers 2016
No Syscalls on Windows
Pointer Arithmetic
Pointer Rules
Bad Pointers
Finding DLL and Call Signatures
Loading a DLL Procedure
Calling Windows APIs Mapping C Types
Primitive C-Type mappings
Mapping Parameters
Go string to string
Struct Types
Inspecting Return Value
CreateJobObject
Locking memory down during syscall
mkwinsyscall - source
Memory Management
Example: Designing For Unmanged Memory - Free
Example: Designing For Unmanged Memory- Iterating
Improvement - Copy & Free
Example: Copy & Free Design - Cred Enumerate
Example: Copy & Free Design - Credential/Attribute
Managed Memory: Generic Example
Example: GetExtendedTcp Table - Syscall Loop
Example: GetExtendedTcp Table - Table to Rows
Full Code Available
Taught by
Gopher Academy
Related Courses
A Holistic Go ExperienceGopher Academy via YouTube Safe, Fast, and Easy - Building a Plugin System with WebAssembly
Gopher Academy via YouTube A Journey Through Integration Testing with Go - What Could Go Wrong?
Gopher Academy via YouTube Kraken Wrangling for Dummies - Go Module Dependency Management at Scale
Gopher Academy via YouTube Go, the Data Engineer's Missing Tool?
Gopher Academy via YouTube