Export OpenSemaphoreW from PAL
authorStephen Toub <stoub@microsoft.com>
Mon, 11 May 2015 22:59:19 +0000 (18:59 -0400)
committerStephen Toub <stoub@microsoft.com>
Mon, 11 May 2015 22:59:19 +0000 (18:59 -0400)
Semaphore.OpenExisting uses OpenSemaphoreW from the PAL, but it's not being exported, resulting in EntryPointNotFoundExceptions.

src/pal/inc/pal.h

index 2e763cb..b1fb2df 100644 (file)
@@ -1547,6 +1547,14 @@ CreateSemaphoreExW(
         IN /*_Reserved_*/  DWORD dwFlags,
         IN DWORD dwDesiredAccess);
 
+PALIMPORT
+HANDLE
+PALAPI
+OpenSemaphoreW(
+    IN DWORD dwDesiredAccess,
+    IN BOOL bInheritHandle,
+    IN LPCWSTR lpName);
+
 #ifdef UNICODE
 #define CreateSemaphore CreateSemaphoreW
 #define CreateSemaphoreEx CreateSemaphoreExW