mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
//----------------------------------------------------------------------------
|
|
|
|
#ifndef WIN32
|
|
|
|
// fake up win32 stuff for 16 bit guys
|
|
|
|
typedef struct _SECURITY_ATTRIBUTES
|
|
{
|
|
DWORD nLength;
|
|
LPVOID lpSecurityDescriptor;
|
|
BOOL bInheritHandle;
|
|
} SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
|
|
|
|
BOOL WINAPI FileTimeToDosDateTime(LPFILETIME lpft, LPWORD lpwDOSDate, LPWORD lpwDOSTime);
|
|
BOOL WINAPI DosDateTimeToFileTime(WORD wDosDate, WORD wDosTime, LPFILETIME lpft);
|
|
|
|
#define ERROR_FILE_NOT_FOUND 2
|
|
#define ERROR_ACCESS_DENIED 5
|
|
#define ERROR_SHARING_VIOLATION 32
|
|
|
|
|
|
#endif
|
|
|
|
//
|
|
// REVIEW: Can't call these Kernel API's directly yet because they do not
|
|
// send us FS notification messages.
|
|
//
|
|
BOOL WINAPI Win32MoveFile(LPCTSTR lpszExisting, LPCTSTR lpszNew, BOOL fDir);
|
|
BOOL WINAPI Win32CreateDirectory(LPCTSTR lpszPath, LPSECURITY_ATTRIBUTES lpsa);
|
|
BOOL WINAPI Win32RemoveDirectory(LPCTSTR lpszDir);
|
|
HFILE WINAPI Win32_lcreat(LPCTSTR lpszFileName, int fnAttrib);
|
|
BOOL WINAPI Win32DeleteFile(LPCTSTR lpszFileName);
|
|
|
|
|