From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/nw/svcdlls/nwwks/inc/splutil.h | 81 ++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 private/nw/svcdlls/nwwks/inc/splutil.h (limited to 'private/nw/svcdlls/nwwks/inc/splutil.h') diff --git a/private/nw/svcdlls/nwwks/inc/splutil.h b/private/nw/svcdlls/nwwks/inc/splutil.h new file mode 100644 index 000000000..8e8169eac --- /dev/null +++ b/private/nw/svcdlls/nwwks/inc/splutil.h @@ -0,0 +1,81 @@ +/*++ + +Copyright (c) 1992-1993 Microsoft Corporation + +Module Name: + + splutil.h + +Abstract: + + Header file for utilities used in Novell Print Provider + +Author: + + Yi-Hsin Sung (yihsins) 12-Apr-1993 + +Revision History: + +--*/ + +#ifndef _SPLUTIL_H_ +#define _SPLUTIL_H_ + +#define offsetof(type, identifier) (DWORD)(&(((type)0)->identifier)) + +extern DWORD PrinterInfo1Offsets[]; +extern DWORD PrinterInfo2Offsets[]; +extern DWORD PrinterInfo3Offsets[]; +extern DWORD JobInfo1Offsets[]; +extern DWORD JobInfo2Offsets[]; +extern DWORD AddJobInfo1Offsets[]; + +VOID +MarshallUpStructure( + LPBYTE lpStructure, + LPDWORD lpOffsets, + LPBYTE lpBufferStart +); + +VOID +MarshallDownStructure( + LPBYTE lpStructure, + LPDWORD lpOffsets, + LPBYTE lpBufferStart +); + +LPVOID +AllocNwSplMem( + IN DWORD flags, + IN DWORD cb + ); + +VOID +FreeNwSplMem( + IN LPVOID pMem, + IN DWORD cb + ); + +LPWSTR +AllocNwSplStr( + IN LPWSTR pStr + ); + +VOID +FreeNwSplStr( + IN LPWSTR pStr +); + +BOOL +ValidateUNCName( + IN LPWSTR pName +); + +LPWSTR +GetNextElement( + OUT LPWSTR *pPtr, + IN WCHAR token +); + + +#endif // _SPLUTIL_H -- cgit v1.2.3