diff options
Diffstat (limited to 'private/inc/ofslib.h')
-rw-r--r-- | private/inc/ofslib.h | 81 |
1 files changed, 81 insertions, 0 deletions
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__ |