Path: blob/main/crypto/krb5/src/ccapi/common/win/OldCC/util.h
39587 views
/* ccapi/common/win/OldCC/util.h */1/*2* Copyright 2008 Massachusetts Institute of Technology.3* All Rights Reserved.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425#ifndef __UTIL_H__26#define __UTIL_H__2728#ifdef __cplusplus29extern "C" {30#endif3132BOOL isNT(void);3334void*35user_allocate(36size_t size37);3839void40user_free(41void* ptr42);4344void45free_alloc_p(46void* pptr47);4849DWORD50alloc_name(51LPSTR* pname,52LPSTR postfix,53BOOL isNT54);5556DWORD57alloc_own_security_descriptor_NT(58PSECURITY_DESCRIPTOR* ppsd59);6061DWORD62alloc_module_dir_name(63char* module,64char** pname65);6667DWORD68alloc_module_dir_name_with_file(69char* module,70char* file,71char** pname72);7374DWORD alloc_cmdline_2_args(75char* prog,76char* arg1,77char* arg2,78char** pname);7980#ifdef __cplusplus81}82#endif8384#endif /* __UTIL_H__ */858687