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.

19 lines
400 B

  1. #ifndef _SAFERUN_H
  2. #define _SAFERUN_H
  3. /*
  4. * IsSafeToRun
  5. *
  6. * return codes:
  7. * S_OPENFILE : file should be opened
  8. * S_SAVEFILE : file should be saved
  9. *
  10. * errors:
  11. * E_FAIL, E_INVALIDARG, hrUserCancel
  12. *
  13. */
  14. HRESULT IsSafeToRun(HWND hwnd, LPCWSTR lpszFileName, BOOL fPrompt);
  15. HRESULT VerifyTrust(HWND hwnd, LPCWSTR pszFileName, LPCWSTR pszPathName);
  16. #endif //_SAFERUN_H