heribertolugo / FileList

List all files in a given directory, and provide the option to copy or move selected files.
1 stars 0 forks source link

Win32 Error Codes #100

Open heribertolugo opened 2 years ago

heribertolugo commented 2 years ago

Win32 methods should be decorated with SetLastError=true, and a wrapper for Marshal.GetLastWin32Error should be created.

the list of error codes will need to get parsed, and enum structs created for each one. the error codes are defined by int value. it would be a good idea to call GetLastWin32Error after any Win32 method call to check for errors.

Marshal.GetLastWin32Error documentation

System Error Codes