0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / OSD / OSD_WNT_1.hxx
CommitLineData
b311480e 1// Copyright (c) 1998-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#ifndef __OSD_WNT_H
16# define __OSD_WNT_H
17
18# ifndef STRICT
19# define STRICT
20# endif /* STRICT */
21
22# ifndef _INC_WINDOWS
23# include <windows.h>
24# endif /* _INC_WINDOWS */
25
26# ifndef _INC_TCHAR
27# include <tchar.h>
28# endif /* _INC_TCHAR */
29
30# ifndef OSDAPI
31# if !defined(HAVE_NO_DLL)
32# ifdef __OSD_DLL
33# define OSDAPI __declspec( dllexport )
34# else
35# define OSDAPI __declspec( dllimport )
36# endif /* OSD_DLL */
37# else
38# define OSDAPI
39# endif
40# endif /* OSDAPI */
41
42#if defined(__CYGWIN32__) || defined(__MINGW32__)
43#define _TINT int
44#endif
45
46# ifdef __cplusplus
47extern "C" {
48# endif /* __cplusplus */
49
50enum DIR_RESPONSE { DIR_ABORT, DIR_RETRY, DIR_IGNORE };
51
52enum MB_ITEMTYPE { MBT_BUTTON, MBT_ICON };
53
54#define FLAG_READ_PIPE 0x00000001
55#define FLAG_EOF 0x00000002
56#define FLAG_FILE 0x00000004
57#define FLAG_DIRECTORY 0x00000008
58#define FLAG_PIPE 0x00000010
59#define FLAG_SOCKET 0x00000020
60#define FLAG_NAMED_PIPE 0x00000040
61#define FLAG_DEVICE 0x00000080
62#define FLAG_TYPE 0x0000007C
63
64// 2 macros modified for VisualAge
65//#define LODWORD( a ) ( DWORD )( ( ( DWORDLONG )( a ) ) & 0x00000000FFFFFFFF )
66//#define HIDWORD( a ) ( DWORD )( ( ( DWORDLONG )( a ) ) >> 32 )
67
68#define LODWORD( a ) ( DWORD )( ( ( _int64 )( a ) ) & 0x00000000FFFFFFFF )
69#define HIDWORD( a ) ( DWORD )( ( ( _int64 )( a ) ) >> 32 )
70
71typedef struct _group_sid {
72
73 DWORD nCount;
74 PSID* pSID;
75
76 } GROUP_SID, *PGROUP_SID;
77
78typedef struct _MB_DESC {
79
80 MB_ITEMTYPE itemType;
81 _TINT itemId;
82 _TCHAR* buttonLabel;
83
84 } MB_DESC, *LPMB_DESC;
85
86
87typedef struct _file_ace {
88
89 ACE_HEADER header;
90 DWORD dwMask;
91 PSID pSID;
92
93 } FILE_ACE, *PFILE_ACE;
94
95typedef void ( *MOVE_DIR_PROC ) ( LPCTSTR, LPCTSTR );
96typedef void ( *COPY_DIR_PROC ) ( LPCTSTR, LPCTSTR );
97typedef void ( *DELETE_DIR_PROC ) ( LPCTSTR );
98
99typedef DIR_RESPONSE ( *RESPONSE_DIR_PROC ) ( LPCTSTR );
100
101#define GET_SID( pACE ) ( ( PSID )( ( ( PBYTE )pACE ) + \
102 sizeof ( ACE_HEADER ) + \
103 sizeof ( DWORD ) \
104 ) \
105 )
106
107#define GET_MSK( pACE ) ( ( PDWORD )( ( ( PBYTE )pACE ) + \
108 sizeof ( ACE_HEADER ) \
109 ) \
110 )
111
112PSECURITY_DESCRIPTOR OSDAPI AllocSD ( void );
113void OSDAPI FreeSD ( PSECURITY_DESCRIPTOR );
114
115LPVOID OSDAPI GetTokenInformationEx ( HANDLE, TOKEN_INFORMATION_CLASS );
116void OSDAPI FreeTokenInformation ( LPVOID );
117
118PSECURITY_DESCRIPTOR OSDAPI GetFileSecurityEx ( LPCTSTR, SECURITY_INFORMATION );
119void OSDAPI FreeFileSecurity ( PSECURITY_DESCRIPTOR );
120
121BOOL OSDAPI LookupAccountSidEx ( PSID, LPTSTR*, LPTSTR* );
122void OSDAPI FreeAccountNames ( LPTSTR, LPTSTR );
123
124PSID OSDAPI GetSecurityDescriptorOwnerEx ( PSECURITY_DESCRIPTOR );
125PSID OSDAPI GetSecurityDescriptorGroupEx ( PSECURITY_DESCRIPTOR );
126PACL OSDAPI GetSecurityDescriptorDaclEx ( PSECURITY_DESCRIPTOR );
127
128PACL OSDAPI CreateAcl ( DWORD );
129void OSDAPI FreeAcl ( PACL );
130
131BOOL OSDAPI PredefinedSid ( PSID );
132BOOL OSDAPI NtPredefinedSid ( PSID );
133PSID OSDAPI AdminSid ( void );
134PSID OSDAPI WorldSid ( void );
135PSID OSDAPI InteractiveSid ( void );
136PSID OSDAPI NetworkSid ( void );
137PSID OSDAPI LocalSid ( void );
138PSID OSDAPI DialupSid ( void );
139PSID OSDAPI BatchSid ( void );
140PSID OSDAPI CreatorOwnerSid ( void );
141PSID OSDAPI NullSid ( void );
142PSID OSDAPI NtSid ( void );
143
144PSID OSDAPI CopySidEx ( PSID );
145void OSDAPI FreeSidEx ( PSID );
146
147PGROUP_SID OSDAPI AllocGroupSid ( PSECURITY_DESCRIPTOR );
148void OSDAPI FreeGroupSid ( PGROUP_SID );
149
150PVOID OSDAPI AllocAccessAllowedAce ( DWORD, BYTE, PSID );
151void OSDAPI FreeAce ( PVOID );
152
7fd59977 153BOOL OSDAPI MoveDirectory ( LPCTSTR, LPCTSTR );
154BOOL OSDAPI CopyDirectory ( LPCTSTR, LPCTSTR );
155
7fd59977 156void OSDAPI SetMoveDirectoryProc ( MOVE_DIR_PROC );
157void OSDAPI SetCopyDirectoryProc ( COPY_DIR_PROC );
158void OSDAPI SetResponseDirectoryProc ( RESPONSE_DIR_PROC );
159
7fd59977 160# ifdef __cplusplus
161}
162# endif /* __cplusplus */
163
164#endif /* __OSD_WNT_H */