public static extern int GetProcessId(\r
[In] IntPtr Process);\r
\r
- [DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]\r
+ [DllImport("kernel32.dll", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]\r
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);\r
\r
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]\r
[DllImport("kernel32.dll")]\r
public static extern bool SetWaitableTimer(IntPtr hTimer, [In] ref long pDueTime, int lPeriod, IntPtr pfnCompletionRoutine, IntPtr lpArgToCompletionRoutine, bool fResume);\r
\r
- [DllImport("kernel32", SetLastError = true, ExactSpelling = true)]\r
+ [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]\r
public static extern int WaitForSingleObject(IntPtr handle, uint milliseconds);\r
\r
[DllImport("wer.dll", CharSet = CharSet.Auto)]\r
out IntPtr pSacl,\r
out IntPtr pSecurityDescriptor);\r
\r
- [DllImport("advapi32", CharSet = CharSet.Unicode, SetLastError = true)]\r
+ [DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]\r
public static extern bool ConvertSidToStringSid(\r
IntPtr sid,\r
out IntPtr sidString);\r
[DllImport("user32.dll")]\r
public static extern int GetDlgCtrlID(IntPtr hwndCtl);\r
\r
- [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError=true)]\r
+ [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError= true)]\r
public static extern IntPtr LoadLibrary(string lpFileName);\r
\r
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]\r