#NEWLINE# def FindFirstVolume( ) : #NEWLINE# #INDENT# 'Find the first volume which the system recognises. If\n    none is found, raise x_kernel32. Otherwise return the\n    search handle and the volume name.\n    ' #NEWLINE# volume_name = ctypes . create_unicode_buffer ( ( ' ' * VOLUME_NAME_LENGTH ) ) #NEWLINE# hSearch = kernel32 . FindFirstVolumeW ( volume_name , VOLUME_NAME_LENGTH ) #NEWLINE# if ( volume_name == win32file . INVALID_HANDLE_VALUE ) : #NEWLINE# #INDENT# return error ( x_kernel32 , 'FindFirstVolume' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( hSearch , volume_name . value )