Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/ntdsbcli.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 |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef _NTDSBCLI_H_ | |
| 7 #define _NTDSBCLI_H_ | |
| 8 | |
| 9 #ifdef __cplusplus | |
| 10 extern "C" { | |
| 11 #endif | |
| 12 | |
| 13 #define xRPC_STRING | |
| 14 | |
| 15 typedef unsigned short WCHAR; | |
| 16 | |
| 17 #ifndef _NTDSBCLI_DEFINED | |
| 18 #define NTDSBCLI_API __declspec(dllimport) _stdcall | |
| 19 #else | |
| 20 #define NTDSBCLI_API | |
| 21 #endif | |
| 22 | |
| 23 #ifndef _HRESULT_DEFINED | |
| 24 #define _HRESULT_DEFINED | |
| 25 typedef LONG HRESULT; | |
| 26 #endif | |
| 27 | |
| 28 #define g_wszBackupAnnotation L"NTDS Backup Interface" | |
| 29 #define g_aszBackupAnnotation "NTDS Backup Interface" | |
| 30 | |
| 31 #define g_wszRestoreAnnotation L"NTDS Restore Interface" | |
| 32 #define g_aszRestoreAnnotation "NTDS Restore Interface" | |
| 33 | |
| 34 #ifdef UNICODE | |
| 35 #define g_szBackupAnnotation g_wszBackupAnnotation | |
| 36 #define g_szRestoreAnnotation g_wszRestoreAnnotation | |
| 37 #else | |
| 38 #define g_szBackupAnnotation g_aszBackupAnnotation | |
| 39 #define g_szRestoreAnnotation g_aszRestoreAnnotation | |
| 40 #endif | |
| 41 | |
| 42 #define BACKUP_TYPE_FULL 0x01 | |
| 43 #define BACKUP_TYPE_LOGS_ONLY 0x02 | |
| 44 #define BACKUP_TYPE_INCREMENTAL 0x04 | |
| 45 | |
| 46 #define RESTORE_TYPE_AUTHORATATIVE 0x01 | |
| 47 #define RESTORE_TYPE_ONLINE 0x02 | |
| 48 #define RESTORE_TYPE_CATCHUP 0x04 | |
| 49 | |
| 50 #define BACKUP_DISABLE_INCREMENTAL 0xffffffff | |
| 51 | |
| 52 #ifdef UNICODE | |
| 53 typedef WCHAR BFT; | |
| 54 #else | |
| 55 typedef CHAR BFT; | |
| 56 #endif | |
| 57 | |
| 58 #define BFT_DIRECTORY 0x80 | |
| 59 #define BFT_DATABASE_DIRECTORY 0x40 | |
| 60 #define BFT_LOG_DIRECTORY 0x20 | |
| 61 | |
| 62 #define BFT_LOG (BFT)(TEXT('\x01') | BFT_LOG_DIRECTORY) | |
| 63 #define BFT_LOG_DIR (BFT)(TEXT('\x02') | BFT_DIRECTORY) | |
| 64 #define BFT_CHECKPOINT_DIR (BFT)(TEXT('\x03') | BFT_DIRECTORY) | |
| 65 #define BFT_NTDS_DATABASE (BFT)(TEXT('\x04') | BFT_DATABASE_DIRECTORY) | |
| 66 #define BFT_PATCH_FILE (BFT)(TEXT('\x05') | BFT_LOG_DIRECTORY) | |
| 67 #define BFT_UNKNOWN (BFT)(TEXT('\x0f')) | |
| 68 | |
| 69 #include <ntdsbmsg.h> | |
| 70 | |
| 71 typedef void *HBC; | |
| 72 | |
| 73 typedef struct tagEDB_RSTMAPA { | |
| 74 char *szDatabaseName; | |
| 75 char *szNewDatabaseName; | |
| 76 } EDB_RSTMAPA,*PEDB_RSTMAPA; | |
| 77 | |
| 78 #define UNICODE_RSTMAP | |
| 79 | |
| 80 typedef struct tagEDB_RSTMAPW { | |
| 81 WCHAR *wszDatabaseName; | |
| 82 WCHAR *wszNewDatabaseName; | |
| 83 } EDB_RSTMAPW,*PEDB_RSTMAPW; | |
| 84 | |
| 85 #ifdef UNICODE | |
| 86 #define EDB_RSTMAP EDB_RSTMAPW | |
| 87 #define PEDB_RSTMAP PEDB_RSTMAPW | |
| 88 #else | |
| 89 #define EDB_RSTMAP EDB_RSTMAPA | |
| 90 #define PEDB_RSTMAP PEDB_RSTMAPA | |
| 91 #endif | |
| 92 | |
| 93 #ifdef UNICODE | |
| 94 #define DsIsNTDSOnline DsIsNTDSOnlineW | |
| 95 #define DsBackupPrepare DsBackupPrepareW | |
| 96 #define DsBackupGetDatabaseNames DsBackupGetDatabaseNamesW | |
| 97 #define DsBackupOpenFile DsBackupOpenFileW | |
| 98 #define DsBackupGetBackupLogs DsBackupGetBackupLogsW | |
| 99 #define DsRestoreGetDatabaseLocations DsRestoreGetDatabaseLocationsW | |
| 100 #define DsRestorePrepare DsRestorePrepareW | |
| 101 #define DsRestoreRegister DsRestoreRegisterW | |
| 102 #define DsSetCurrentBackupLog DsSetCurrentBackupLogW | |
| 103 #define DsSetAuthIdentity DsSetAuthIdentityW | |
| 104 #else | |
| 105 #define DsIsNTDSOnline DsIsNTDSOnlineA | |
| 106 #define DsBackupPrepare DsBackupPrepareA | |
| 107 #define DsBackupGetDatabaseNames DsBackupGetDatabaseNamesA | |
| 108 #define DsBackupOpenFile DsBackupOpenFileA | |
| 109 #define DsBackupGetBackupLogs DsBackupGetBackupLogsA | |
| 110 #define DsRestoreGetDatabaseLocations DsRestoreGetDatabaseLocationsA | |
| 111 #define DsRestorePrepare DsRestorePrepareA | |
| 112 #define DsRestoreRegister DsRestoreRegisterA | |
| 113 #define DsSetCurrentBackupLog DsSetCurrentBackupLogA | |
| 114 #define DsSetAuthIdentity DsSetAuthIdentityA | |
| 115 #endif | |
| 116 | |
| 117 HRESULT NTDSBCLI_API DsIsNTDSOnlineA(LPCSTR szServerName,WINBOOL *pfNTDSOnline); | |
| 118 HRESULT NTDSBCLI_API DsIsNTDSOnlineW(LPCWSTR szServerName,WINBOOL *pfNTDSOnline); | |
| 119 HRESULT NTDSBCLI_API DsBackupPrepareA(LPCSTR szBackupServer,ULONG grbit,ULONG btFlag,PVOID *ppvExpiryToken,LPDWORD pcbExpiryTokenSize,HBC *phbc); | |
| 120 HRESULT NTDSBCLI_API DsBackupPrepareW(LPCWSTR szBackupServer,ULONG grbit,ULONG btFlag,PVOID *ppvExpiryToken,LPDWORD pcbExpiryTokenSize,HBC *phbc); | |
| 121 HRESULT NTDSBCLI_API DsBackupGetDatabaseNamesA(HBC hbc,LPSTR *pszAttachmentInfo,LPDWORD pcbSize); | |
| 122 HRESULT NTDSBCLI_API DsBackupGetDatabaseNamesW(HBC hbc,LPWSTR *pszAttachmentInfo,LPDWORD pcbSize); | |
| 123 HRESULT NTDSBCLI_API DsBackupOpenFileA(HBC hbc,LPCSTR szAttachmentName,DWORD cbReadHintSize,LARGE_INTEGER *pliFileSize); | |
| 124 HRESULT NTDSBCLI_API DsBackupOpenFileW(HBC hbc,LPCWSTR szAttachmentName,DWORD cbReadHintSize,LARGE_INTEGER *pliFileSize); | |
| 125 HRESULT NTDSBCLI_API DsBackupRead(HBC hbc,PVOID pvBuffer,DWORD cbBuffer,PDWORD pcbRead); | |
| 126 HRESULT NTDSBCLI_API DsBackupClose(HBC hbc); | |
| 127 HRESULT NTDSBCLI_API DsBackupGetBackupLogsA(HBC hbc,LPSTR *pszBackupLogFiles,LPDWORD pcbSize); | |
| 128 HRESULT NTDSBCLI_API DsBackupGetBackupLogsW(HBC hbc,LPWSTR *pszBackupLogFiles,LPDWORD pcbSize); | |
| 129 HRESULT NTDSBCLI_API DsBackupTruncateLogs(HBC hbc); | |
| 130 HRESULT NTDSBCLI_API DsBackupEnd(HBC hbc); | |
| 131 VOID NTDSBCLI_API DsBackupFree(PVOID pvBuffer); | |
| 132 HRESULT NTDSBCLI_API DsRestoreGetDatabaseLocationsA(HBC hbc,LPSTR *pszDatabaseLocationList,LPDWORD pcbSize); | |
| 133 HRESULT NTDSBCLI_API DsRestoreGetDatabaseLocationsW(HBC hbc,LPWSTR *pszDatabaseLocationList,LPDWORD pcbSize); | |
| 134 HRESULT NTDSBCLI_API DsRestorePrepareA(LPCSTR szServerName,ULONG rtFlag,PVOID pvExpiryToken,DWORD cbExpiryTokenSize,HBC *phbc); | |
| 135 HRESULT NTDSBCLI_API DsRestorePrepareW(LPCWSTR szServerName,ULONG rtFlag,PVOID pvExpiryToken,DWORD cbExpiryTokenSize,HBC *phbc); | |
| 136 HRESULT NTDSBCLI_API DsRestoreRegisterA(HBC hbc,LPCSTR szCheckPointFilePath,LPCSTR szLogPath,EDB_RSTMAPA rgrstmap[],LONG crstmap,LPCSTR szBackupLogPath,ULONG genLow,ULONG genHigh); | |
| 137 HRESULT NTDSBCLI_API DsRestoreRegisterW(HBC hbc,LPCWSTR szCheckPointFilePath,LPCWSTR szLogPath,EDB_RSTMAPW rgrstmap[],LONG crstmap,LPCWSTR szBackupLogPath,ULONG genLow,ULONG genHigh); | |
| 138 HRESULT NTDSBCLI_API DsRestoreRegisterComplete(HBC hbc,HRESULT hrRestoreState); | |
| 139 HRESULT NTDSBCLI_API DsRestoreEnd(HBC hbc); | |
| 140 HRESULT NTDSBCLI_API DsSetCurrentBackupLogA(LPCSTR szServerName,DWORD dwCurrentLog); | |
| 141 HRESULT NTDSBCLI_API DsSetCurrentBackupLogW(LPCWSTR szServerName,DWORD dwCurrentLog); | |
| 142 HRESULT NTDSBCLI_API DsSetAuthIdentityA(LPCSTR szUserName,LPCSTR szDomainName,LPCSTR szPassword); | |
| 143 HRESULT NTDSBCLI_API DsSetAuthIdentityW(LPCWSTR szUserName,LPCWSTR szDomainName,LPCWSTR szPassword); | |
| 144 | |
| 145 #ifdef __cplusplus | |
| 146 } | |
| 147 #endif | |
| 148 #endif |
