2018-08-27 03:38:41 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Alistair Leslie-Hughes
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SAL_H__
|
|
|
|
#define __WINE_SAL_H__
|
|
|
|
|
2018-10-05 14:43:38 +02:00
|
|
|
|
|
|
|
#define _Always_(exp)
|
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _At_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _At_buffer_(a, b, c, d)
|
|
|
|
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Check_return_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Check_return_opt_
|
2018-08-27 03:38:41 +02:00
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _COM_Outptr_
|
|
|
|
#define _COM_Outptr_result_maybenull_
|
|
|
|
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Deref_out_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Deref_out_z_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Deref_out_opt_
|
|
|
|
#define _Deref_out_opt_z_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Deref_post_maybenull_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Deref_post_opt_cap_(count)
|
|
|
|
#define _Deref_post_opt_valid_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Deref_post_opt_z_cap_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Deref_post_valid_
|
|
|
|
#define _Deref_post_z_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Deref_pre_maybenull_
|
|
|
|
#define _Deref_pre_z_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Deref_prepost_opt_z_
|
2018-12-14 06:56:11 +01:00
|
|
|
#define _Deref_ret_z_
|
2018-10-05 14:43:38 +02:00
|
|
|
|
|
|
|
#define _Field_range_(min, max)
|
2018-08-27 03:38:41 +02:00
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define __in
|
|
|
|
#define __in_opt
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_
|
|
|
|
#define _In_bytecount_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_bytecount_c_(count)
|
|
|
|
#define _In_bytecount_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_count_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_count_c_(count)
|
|
|
|
#define _In_count_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_opt_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_opt_bytecount_(count)
|
|
|
|
#define _In_opt_bytecount_c_(count)
|
|
|
|
#define _In_opt_bytecount_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_opt_count_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_opt_count_c_(count)
|
|
|
|
#define _In_opt_count_x_(count)
|
|
|
|
#define _In_opt_ptrdiff_count_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_opt_z_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_opt_z_count_(count)
|
|
|
|
#define _In_opt_z_count_c_(count)
|
|
|
|
#define _In_opt_z_bytecount_(count)
|
|
|
|
#define _In_opt_z_bytecount_c_(count)
|
|
|
|
#define _In_ptrdiff_count_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _In_range_(min, max)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_reads_(count)
|
|
|
|
#define _In_reads_bytes_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _In_reads_bytes_opt_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _In_reads_opt_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_reads_opt_z_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _In_reads_or_z_(count)
|
|
|
|
#define _In_reads_or_z_opt_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _In_reads_z_(count)
|
|
|
|
#define _In_z_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _In_z_bytecount_(count)
|
|
|
|
#define _In_z_bytecount_c_(count)
|
|
|
|
#define _In_z_count_(count)
|
|
|
|
#define _In_z_count_c_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define __inout
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Inout_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Inout_bytecap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Inout_cap_(count)
|
|
|
|
#define _Inout_opt_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Inout_opt_cap_c_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Inout_opt_z_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Inout_opt_z_bytecap_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Inout_updates_(count)
|
|
|
|
#define _Inout_updates_bytes_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Inout_updates_bytes_all_opt_(count)
|
2020-01-22 00:43:58 +01:00
|
|
|
#define _Inout_updates_bytes_opt_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Inout_updates_opt_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Inout_updates_z_(count)
|
2018-11-06 11:40:43 +01:00
|
|
|
#define _Inout_updates_opt_z_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Inout_z_
|
|
|
|
#define _Inout_z_bytecap_(count)
|
|
|
|
#define _Inout_z_cap_(count)
|
|
|
|
#define _Inout_z_cap_c_(count)
|
|
|
|
|
|
|
|
#define _Null_terminated_
|
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define __out
|
|
|
|
#define __out_opt
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Outptr_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_bytecap_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_bytecap_c_(count)
|
|
|
|
#define _Out_bytecap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_bytecapcount_(count)
|
|
|
|
#define _Out_bytecap_post_bytecount_(count1, count2)
|
|
|
|
#define _Out_cap_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_cap_c_(count)
|
|
|
|
#define _Out_cap_m_(count1, count2)
|
|
|
|
#define _Out_cap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_cap_post_count_(count1, count2)
|
|
|
|
#define _Out_opt_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_opt_bytecap_(count)
|
|
|
|
#define _Out_opt_bytecap_c_(count)
|
|
|
|
#define _Out_opt_bytecap_x_(count)
|
|
|
|
#define _Out_opt_bytecap_post_bytecount_(count1, count2)
|
|
|
|
#define _Out_opt_bytecapcount_(count)
|
|
|
|
#define _Out_opt_cap_(count)
|
|
|
|
#define _Out_opt_cap_m_(count1, count2)
|
|
|
|
#define _Out_opt_cap_c_(count)
|
|
|
|
#define _Out_opt_cap_x_(count)
|
|
|
|
#define _Out_opt_cap_post_count_(count1, count2)
|
|
|
|
#define _Out_opt_ptrdiff_cap_(count)
|
|
|
|
#define _Out_opt_z_bytecap_(count)
|
|
|
|
#define _Out_opt_z_bytecap_c_(count)
|
|
|
|
#define _Out_opt_z_bytecap_x_(count)
|
|
|
|
#define _Out_opt_z_bytecap_post_bytecount_(count1, count2)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_opt_z_cap_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_opt_z_cap_c_(count)
|
|
|
|
#define _Out_opt_z_cap_m_(count1, count2)
|
|
|
|
#define _Out_opt_z_cap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_opt_z_cap_post_count_(count1, count2)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_ptrdiff_cap_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_writes_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Out_writes_all_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Out_writes_bytes_(count)
|
|
|
|
#define _Out_writes_bytes_all_(count)
|
|
|
|
#define _Out_writes_bytes_all_opt_(count)
|
|
|
|
#define _Out_writes_bytes_opt_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_writes_bytes_to_(count1, count2)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Out_writes_bytes_to_opt_(count1, count2)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_writes_opt_(count)
|
|
|
|
#define _Out_writes_opt_z_(count)
|
|
|
|
#define _Out_writes_to_(count1, count2)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Out_writes_to_opt_(count1, count2)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_writes_z_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_z_bytecap_(count)
|
|
|
|
#define _Out_z_bytecap_c_(count)
|
|
|
|
#define _Out_z_bytecap_x_(count)
|
|
|
|
#define _Out_z_bytecap_post_bytecount_(count1, count2)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_z_cap_(count)
|
|
|
|
#define _Out_z_cap_c_(count)
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Out_z_cap_m_(count1, count2)
|
|
|
|
#define _Out_z_cap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Out_z_cap_post_count_(count1, count2)
|
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Outptr_opt_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Outptr_result_buffer_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Outptr_result_buffer_maybenull_(count)
|
|
|
|
#define _Outptr_result_maybenull_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Outptr_result_maybenull_z_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Outptr_result_nullonfailure_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Outptr_result_z_
|
2018-08-27 03:38:41 +02:00
|
|
|
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Param_(p)
|
|
|
|
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Post_count_(count)
|
|
|
|
#define _Post_count_c_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Post_equal_to_(exp)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Post_invalid_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Post_maybez_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Post_ptr_invalid_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Post_readable_byte_size_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Post_readable_size_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Post_same_lock_(exp, exp1)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Post_satisfies_(exp)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Post_writable_byte_size_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Post_writable_size_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Post_z_
|
|
|
|
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Pre_cap_for_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Pre_maybenull_
|
|
|
|
#define _Pre_notnull_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Pre_null_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Pre_opt_z_
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Pre_valid_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Pre_writable_size_(count)
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Pre_z_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Prepost_z_
|
2018-08-27 03:38:41 +02:00
|
|
|
|
|
|
|
#define _Printf_format_string_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Printf_format_string_params_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Reserved_
|
|
|
|
|
|
|
|
#define _Result_nullonfailure_
|
|
|
|
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Ret_maybenull_
|
|
|
|
#define _Ret_maybenull_z_
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Ret_notnull_
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Ret_opt_
|
2018-12-17 06:30:13 +01:00
|
|
|
#define _Ret_opt_bytecap_(count)
|
|
|
|
#define _Ret_opt_bytecap_x_(count)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Ret_opt_z_cap_(count)
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Ret_range_(exp,exp2)
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Ret_writes_bytes_maybenull_(count)
|
|
|
|
#define _Ret_z_
|
|
|
|
|
2019-07-30 01:07:38 +02:00
|
|
|
#define _Return_type_success_(count)
|
|
|
|
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _Scanf_format_string_
|
|
|
|
#define _Scanf_format_string_params_(count)
|
|
|
|
#define _Scanf_s_format_string_
|
|
|
|
#define _Scanf_s_format_string_params_(count)
|
|
|
|
|
2018-08-27 03:38:41 +02:00
|
|
|
#define _Success_(exp)
|
|
|
|
|
2018-10-05 14:43:38 +02:00
|
|
|
#define _When_(exp1, exp2)
|
|
|
|
|
2018-08-27 03:38:41 +02:00
|
|
|
#endif
|