| | |
| | | |
| | | #include "system/base.hpp" |
| | | |
| | | #ifdef _XWIN |
| | | typedef struct _GUID { |
| | | unsigned long Data1; |
| | | unsigned short Data2; |
| | |
| | | extern "C" |
| | | { |
| | | void WINAPI SysFreeString(BSTR str);//OleAut32.dll |
| | | void * WINAPI LoadLibraryW(const wchar_t* lpText); |
| | | HMODULE WINAPI LoadLibraryW(const wchar_t* lpText); |
| | | bool WINAPI FreeLibrary(void * hModule); |
| | | void * WINAPI GetProcAddressW(void* hModule, const char* lpText); |
| | | void * WINAPI GetProcAddressW(HMODULE hModule, const char* lpText); |
| | | |
| | | LPARAM WINAPI GetPropW(HWND hWnd,string lpString); |
| | | |
| | |
| | | HWND WINAPI FindWindowW(string lpClassName, string lpWindowName);//native from "user32.dll" alias "FindWindowW"; |
| | | |
| | | int WINAPI GetTempPathW(int NAME_LEN,string & OutPath) ;//native from "kernel32.dll" alias "GetTempPathW"; |
| | | int WINAPI GetModuleHandleW(string lpModuleName) ;//native from "kernel32.dll" alias "GetModuleHandleW"; |
| | | int WINAPI GetModuleFileNameW(int hModule ,string lpFileName, int nSize);//native from "kernel32.dll" alias "GetModuleFileNameW"; |
| | | HMODULE WINAPI GetModuleHandleW(string lpModuleName) ;//native from "kernel32.dll" alias "GetModuleHandleW"; |
| | | int WINAPI GetModuleFileNameW(HMODULE hModule ,string lpFileName, int nSize);//native from "kernel32.dll" alias "GetModuleFileNameW"; |
| | | void WINAPI GetLocalTime(SYSTEMTIME& lpSystemTime) ;//native from "kernel32.dll" alias "GetLocalTime"; |
| | | int WINAPI PathRemoveFileSpecW(string lpFileName);// native from "shlwapi.dll" alias "PathRemoveFileSpecW"; |
| | | |
| | |
| | | #define PathRemoveFileSpec PathRemoveFileSpecW |
| | | #define SetWindowText SetWindowTextW |
| | | #define GetWindowText GetWindowTextW |
| | | #endif |
| | | |
| | | #if 0 |
| | | namespace win32 |
| | |
| | | HWND FindWindowW(string lpClassName, string lpWindowName);//native from "user32.dll" alias "FindWindowW"; |
| | | |
| | | int GetTempPathW(int NAME_LEN,string & OutPath) ;//native from "kernel32.dll" alias "GetTempPathW"; |
| | | int GetModuleHandleW(string lpModuleName) ;//native from "kernel32.dll" alias "GetModuleHandleW"; |
| | | HMODULE GetModuleHandleW(string lpModuleName) ;//native from "kernel32.dll" alias "GetModuleHandleW"; |
| | | int GetModuleFileName(int hModule ,string & lpFileName ,int nSize ) ;//native from "kernel32.dll" alias "GetModuleFileName"; |
| | | void GetLocalTime(SYSTEMTIME& lpSystemTime) ;//native from "kernel32.dll" alias "GetLocalTime"; |
| | | |