Re: Retieve the Size of my app (or the Name)

From: tom (t_at_inwind.it)
Date: 06/13/04


Date: Sun, 13 Jun 2004 23:41:26 GMT


>Just curious, what does your app do (or what could users be doing) that
>would change the file size? Even more curiously, why would users rename it?

Thanks.

... while retrieving the "extension"
is not needed because VB5 only creates
.exe or .dll or. ocx extensions,
isn't it ?
Please confirm this,
otherwise I would need to retrieve
the app extension too.

----
To retrieve the app name
I was using Apis such as
  GetWindowThreadProcessId
  CreateToolhelpSnapshot
but this second API gave me problem with NT system
because on the NT, the Kernell.dll file 
seems not being present...
Or I was missing something?
----
I want to retrieve my app size because
I decided to implement an anticracking protection.
So I thought to perform this steps:
1 - to compress&encript it, 
2 - so if a cracker want to tease it,
3 - he is compelled to deflate it 
     and the size will be different and I stop executing the app,
4 - and if he should try to compress&encript it,
      the size will presumably be different 
      and I stop executing the app
Is it a bad idea?
Any anti-cracking suggestion 
is very very very appreciated...