GetShortPathName function kernel32

int GetShortPathName(
  1. Pointer<Utf16> lpszLongPath,
  2. Pointer<Utf16> lpszShortPath,
  3. int cchBuffer
)

Retrieves the short path form of the specified path.

DWORD GetShortPathNameW(
  [in]  LPCWSTR lpszLongPath,
  [out] LPWSTR  lpszShortPath,
  [in]  DWORD   cchBuffer
);

Implementation

int GetShortPathName(Pointer<Utf16> lpszLongPath, Pointer<Utf16> lpszShortPath,
        int cchBuffer) =>
    _GetShortPathName(lpszLongPath, lpszShortPath, cchBuffer);