diff --git a/src/bin/pgevent/pgevent.c b/src/bin/pgevent/pgevent.c
index d4d505c53f663ef502fa7f7f91726f0a90ca9b37..5b9b0d32d74fdad42cd4892c31b28e6a527df64f 100644
--- a/src/bin/pgevent/pgevent.c
+++ b/src/bin/pgevent/pgevent.c
@@ -29,7 +29,7 @@ HANDLE		g_module = NULL;	/* hModule of DLL */
 char		event_source[256] = "PostgreSQL";
 
 /* Prototypes */
-HRESULT		DllInstall(BOOL bInstall, __in_opt LPCWSTR pszCmdLine);
+HRESULT		DllInstall(BOOL bInstall, LPCWSTR pszCmdLine);
 STDAPI		DllRegisterServer(void);
 STDAPI		DllUnregisterServer(void);
 BOOL WINAPI DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved);
@@ -40,7 +40,7 @@ BOOL WINAPI DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 
 HRESULT
 DllInstall(BOOL bInstall,
-		   __in_opt LPCWSTR pszCmdLine)
+		   LPCWSTR pszCmdLine)
 {
 	size_t		ret;