Somebody could tell me how to declare winapi in c#?
I’m having this error:
Error 1 The name 'WinApi' does not exist in the current context bla bla bla...
in line:
WinApi.OpenProcess(WinApi.PROCESS_ALL_ACCESS, 0, (uint)aProc[0]);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re not using a library that provides those methods and constants, you’ll need to implement them yourself using Platform Invocation Services (P/Invoke).
For example: