spltypes.h
上传用户:looem2003
上传日期:2014-07-20
资源大小:13733k
文件大小:2k
- /*++
- Copyright (c) 1990-2003 Microsoft Corporation
- All rights reserved
- Module Name:
- spltypes.h
- --*/
- #ifndef _SPLTYPES_H_
- #define _SPLTYPES_H_
- #define ILM_SIGNATURE 0x4d4c49 /* 'ILM' is the signature value */
- typedef struct _INIPORT *PINIPORT;
- typedef struct _INIXCVPORT *PINIXCVPORT;
- typedef struct _INILOCALMON {
- DWORD signature;
- PMONITORINIT pMonitorInit;
- PINIPORT pIniPort;
- PINIXCVPORT pIniXcvPort;
- } INILOCALMON, *PINILOCALMON;
- typedef struct _INIENTRY {
- DWORD signature;
- DWORD cb;
- struct _INIENTRY *pNext;
- DWORD cRef;
- LPWSTR pName;
- } INIENTRY, *PINIENTRY;
- // IMPORTANT: the offset to pNext in INIPORT must be the same as in INIXCVPORT (DeletePortNode)
- typedef __struct_bcount(cb) struct _INIPORT { /* ipo */
- DWORD signature;
- DWORD cb;
- __field_ecount_opt(1) struct _INIPORT *pNext;
- DWORD cRef;
- LPWSTR pName;
- HANDLE hFile; // File handle
- DWORD cbWritten;
- DWORD Status; // see PORT_ manifests
- LPWSTR pPrinterName;
- LPWSTR pDeviceName;
- HANDLE hPrinter;
- DWORD JobId;
- PINILOCALMON pIniLocalMon;
- LPBYTE pExtra;
- TCHAR fileName[4*MAX_PATH];
- } INIPORT, *PINIPORT;
- #define IPO_SIGNATURE 0x5450 /* 'PT' is the signature value */
- // IMPORTANT: the offset to pNext in INIXCVPORT must be the same as in INIPORT (DeletePortNode)
- typedef __struct_bcount(cb) struct _INIXCVPORT {
- DWORD signature;
- DWORD cb;
- __field_ecount_opt(1) struct _INIXCVPORT *pNext;
- DWORD cRef;
- DWORD dwMethod;
- LPWSTR pszName;
- DWORD dwState;
- ACCESS_MASK GrantedAccess;
- PINILOCALMON pIniLocalMon;
- } INIXCVPORT, *PINIXCVPORT;
- #define XCV_SIGNATURE 0x5843 /* 'XC' is the signature value */
- #define PP_DOSDEVPORT 0x0001 // A port for which we did DefineDosDevice
- #define PP_COMM_PORT 0x0002 // A port for which GetCommTimeouts was successful
- #define PP_FILEPORT 0x0004 // The port is a file port
- #define PP_STARTDOC 0x0008 // Port is in use (startdoc called)
- #define FindPort(pIniLocalMon, psz)
- (PINIPORT)LcmFindIniKey( (PINIENTRY)pIniLocalMon->pIniPort,
- (LPWSTR)(psz))
- #endif // _SPLTYPES_H_