morequester
Programmer
Hi buddy,
I used LoadLibrary in C++. Now I changed it to C#.
C++ codes:
hKernelLib = LoadLibrary("kernel32.dll");
C# codes:
[DllImport("kernel32.dll")]
The problem is I need hKernelLib (which is the return value from invoking LoadLibrary), and it will be a parameter for the next API.
How could I get this return value from DllImport?
Thanks
I used LoadLibrary in C++. Now I changed it to C#.
C++ codes:
hKernelLib = LoadLibrary("kernel32.dll");
C# codes:
[DllImport("kernel32.dll")]
The problem is I need hKernelLib (which is the return value from invoking LoadLibrary), and it will be a parameter for the next API.
How could I get this return value from DllImport?
Thanks