aboutsummaryrefslogtreecommitdiffstats
path: root/api/nci.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/nci.h')
-rw-r--r--api/nci.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/api/nci.h b/api/nci.h
index 1346d7a..0d13b19 100644
--- a/api/nci.h
+++ b/api/nci.h
@@ -7,10 +7,21 @@
#include <Windows.h>
-extern DWORD WINAPI NciSetConnectionName(_In_ const GUID *Guid, _In_z_ const WCHAR *NewName);
+#ifdef GENERATE_LIB
+# define DECLSPEC __declspec(dllexport)
+# define STUB { return 0; }
+#else
+# define DECLSPEC __declspec(dllimport)
+# define STUB ;
+#endif
-extern DWORD WINAPI NciGetConnectionName(
+
+EXTERN_C DECLSPEC DWORD WINAPI
+NciSetConnectionName(_In_ const GUID *Guid, _In_z_ const WCHAR *NewName) STUB
+
+EXTERN_C DECLSPEC DWORD WINAPI
+NciGetConnectionName(
_In_ const GUID *Guid,
_Out_z_bytecap_(InDestNameBytes) WCHAR *Name,
_In_ DWORD InDestNameBytes,
- _Out_opt_ DWORD *OutDestNameBytes); \ No newline at end of file
+ _Out_opt_ DWORD *OutDestNameBytes) STUB \ No newline at end of file