php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
winutil.c File Reference
#include "php.h"
#include "winutil.h"
#include "codepage.h"
#include <bcrypt.h>
#include <lmcons.h>

Go to the source code of this file.

Macros

#define NT_SUCCESS(Status)
 

Functions

PHP_WINUTIL_API char * php_win32_error_to_msg (HRESULT error)
 
PHP_WINUTIL_API void php_win32_error_msg_free (char *msg)
 
int php_win32_check_trailing_space (const char *path, const size_t path_len)
 
PHP_WINUTIL_API int php_win32_get_random_bytes (unsigned char *buf, size_t size)
 
PHP_WINUTIL_API int php_win32_code_to_errno (unsigned long w32Err)
 
PHP_WINUTIL_API char * php_win32_get_username (void)
 
PHP_WINUTIL_API BOOL php_win32_image_compatible (HMODULE handle, char **err)
 
PHP_WINUTIL_API BOOL php_win32_crt_compatible (char **err)
 

Macro Definition Documentation

◆ NT_SUCCESS

#define NT_SUCCESS ( Status)
Value:
(((NTSTATUS)(Status)) >= 0)

Definition at line 76 of file winutil.c.

Function Documentation

◆ php_win32_check_trailing_space()

int php_win32_check_trailing_space ( const char * path,
const size_t path_len )

Definition at line 57 of file winutil.c.

◆ php_win32_code_to_errno()

PHP_WINUTIL_API int php_win32_code_to_errno ( unsigned long w32Err)

Definition at line 134 of file winutil.c.

◆ php_win32_crt_compatible()

PHP_WINUTIL_API BOOL php_win32_crt_compatible ( char ** err)

Definition at line 485 of file winutil.c.

◆ php_win32_error_msg_free()

PHP_WINUTIL_API void php_win32_error_msg_free ( char * msg)

Definition at line 50 of file winutil.c.

◆ php_win32_error_to_msg()

PHP_WINUTIL_API char * php_win32_error_to_msg ( HRESULT error)

Definition at line 25 of file winutil.c.

◆ php_win32_get_random_bytes()

PHP_WINUTIL_API int php_win32_get_random_bytes ( unsigned char * buf,
size_t size )

Definition at line 103 of file winutil.c.

◆ php_win32_get_username()

PHP_WINUTIL_API char * php_win32_get_username ( void )

Definition at line 421 of file winutil.c.

◆ php_win32_image_compatible()

PHP_WINUTIL_API BOOL php_win32_image_compatible ( HMODULE handle,
char ** err )

Definition at line 479 of file winutil.c.