#include <windows.h>
Go to the source code of this file.
|
HANDLE WINAPI | FindFirstFileA (LPCSTR path, LPWIN32_FIND_DATAA data) |
|
BOOL WINAPI | FindNextFileA (HANDLE handle, LPWIN32_FIND_DATAA data) |
|
HINSTANCE WINAPI | LoadLibraryA (LPCSTR path) |
|
int WINAPI | MessageBoxA (HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType) |
|
BOOL WINAPI | CreateDirectoryA (LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes) |
|
BOOL WINAPI | GetFileAttributesExA (LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation) |
|
DWORD WINAPI | GetModuleFileNameA (HMODULE hModule, LPSTR lpFileName, DWORD nSize) |
|
◆ CreateDirectoryA()
BOOL WINAPI CreateDirectoryA |
( |
LPCSTR |
lpPathName, |
|
|
LPSECURITY_ATTRIBUTES |
lpSecurityAttributes |
|
) |
| |
Definition at line 62 of file ascii.c.
64 WCHAR wbuffer[MAX_PATH];
66 if (!MultiByteToWideChar(CP_ACP, 0, lpPathName, -1, wbuffer, MAX_PATH)) {
70 return CreateDirectoryW(wbuffer, lpSecurityAttributes);
◆ FindFirstFileA()
HANDLE WINAPI FindFirstFileA |
( |
LPCSTR |
path, |
|
|
LPWIN32_FIND_DATAA |
data |
|
) |
| |
Definition at line 3 of file ascii.c.
5 WCHAR wbuffer[MAX_PATH];
7 WIN32_FIND_DATAW wdata;
9 if (!MultiByteToWideChar(CP_ACP, 0, path, -1, wbuffer, MAX_PATH)) {
10 return INVALID_HANDLE_VALUE;
13 ret = FindFirstFileW(wbuffer, &wdata);
14 if (ret != INVALID_HANDLE_VALUE) {
15 memcpy(data, &wdata, FIELD_OFFSET(WIN32_FIND_DATAA, cFileName));
16 WideCharToMultiByte(CP_ACP, 0, wdata.cFileName, -1, data->cFileName, MAX_PATH, NULL, NULL);
Referenced by Sys_ListFiles_r().
◆ FindNextFileA()
BOOL WINAPI FindNextFileA |
( |
HANDLE |
handle, |
|
|
LPWIN32_FIND_DATAA |
data |
|
) |
| |
Definition at line 22 of file ascii.c.
25 WIN32_FIND_DATAW wdata;
27 ret = FindNextFileW(
handle, &wdata);
29 memcpy(data, &wdata, FIELD_OFFSET(WIN32_FIND_DATAA, cFileName));
30 WideCharToMultiByte(CP_ACP, 0, wdata.cFileName, -1, data->cFileName, MAX_PATH, NULL, NULL);
Referenced by Sys_ListFiles_r().
◆ GetFileAttributesExA()
BOOL WINAPI GetFileAttributesExA |
( |
LPCSTR |
lpFileName, |
|
|
GET_FILEEX_INFO_LEVELS |
fInfoLevelId, |
|
|
LPVOID |
lpFileInformation |
|
) |
| |
Definition at line 73 of file ascii.c.
75 WCHAR wbuffer[MAX_PATH];
77 if (!MultiByteToWideChar(CP_ACP, 0, lpFileName, -1, wbuffer, MAX_PATH)) {
81 return GetFileAttributesExW(wbuffer, fInfoLevelId, lpFileInformation);
◆ GetModuleFileNameA()
DWORD WINAPI GetModuleFileNameA |
( |
HMODULE |
hModule, |
|
|
LPSTR |
lpFileName, |
|
|
DWORD |
nSize |
|
) |
| |
Definition at line 84 of file ascii.c.
86 WCHAR wbuffer[MAX_PATH];
89 if (nSize > MAX_PATH) {
93 ret = GetModuleFileNameW(hModule, wbuffer, nSize);
95 if (!WideCharToMultiByte(CP_ACP, 0, wbuffer, ret, lpFileName, ret, NULL, NULL)) {
Referenced by fix_current_directory().
◆ LoadLibraryA()
HINSTANCE WINAPI LoadLibraryA |
( |
LPCSTR |
path | ) |
|
Definition at line 36 of file ascii.c.
38 WCHAR wbuffer[MAX_PATH];
40 if (!MultiByteToWideChar(CP_ACP, 0, path, -1, wbuffer, MAX_PATH)) {
44 return LoadLibraryW(wbuffer);
Referenced by Sys_LoadLibrary().
◆ MessageBoxA()
int WINAPI MessageBoxA |
( |
HWND |
hWnd, |
|
|
LPCSTR |
lpText, |
|
|
LPCSTR |
lpCaption, |
|
|
UINT |
uType |
|
) |
| |
Definition at line 47 of file ascii.c.
52 if (!MultiByteToWideChar(CP_ACP, 0, lpText, -1, wText, 4096)) {
55 if (!MultiByteToWideChar(CP_ACP, 0, lpCaption, -1, wCaption, 256)) {
59 return MessageBoxW(hWnd, wText, wCaption, uType);
Referenced by Sys_Error().