Leaked source code of windows server 2003
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.

26 lines
670 B

  1. //--------------------------------------------------------------------
  2. // utils - header
  3. // Copyright (C) Microsoft Corporation, 2001
  4. //
  5. // Created by: Duncan Bryce (duncanb), 11-11-2001
  6. //
  7. // Various utility functions
  8. #ifndef UTILS_H
  9. #define UTILS_H
  10. HRESULT MyMapFile(LPWSTR wszFileName, LPBYTE *ppbFile, DWORD *pcbFile);
  11. HRESULT MyUnmapFile(LPCVOID pvBaseAddress);
  12. void InitKeysvcUnicodeString(PKEYSVC_UNICODE_STRING pUnicodeString, LPCWSTR wszString);
  13. LPSTR MBFromWide(LPCWSTR wsz);
  14. typedef vector<LPWSTR> StringList;
  15. typedef StringList::iterator StringIter;
  16. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  17. #endif // UTILS_H