#NEWLINE# @ Kernel32Proxy ( 'GetVolumeInformationW' ) #NEWLINE# def GetVolumeInformationW( lpRootPathName , lpVolumeNameBuffer = None , nVolumeNameSize = 0 , lpVolumeSerialNumber = None , lpMaximumComponentLength = None , lpFileSystemFlags = None , lpFileSystemNameBuffer = None , nFileSystemNameSize = 0 ) : #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 GetVolumeInformationW . ctypes_function ( lpRootPathName , lpVolumeNameBuffer , nVolumeNameSize , lpVolumeSerialNumber , lpFileSystemNameBuffer , lpFileSystemFlags , lpFileSystemNameBuffer , nFileSystemNameSize )