GIAC
GSSP-.NET · Question #102
GSSP-.NET Question #102: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-.NET to reveal the answer and full explanation for question #102. The question stem and answer options stay visible for context.
Question
- (Topic 1) You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application using the .NET Framework. You write the following code snippet to call a method from the Win32 API by using PInvoke: int rst = MessageBox(hWd, Mytext, Mycaption, Mytype); You are required define a method prototype. Which of the following code segments will you use to accomplish this task?
Options
- A[DllImport("user32")] extern int MessageBoxA(int hWd, String Mytext, String Mycaption,
- B[DllImport("user32")] extern int Win32API_User32_MessageBox(Int hWd, String Mytext,
- C[DllImport("user32")] extern int MessageBox(int hWd, String Mytext, String Mycaption,
- D[DllImport("C:\WINDOWS\system32\user32.dll")] extern int MessageBox(int hWd,
Unlock GSSP-.NET to see the answer
You've previewed enough free GSSP-.NET questions. Unlock GSSP-.NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.