GetCurrentDirectoryA
Retrieves the process current directory.
Module: Windows
Microsoft documentation: GetCurrentDirectoryA
Signature
rux
func GetCurrentDirectoryA(bufferLength: uint32, buffer: *char8) -> uint32;Returns
When the buffer is large enough, returns the path length excluding the null terminator. If too small, returns the required size including the terminator. Returns 0 on failure. bufferLength is measured in narrow characters.
See also
SetCurrentDirectoryA— change the current directoryFilesystem— filesystem API overview