# Clarion Types in Windows GetVolumeInformation() call

**URL:** <https://clarionhub.com/t/clarion-types-in-windows-getvolumeinformation-call/8209>\
**Category:** questions\
**Tags:** windows, winapi\
**Created:** [May 21, 2025, 11:28pm UTC](https://clarionhub.com/t/clarion-types-in-windows-getvolumeinformation-call/8209 "2025-05-21T23:28:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff.Mason](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@Jeff.Mason](https://clarionhub.com/u/Jeff.Mason)\
**Post date:** [May 21, 2025, 11:28pm UTC](https://clarionhub.com/t/clarion-types-in-windows-getvolumeinformation-call/8209/1 "2025-05-21T23:28:09Z")

</div>

Need help with this one.

```clarion
MODULE('WinAPI')
  GetVolumeInformation(*CSTRING, *CSTRING, LONG, *LONG, *LONG, *LONG, *CSTRING, LONG), BOOL, PASCAL, RAW, NAME('GetVolumeInformationA')
END

```

```cpp
BOOL GetVolumeInformationA(
  [in, optional] LPCSTR lpRootPathName,
  [out, optional] LPSTR lpVolumeNameBuffer,
  [in] DWORD nVolumeNameSize,
  [out, optional] LPDWORD lpVolumeSerialNumber,
  [out, optional] LPDWORD lpMaximumComponentLength,
  [out, optional] LPDWORD lpFileSystemFlags,
  [out, optional] LPSTR lpFileSystemNameBuffer,
  [in] DWORD nFileSystemNameSize
);

```

---

<div class="post-metadata">

**Author:** ![PaulAttryde](https://clarionhub.com/user_avatar/clarionhub.com/paulattryde/32/3519_2.png) [@PaulAttryde](https://clarionhub.com/u/PaulAttryde)\
**Post date:** [May 22, 2025, 12:13am UTC](https://clarionhub.com/t/clarion-types-in-windows-getvolumeinformation-call/8209/2 "2025-05-22T00:13:26Z")

</div>

At a complete guess…

```clarion
map
GetVolumeInformation(ulong,ulong,LONG,ulong,ulong,ulong,ulong,LONG), BOOL, PASCAL, RAW, NAME(‘GetVolumeInformationA’)
end

lpRootPathName cstring(4)
lpVolumeNameBuffer cstring(300)
lpMaximumComponentLength ulong
lpFileSystemFlags ulong
lpFileSystemNameBuffer cstring(500)
code
lpRootPathName = 'c:\'
lpVolumeNameBuffer = ''
! if you don't care about the serial number
gvi = GetVolumeInformation( address(lpRootPathName), 
                      address(lpVolumeNameBuffer ) ,
                      0,
                      address(lpMaximumComponentLength),
                      address(lpFileSystemFlags),
                      address(lpFileSystemNameBuffer),
                      size(lpFileSystemNameBuffer)

```
