I need to use some kind of structure. Here is the code for this structure:

typedef struct { /*код*/ FILE* hndlFileDownload; /*код*/ } Struct1; 

So, how to denote hndlFileDownload ? IntPtr ?

According to this answer, I can not do everything, because I can not change the dll-ku.

  • Why change the dll? Not enough to use what it exports? - αλεχολυτ
  • 3
    I suggest you IntPtr and label it :) If you are not interested in FILE offal, then it will be quite logical. Otherwise, you will have to announce FILE and somehow refer to it. - nick_n_a
  • Give your dll-ku and the function with which you have a problem. One we will show you how to import :) (if dll is not such that through no help you can’t get it) - nick_n_a
  • @nick_n_a offal FILE not generally standardized, by the way, i.e. There is usually no need to go there. - αλεχολυτ
  • @alexout it doesn’t matter whether they are standardized, a specific function is tied to a specific library, if for example msvcrt.dll is used, then for it FILE will always be specific (90% that it is imported). And the fact that it does not have to go into it - I think that the NET library is so rich in file handling functions, that additional libraries are not needed. - nick_n_a 2:19

0