#NEWLINE# @ Kernel32Proxy ( 'GetVolumeInformationA' ) #NEWLINE# def GetVolumeInformationA( lpRootPathName , lpVolumeNameBuffer , nVolumeNameSize , lpVolumeSerialNumber , lpMaximumComponentLength , lpFileSystemFlags , lpFileSystemNameBuffer , nFileSystemNameSize ) : #NEWLINE# #INDENT# if ( ( nVolumeNameSize == 0 ) and ( lpVolumeNameBuffer is not None ) ) : #NEWLINE# #INDENT# nVolumeNameSize = len ( lpVolumeNameBuffer ) #NEWLINE# #UNINDENT# if ( ( nFileSystemNameSize == 0 ) and ( lpFileSystemNameBuffer is not None ) ) : #NEWLINE# #INDENT# nFileSystemNameSize = len ( lpFileSystemNameBuffer ) #NEWLINE# #UNINDENT# return GetVolumeInformationA . ctypes_function ( lpRootPathName , lpVolumeNameBuffer , lpFileSystemFlags , lpVolumeSerialNumber , lpMaximumComponentLength , lpFileSystemFlags , lpFileSystemNameBuffer , nFileSystemNameSize )