-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathutils.h
30 lines (20 loc) · 797 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
/*
superUser 6.0
Copyright 2019-2025 https://github.com/mspaintmsi/superUser
utils.h
Utility functions
- Memory allocation
- Console output
*/
// Allocate a block of memory from the process heap.
LPVOID allocHeap( DWORD dwFlags, SIZE_T dwBytes );
// Free a block of memory allocated from the process heap.
void freeHeap( LPVOID lpMem );
// Print a string to standard output using the current console output code page.
BOOL printConsole( const wchar_t* pwszString );
// Print a formatted string with variable arguments to standard output
// using the current console output code page.
BOOL printFmtConsole( const wchar_t* pwszFormat, ... );
// Print an error message to standard error output.
void printError( const wchar_t* pwszMessage, DWORD dwCode, int iPosition );