diff fuhtark_test/include/winapi/rasshost.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fuhtark_test/include/winapi/rasshost.h	Wed Nov 26 21:36:48 2025 +0700
@@ -0,0 +1,40 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the w64 mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within this package.
+ */
+#ifndef _RASSHOST_
+#define _RASSHOST_
+
+#include <mprapi.h>
+
+typedef DWORD HPORT;
+
+typedef struct _SECURITY_MESSAGE {
+  DWORD dwMsgId;
+  HPORT hPort;
+  DWORD dwError;
+  CHAR UserName[UNLEN+1];
+  CHAR Domain[DNLEN+1];
+} SECURITY_MESSAGE,*PSECURITY_MESSAGE;
+
+#define SECURITYMSG_SUCCESS 1
+#define SECURITYMSG_FAILURE 2
+#define SECURITYMSG_ERROR 3
+
+typedef struct _RAS_SECURITY_INFO {
+  DWORD LastError;
+  DWORD BytesReceived;
+  CHAR DeviceName[MAX_DEVICE_NAME+1];
+} RAS_SECURITY_INFO,*PRAS_SECURITY_INFO;
+
+typedef DWORD (WINAPI *RASSECURITYPROC)();
+
+VOID WINAPI RasSecurityDialogComplete(SECURITY_MESSAGE *pSecMsg);
+DWORD WINAPI RasSecurityDialogBegin(HPORT hPort,PBYTE pSendBuf,DWORD SendBufSize,PBYTE pRecvBuf,DWORD RecvBufSize,VOID (WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE *));
+DWORD WINAPI RasSecurityDialogEnd(HPORT hPort);
+DWORD WINAPI RasSecurityDialogSend(HPORT hPort,PBYTE pBuffer,WORD BufferLength);
+DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLength,DWORD Timeout,HANDLE hEvent);
+DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
+
+#endif