Project

General

Profile

Support Request #14449 » library_includes_windows.h

hidden, 2021-06-07 08:20

 
1
/**
2
 *
3
 * Library standard includes for windows shitty SDK.
4
 *
5
 * @file
6
 * Copyright © Audi Electronics Venture GmbH. All rights reserved
7
 *
8
 * $Author: SO6T8L4 $
9
 * $Date: 2014-11-04 10:55:24 +0100 (Tue, 04 Nov 2014) $
10
 * $Revision: 1131 $
11
 *
12
 * @remarks
13
 *
14
 */
15
#ifndef __LIBRARIES_WINDOWS_SHIT_STANDARD_INCLUDES_HEADER
16
#define __LIBRARIES_WINDOWS_SHIT_STANDARD_INCLUDES_HEADER
17

    
18
    #ifdef WIN32
19
        #include <windows.h>
20
        #include <AclAPI.h>
21
        #include <objbase.h>
22

    
23
        #pragma message("use winsock")
24
        #include <winsock2.h>
25
        #include <ws2tcpip.h>
26
        #pragma comment(lib, "ws2_32.lib")
27

    
28
        #include <shlobj.h>
29
        #include <shellapi.h> 
30
        #include <mapi.h>
31

    
32

    
33
        #include <mmsystem.h>
34
        #pragma comment(lib, "winmm.lib")
35

    
36
        #pragma comment(lib, "shell32.lib")
37
        #pragma comment(lib, "advapi32.lib")
38

    
39
        //windows shitty defines 
40
        #ifdef RegisterClass
41
            #undef RegisterClass
42
        #endif
43
        #ifdef RegisterObject
44
            #undef RegisterObject
45
        #endif
46
        #ifdef GetUserName
47
            #undef GetUserName
48
        #endif
49
        #ifdef GetComputerName
50
            #undef GetComputerName
51
        #endif
52

    
53
        #include <tchar.h>
54
    #endif //WIN32
55
#endif // __LIBRARIES_WINDOWS_SHIT_STANDARD_INCLUDES_HEADER
(3-3/7)