git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Mon, 24 Jan 2022 13:26:56 +0000 (13:26 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Mon, 24 Jan 2022 13:26:56 +0000 (13:26 +0000)
client/DxPlay/NativeMethods.cs

index 345416da8f01adf79ebe8f1e23d97fd768aa4095..58bad797589313a909cac72d6762ec2983bd6499 100644 (file)
@@ -297,7 +297,7 @@ namespace DxPlay {
         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
@@ -384,7 +384,7 @@ namespace DxPlay {
         [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
@@ -407,7 +407,7 @@ namespace DxPlay {
                 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
@@ -433,7 +433,7 @@ namespace DxPlay {
         [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