SetCurrentDirectory function Null safety kernel32
Changes the current directory for the current process.
BOOL SetCurrentDirectoryW(
LPCTSTR lpPathName
);
Implementation
int SetCurrentDirectory(Pointer<Utf16> lpPathName) {
final _SetCurrentDirectory = _kernel32.lookupFunction<
Int32 Function(Pointer<Utf16> lpPathName),
int Function(Pointer<Utf16> lpPathName)>('SetCurrentDirectoryW');
return _SetCurrentDirectory(lpPathName);
}