Source code of Windows XP (NT5)
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.

27 lines
1.1 KiB

  1. // zero fill functions
  2. #define ZERO_INIT_CLASS(base_class) \
  3. ClearMemory((PBYTE) ((base_class*) this) + sizeof(base_class*), \
  4. sizeof(*this) - sizeof(base_class*));
  5. #define ZERO_STRUCTURE(foo) ClearMemory(&foo, sizeof(foo))
  6. #define ClearMemory(p, cb) memset(p, 0, cb)
  7. // message box functions
  8. int MsgBox(int idString, UINT nType = MB_OK );
  9. int MsgBox(PCSTR pszMsg, UINT nType = MB_OK );
  10. PCSTR FindFilePortion( PCSTR pszFile );
  11. int JulianDate(int nDay, int nMonth, int nYear);
  12. HRESULT FileTimeToDateTimeString( FILETIME FileTime, LPTSTR pszDateTime );
  13. int FileTimeToJulianDate( FILETIME FileTime );
  14. // system directory functions
  15. typedef UINT (WINAPI *PFN_GETWINDOWSDIRECTORY)( LPTSTR lpBuffer, UINT uSize );
  16. typedef enum { HH_SYSTEM_WINDOWS_DIRECTORY, HH_USERS_WINDOWS_DIRECTORY } SYSDIRTYPES;
  17. UINT HHGetWindowsDirectory( LPSTR lpBuffer, UINT uSize, UINT uiType = HH_SYSTEM_WINDOWS_DIRECTORY );
  18. UINT HHGetHelpDirectory( LPSTR lpBuffer, UINT uSize );
  19. UINT HHGetGlobalCollectionPathname( LPTSTR lpBuffer, UINT uSize , BOOL *pbNewPath);
  20. HRESULT HHGetHelpDataPath( LPSTR pszPath );
  21. BOOL IsDirectory( LPCSTR lpszPathname );
  22. DWORD CreatePath(PSTR pszPath);