LLVM 22.0.0git
llvm::sys::windows Namespace Reference

Functions

LLVM_ABI std::error_code GetCommandLineArguments (SmallVectorImpl< const char * > &Args, BumpPtrAllocator &Alloc)
LLVM_ABI std::error_code widenPath (const Twine &Path8, SmallVectorImpl< wchar_t > &Path16, size_t MaxPathLen=MAX_PATH)
 Convert UTF-8 path to a suitable UTF-16 path for use with the Win32 Unicode File API.
LLVM_ABI HMODULE loadSystemModuleSecure (LPCWSTR lpModuleName)
 Retrieves the handle to a in-memory system module such as ntdll.dll, while ensuring we're not retrieving a malicious injected module but a module loaded from the system path.

Function Documentation

◆ GetCommandLineArguments()

LLVM_ABI std::error_code llvm::sys::windows::GetCommandLineArguments ( SmallVectorImpl< const char * > & Args,
BumpPtrAllocator & Alloc )

References llvm::Alloc.

Referenced by llvm::InitLLVM::InitLLVM().

◆ loadSystemModuleSecure()

LLVM_ABI HMODULE llvm::sys::windows::loadSystemModuleSecure ( LPCWSTR lpModuleName)

Retrieves the handle to a in-memory system module such as ntdll.dll, while ensuring we're not retrieving a malicious injected module but a module loaded from the system path.

References LLVM_ABI.

◆ widenPath()

LLVM_ABI std::error_code llvm::sys::windows::widenPath ( const Twine & Path8,
SmallVectorImpl< wchar_t > & Path16,
size_t MaxPathLen = MAX_PATH )

Convert UTF-8 path to a suitable UTF-16 path for use with the Win32 Unicode File API.

References LLVM_ABI.