// Class (TPIHandle)\r
//******************************************************************************\r
\r
-TPIHandle::TPIHandle(void) : nErrorCode(TPI_ERROR_SUCCESS), bHandleOnCommand(1), archive(NULL)\r
+TPIHandle::TPIHandle(void) : nErrorCode(TPI_ERROR_SUCCESS), bHandleOnCommand(1), archive(nullptr)\r
{\r
}\r
\r
}\r
\r
GetAPIAddress("FreePlugin", p);\r
- this->nErrorCode = ((int (__stdcall *)(void *)) p)(NULL);\r
+ this->nErrorCode = ((int (__stdcall *)(void *)) p)(nullptr);\r
\r
this->lib.Unload();\r
- this->archive = NULL;\r
+ this->archive = nullptr;\r
return this->nErrorCode == TPI_ERROR_SUCCESS;\r
}\r
\r
_fiInfo->szTPIName.Empty();\r
_fiInfo->eSupportedCommand = 0;\r
_fiInfo->nTypeId = 0;\r
- _fiInfo->pCustomInfo = NULL;\r
+ _fiInfo->pCustomInfo = nullptr;\r
\r
GetAPIAddress("GetFormatInformation", p);\r
this->nErrorCode = ((int (__stdcall *)(TPI_FORMATINFO *, bool)) p)(_fiInfo, _bFirst);\r
\r
bool TPIHandle::CloseArchive(void)\r
{\r
- if (this->archive == NULL)\r
+ if (this->archive == nullptr)\r
{\r
return false;\r
}\r
this->nErrorCode = TPI_ERROR_SUCCESS;\r
GetAPIAddress("CloseArchive", p);\r
this->nErrorCode = ((int (__stdcall *)(void *)) p)(this->archive);\r
- this->archive = NULL;\r
+ this->archive = nullptr;\r
return this->nErrorCode == TPI_ERROR_SUCCESS;\r
}\r
\r
_fiInfo->szUser.Empty();\r
_fiInfo->szGroup.Empty();\r
_fiInfo->nFileId = 0;\r
- _fiInfo->pCustomInfo = NULL;\r
+ _fiInfo->pCustomInfo = nullptr;\r
\r
GetAPIAddress("GetFileInformation", p);\r
this->nErrorCode = ((int (__stdcall *)(void *, TPI_FILEINFO *, bool)) p)(this->archive, _fiInfo, _bFirst);\r
_aiInfo->fnArchive.Clear();\r
_aiInfo->szComment.Empty();\r
_aiInfo->wCompressRatio = 0;\r
- _aiInfo->pCustomInfo = NULL;\r
+ _aiInfo->pCustomInfo = nullptr;\r
// FORMATINFO\r
_aiInfo->fiInfo.fComment = false;\r
_aiInfo->fiInfo.fCompressHeader = false;\r
_aiInfo->fiInfo.szTPIName.Empty();\r
_aiInfo->fiInfo.eSupportedCommand = 0;\r
_aiInfo->fiInfo.nTypeId = 0;\r
- _aiInfo->fiInfo.pCustomInfo = NULL;\r
+ _aiInfo->fiInfo.pCustomInfo = nullptr;\r
\r
GetAPIAddress("GetArchiveInformation", p);\r
this->nErrorCode = ((int (__stdcall *)(void *, TPI_ARCHIVEINFO *)) p)(this->archive, _aiInfo);\r