From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/inc/ofslib.h | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 private/inc/ofslib.h (limited to 'private/inc/ofslib.h') diff --git a/private/inc/ofslib.h b/private/inc/ofslib.h new file mode 100644 index 000000000..d6f62f6b4 --- /dev/null +++ b/private/inc/ofslib.h @@ -0,0 +1,81 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992 - 1995. +// +// File: OfsLib.H +// +// Contents: Open support +// +// History: 20-Oct-95 VicH Created. +// +//---------------------------------------------------------------------------- + +#ifndef __OFSLIB_H__ +#define __OFSLIB_H__ + +#ifdef __cplusplus +extern "C" { +#endif + + +struct DRTIMPORTENTRY +{ + char *pszFunc; + FARPROC *ppfn; +}; + +struct DRTIMPORTMODULE +{ + WCHAR *pwszModule; + HANDLE hDll; + struct DRTIMPORTENTRY *adie; + ULONG cdie; +}; + +BOOLEAN InitModule(struct DRTIMPORTMODULE *pdim); + +NTSTATUS +OpenObject( + IN WCHAR const *pwszFile, + IN HANDLE hstgParent, + IN ULONG CreateOptions, + IN ULONG DesiredAccess, + IN ULONG ShareAccess, + IN ULONG CreateDisposition, + OUT HANDLE *ph); + +NTSTATUS +CreatePropertySet( + IN HANDLE hstg, + IN GUID const *pguid, + IN USHORT Flags, + IN NTMEMORYALLOCATOR pma, // caller's memory allocator + OPTIONAL OUT HANDLE *phstgps, + OUT HANDLE *phstm, + OUT NTMAPPEDSTREAM *pms, + OUT NTPROP *pnp); + +VOID +ClosePropertySet( + OPTIONAL IN HANDLE *phstgps, + IN HANDLE hstm, + IN NTPROP ms, + IN NTPROP np); + + +VOID SetProgramName(char *pszProg); + +VOID SetVerbose(BOOLEAN fVerbose); + +VOID SetUnicode(BOOLEAN fUnicode); + +VOID SetDefaultPropSetAccess(ULONG DesiredAccess); + +VOID SetUnicodeCallouts(VOID); + +#ifdef __cplusplus +} +#endif + +#endif // __OFSLIB_H__ -- cgit v1.2.3