30 #ifndef GENAPI_GENAPIRTSSUTILITIES_DEF_H_ 31 #define GENAPI_GENAPIRTSSUTILITIES_DEF_H_ 39 #if defined(UNDER_RTSS) && defined(GENICAM_BUILD) 42 #endif // defined(htons) 46 #endif // defined(ntohs) 50 #endif // defined(htonl) 54 #endif // defined(ntohl) 57 #define HTONS(n) (unsigned short)(((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8)) 58 #define NTOHS(n) (unsigned short)(((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8)) 60 #define HTONL(n) (unsigned long)(((((unsigned long)(n) & 0xFF)) << 24) | \ 61 ((((unsigned long)(n) & 0xFF00)) << 8) | \ 62 ((((unsigned long)(n) & 0xFF0000)) >> 8) | \ 63 ((((unsigned long)(n) & 0xFF000000)) >> 24)) 65 #define NTOHL(n) (unsigned long)(((((unsigned long)(n) & 0xFF)) << 24) | \ 66 ((((unsigned long)(n) & 0xFF00)) << 8) | \ 67 ((((unsigned long)(n) & 0xFF0000)) >> 8) | \ 68 ((((unsigned long)(n) & 0xFF000000)) >> 24)) 70 #define htons(n) HTONS(n) 71 #define ntohs(n) NTOHS(n) 73 #define htonl(n) HTONL(n) 74 #define ntohl(n) NTOHL(n) 79 #if defined(UNDER_RTSS) 85 WINBASEAPI __out HANDLE WINAPI FindFirstFileExW(
86 __in LPCWSTR lpFileName,
87 __in FINDEX_INFO_LEVELS fInfoLevelId,
88 __out LPVOID lpFindFileData,
89 __in FINDEX_SEARCH_OPS fSearchOp,
90 __reserved LPVOID lpSearchFilter,
91 __in DWORD dwAdditionalFlags
94 WINBASEAPI __out HANDLE WINAPI FindFirstFileExA(
95 __in LPCSTR lpFileName,
96 __in FINDEX_INFO_LEVELS fInfoLevelId,
97 __out LPVOID lpFindFileData,
98 __in FINDEX_SEARCH_OPS fSearchOp,
99 __reserved LPVOID lpSearchFilter,
100 __in DWORD dwAdditionalFlags
103 WINBASEAPI BOOL WINAPI FindNextFileW(
104 __in HANDLE hFindFile,
105 __out LPWIN32_FIND_DATAW lpFindFileData
108 WINBASEAPI BOOL WINAPI FindNextFileA(
109 __in HANDLE hFindFile,
110 __out LPWIN32_FIND_DATAA lpFindFileData
113 WINBASEAPI BOOL WINAPI FindClose(
114 __inout HANDLE hFindHandle
117 WINBASEAPI BOOL WINAPI SystemTimeToTzSpecificLocalTime(
118 __in_opt CONST TIME_ZONE_INFORMATION * lpTimeZoneInformation,
119 __in CONST SYSTEMTIME * lpUniversalTime,
120 __out LPSYSTEMTIME lpLocalTime
123 WINBASEAPI UINT WINAPI GetDriveTypeW(
124 __in_opt LPCWSTR lpRootPathName
127 WINBASEAPI UINT WINAPI GetDriveTypeA(
128 __in_opt LPCSTR lpRootPathName
131 WINBASEAPI BOOL WINAPI GetFileInformationByHandle(
133 __out LPBY_HANDLE_FILE_INFORMATION lpFileInformation
137 WINBASEAPI BOOL WINAPI PeekNamedPipe(
138 __in HANDLE hNamedPipe,
139 __out_bcount_part_opt(nBufferSize, *lpBytesRead) LPVOID lpBuffer,
140 __in DWORD nBufferSize,
141 __out_opt LPDWORD lpBytesRead,
142 __out_opt LPDWORD lpTotalBytesAvail,
143 __out_opt LPDWORD lpBytesLeftThisMessage
146 WINBASEAPI DWORD WINAPI GetFullPathNameW(
147 __in LPCWSTR lpFileName,
148 __in DWORD nBufferLength,
149 __out_ecount_part_opt(nBufferLength,
return +1) LPWSTR lpBuffer,
150 __deref_opt_out LPWSTR * lpFilePart
153 WINBASEAPI BOOL WINAPI SetCurrentDirectoryW(
154 __in LPCWSTR lpPathName
157 WINBASEAPI DWORD WINAPI GetCurrentDirectoryW(
158 __in DWORD nBufferLength,
159 __out_ecount_part_opt(nBufferLength,
return +1) LPWSTR lpBuffer
162 WINBASEAPI DWORD WINAPI GetFullPathNameA(
163 __in LPCSTR lpFileName,
164 __in DWORD nBufferLength,
165 __out_ecount_part_opt(nBufferLength,
return +1) LPSTR lpBuffer,
166 __deref_opt_out LPSTR * lpFilePart
169 WINBASEAPI UINT WINAPI SetErrorMode(
173 WINBASEAPI LANGID WINAPI GetUserDefaultLangID(
void);
176 WINBASEAPI DWORD WINAPI GetFileAttributesW(
177 __in LPCWSTR lpFileName
180 WINBASEAPI DWORD WINAPI GetFileAttributesA(
181 __in LPCSTR lpFileName
184 WINBASEAPI BOOL WINAPI GetFileAttributesExW(
185 __in LPCWSTR lpFileName,
186 __in GET_FILEEX_INFO_LEVELS fInfoLevelId,
187 __out LPVOID lpFileInformation
190 WINBASEAPI BOOL WINAPI GetModuleHandleExA(
192 __in_opt LPCSTR lpModuleName,
193 __out HMODULE * phModule
196 WINBASEAPI HLOCAL WINAPI LocalFree(
200 WINBASEAPI BOOL WINAPI CopyFileA(
201 __in LPCSTR lpExistingFileName,
202 __in LPCSTR lpNewFileName,
203 __in BOOL bFailIfExists
210 WINBASEAPI UINT WINAPI GetSystemDirectoryA(
211 __out_ecount_part_opt(uSize,
return + 1) LPSTR lpBuffer,
215 WINBASEAPI DWORD WINAPI GetTempPathA(
216 __in DWORD nBufferLength,
217 __out_ecount_part_opt(nBufferLength,
return + 1) LPSTR lpBuffer
220 WINBASEAPI BOOL WINAPI GetThreadTimes(
222 __out LPFILETIME lpCreationTime,
223 __out LPFILETIME lpExitTime,
224 __out LPFILETIME lpKernelTime,
225 __out LPFILETIME lpUserTime
228 WINBASEAPI BOOL WINAPI SetConsoleOutputCP(
229 __in UINT wCodePageID
232 WINBASEAPI BOOL WINAPI SetEnvironmentVariableW(
234 __in_opt LPCWSTR lpValue
238 WINBASEAPI __success(
return < nSize) __success(return != 0) DWORD WINAPI GetEnvironmentVariableA(
239 __in_opt LPCSTR lpName,
240 __out_ecount_part_opt(nSize, return + 1) LPSTR lpBuffer,
244 WINBASEAPI BOOL WINAPI CopyFileW(
245 __in LPCWSTR lpExistingFileName,
246 __in LPCWSTR lpNewFileName,
247 __in BOOL bFailIfExists
254 #endif // defined(UNDER_RTSS) 256 #endif // GENAPI_GENAPIRTSSUTILITIES_DEF_H_