Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nasty Directory Delete Function
#7
(09-15-2022, 03:45 AM)eoredson Wrote: I changed the _unsigned long to _unsigned _integer64 and it crashed.

From what I can tell the win32_find_dataa udt _unsigned long is 32-bit which is 4*1024^3-1

Unless you have a win64_find_dataa which would be 64-bit or 16*1024^6-1.

Erik.

You wouldn't adjust them by making longs into integer64s but you would just add padding where necessary. I'll look at your code and see if it works in 64 bit. If not, I'll help adjust your TYPEs. I'll get back to you later on this.

EDIT: The code ended up working just fine. Sweet. Good work. It deleted the directory I gave it as well as the files within.
Tread on those who tread on you

Reply


Messages In This Thread
Nasty Directory Delete Function - by eoredson - 09-14-2022, 05:51 AM
RE: Nasty Directory Delete Function - by eoredson - 09-15-2022, 02:06 AM
RE: Nasty Directory Delete Function - by eoredson - 09-15-2022, 03:45 AM
RE: Nasty Directory Delete Function - by SpriggsySpriggs - 09-15-2022, 01:08 PM



Users browsing this thread: 4 Guest(s)