GCRTSSUtilities.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2014 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenICam
00005 //  Author:  Maxime Dupont
00006 //  $Header$
00007 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00008 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00009 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00010 //  (http://www.genicam.org) for a full copy.
00011 //
00012 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00013 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00014 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00015 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00016 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00017 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00018 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00019 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00020 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00021 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00022 //  POSSIBILITY OF SUCH DAMAGE.
00023 //-----------------------------------------------------------------------------
00030 #ifndef GENAPI_GENAPIRTSSUTILITIES_DEF_H_
00031 #define GENAPI_GENAPIRTSSUTILITIES_DEF_H_
00032 
00033 #include "crtdefs.h"
00034 #include <stdio.h>
00035 #include <errno.h>
00036 #include <io.h>
00037 #include "windows.h"
00038 
00039 #if defined(UNDER_RTSS) && defined(GENICAM_BUILD)
00040 #if defined(htons)
00041 #undef htons
00042 #endif // defined(htons)
00043 
00044 #if defined(ntohs)
00045 #undef ntohs
00046 #endif // defined(ntohs)
00047 
00048 #if defined(htonl)
00049 #undef htonl
00050 #endif // defined(htonl)
00051 
00052 #if defined(ntohl)
00053 #undef ntohl
00054 #endif // defined(ntohl)
00055 
00056 
00057 #define HTONS(n) (unsigned short)(((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
00058 #define NTOHS(n) (unsigned short)(((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
00059 
00060 #define HTONL(n) (unsigned long)(((((unsigned long)(n) & 0xFF)) << 24) | \
00061                                  ((((unsigned long)(n) & 0xFF00)) << 8) | \
00062                                  ((((unsigned long)(n) & 0xFF0000)) >> 8) | \
00063                                  ((((unsigned long)(n) & 0xFF000000)) >> 24))
00064 
00065 #define NTOHL(n) (unsigned long)(((((unsigned long)(n) & 0xFF)) << 24) | \
00066                                  ((((unsigned long)(n) & 0xFF00)) << 8) | \
00067                                  ((((unsigned long)(n) & 0xFF0000)) >> 8) | \
00068                                  ((((unsigned long)(n) & 0xFF000000)) >> 24))
00069 
00070 #define htons(n) HTONS(n)
00071 #define ntohs(n) NTOHS(n)
00072 
00073 #define htonl(n) HTONL(n)
00074 #define ntohl(n) NTOHL(n)
00075 
00076 #endif
00077 
00078 
00079 #if defined(UNDER_RTSS)
00080 
00081 #ifdef __cplusplus
00082 extern "C" {
00083 #endif
00084 
00085 WINBASEAPI __out HANDLE WINAPI FindFirstFileExW(
00086    __in       LPCWSTR lpFileName,
00087    __in       FINDEX_INFO_LEVELS fInfoLevelId,
00088    __out      LPVOID lpFindFileData,
00089    __in       FINDEX_SEARCH_OPS fSearchOp,
00090    __reserved LPVOID lpSearchFilter,
00091    __in       DWORD dwAdditionalFlags
00092    );
00093 
00094 WINBASEAPI __out HANDLE WINAPI FindFirstFileExA(
00095    __in       LPCSTR lpFileName,
00096    __in       FINDEX_INFO_LEVELS fInfoLevelId,
00097    __out      LPVOID lpFindFileData,
00098    __in       FINDEX_SEARCH_OPS fSearchOp,
00099    __reserved LPVOID lpSearchFilter,
00100    __in       DWORD dwAdditionalFlags
00101    );
00102 
00103 WINBASEAPI BOOL WINAPI FindNextFileW(
00104    __in  HANDLE hFindFile,
00105    __out LPWIN32_FIND_DATAW lpFindFileData
00106    );
00107 
00108 WINBASEAPI BOOL WINAPI FindNextFileA(
00109    __in  HANDLE hFindFile,
00110    __out LPWIN32_FIND_DATAA lpFindFileData
00111    );
00112 
00113 WINBASEAPI BOOL WINAPI FindClose(
00114    __inout HANDLE hFindHandle
00115    );
00116 
00117 WINBASEAPI BOOL WINAPI SystemTimeToTzSpecificLocalTime(
00118    __in_opt CONST TIME_ZONE_INFORMATION * lpTimeZoneInformation,
00119    __in CONST SYSTEMTIME * lpUniversalTime,
00120    __out LPSYSTEMTIME lpLocalTime
00121    ); 
00122 
00123 WINBASEAPI UINT WINAPI GetDriveTypeW(
00124    __in_opt LPCWSTR lpRootPathName
00125    );
00126 
00127 WINBASEAPI UINT WINAPI GetDriveTypeA(
00128    __in_opt LPCSTR lpRootPathName
00129    );
00130 
00131 WINBASEAPI BOOL WINAPI GetFileInformationByHandle(
00132    __in HANDLE hFile,
00133    __out LPBY_HANDLE_FILE_INFORMATION lpFileInformation
00134    );
00135 
00136 
00137 WINBASEAPI BOOL WINAPI PeekNamedPipe(
00138    __in HANDLE hNamedPipe,
00139    __out_bcount_part_opt(nBufferSize, *lpBytesRead) LPVOID lpBuffer,
00140    __in DWORD nBufferSize,
00141    __out_opt LPDWORD lpBytesRead,
00142    __out_opt LPDWORD lpTotalBytesAvail,
00143    __out_opt LPDWORD lpBytesLeftThisMessage
00144    );
00145 
00146 WINBASEAPI DWORD WINAPI GetFullPathNameW(
00147    __in LPCWSTR lpFileName,
00148    __in DWORD nBufferLength,
00149    __out_ecount_part_opt(nBufferLength, return +1) LPWSTR lpBuffer,
00150    __deref_opt_out LPWSTR * lpFilePart
00151    );
00152 
00153 WINBASEAPI BOOL WINAPI SetCurrentDirectoryW(
00154    __in LPCWSTR lpPathName
00155    );
00156 
00157 WINBASEAPI DWORD WINAPI GetCurrentDirectoryW(
00158    __in DWORD nBufferLength,
00159    __out_ecount_part_opt(nBufferLength, return +1) LPWSTR lpBuffer
00160    );
00161 
00162 WINBASEAPI DWORD WINAPI GetFullPathNameA(
00163    __in LPCSTR lpFileName,
00164    __in DWORD nBufferLength,
00165    __out_ecount_part_opt(nBufferLength, return +1) LPSTR lpBuffer,
00166    __deref_opt_out LPSTR * lpFilePart
00167    );
00168 
00169 WINBASEAPI UINT WINAPI SetErrorMode(
00170    __in UINT uMode
00171    );
00172 
00173 WINBASEAPI LANGID WINAPI GetUserDefaultLangID(void);
00174 
00175 
00176 WINBASEAPI DWORD WINAPI GetFileAttributesW(
00177    __in LPCWSTR lpFileName
00178    );
00179 
00180 WINBASEAPI DWORD WINAPI GetFileAttributesA(
00181    __in LPCSTR lpFileName
00182    );
00183 
00184 WINBASEAPI BOOL WINAPI GetFileAttributesExW(
00185    __in LPCWSTR lpFileName,
00186    __in GET_FILEEX_INFO_LEVELS fInfoLevelId,
00187    __out LPVOID lpFileInformation
00188    );
00189 
00190 WINBASEAPI BOOL WINAPI GetModuleHandleExA(
00191    __in DWORD dwFlags,
00192    __in_opt LPCSTR lpModuleName,
00193    __out HMODULE * phModule
00194    );
00195 
00196 WINBASEAPI HLOCAL WINAPI LocalFree(
00197    __deref HLOCAL hMem
00198    );
00199 
00200 WINBASEAPI BOOL WINAPI CopyFileA(
00201    __in LPCSTR lpExistingFileName,
00202    __in LPCSTR lpNewFileName,
00203    __in BOOL bFailIfExists
00204    );
00205 
00206 // ************************************************************************
00207 // **********                   GenAPITest section               **********
00208 // ************************************************************************
00209 
00210 WINBASEAPI UINT WINAPI GetSystemDirectoryA(
00211    __out_ecount_part_opt(uSize, return + 1) LPSTR lpBuffer,
00212    __in UINT uSize
00213    );
00214 
00215 WINBASEAPI DWORD WINAPI GetTempPathA(
00216    __in DWORD nBufferLength,
00217    __out_ecount_part_opt(nBufferLength, return + 1) LPSTR lpBuffer
00218    );
00219 
00220 WINBASEAPI BOOL WINAPI GetThreadTimes(
00221    __in  HANDLE hThread,
00222    __out LPFILETIME lpCreationTime,
00223    __out LPFILETIME lpExitTime,
00224    __out LPFILETIME lpKernelTime,
00225    __out LPFILETIME lpUserTime
00226    );
00227 
00228 WINBASEAPI BOOL WINAPI SetConsoleOutputCP(
00229    __in UINT wCodePageID
00230    );
00231 
00232 WINBASEAPI BOOL WINAPI SetEnvironmentVariableW(
00233    __in     LPCWSTR lpName,
00234    __in_opt LPCWSTR lpValue
00235    );
00236 
00237 
00238 WINBASEAPI __success(return < nSize) __success(return != 0) DWORD WINAPI GetEnvironmentVariableA(
00239    __in_opt LPCSTR lpName,
00240    __out_ecount_part_opt(nSize, return + 1) LPSTR lpBuffer,
00241    __in DWORD nSize
00242    );
00243 
00244 WINBASEAPI BOOL WINAPI CopyFileW(
00245    __in LPCWSTR lpExistingFileName,
00246    __in LPCWSTR lpNewFileName,
00247    __in BOOL bFailIfExists
00248    );
00249 
00250 #ifdef __cplusplus
00251 }
00252 #endif
00253 
00254 #endif // defined(UNDER_RTSS)
00255 
00256 #endif // GENAPI_GENAPIRTSSUTILITIES_DEF_H_
00257 


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02