📄 rmafiles.pas
字号:
function FileObjectReady(status: PN_RESULT; ppUnknown: IUnknown): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMAGetFileFromSamePoolResponse}
(****************************************************************************
*
* Interface:
*
* IRMAGetFileFromSamePool
*
* Purpose:
*
* Gives out File Objects based on filenames and relative "paths"
*
* IID_IRMAGetFileFromSamePool:
*
* {0000020f-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMAGetFileFromSamePool: TGUID = '{0000020f-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMAGetFileFromSamePool}
CLSID_IRMAGetFileFromSamePool: TGUID = '{0000020f-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM CLSID_IRMAGetFileFromSamePool}
type
IRMAGetFileFromSamePool = interface (IUnknown)
['{0000020f-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMAGetFileFromSamePool::GetFileObjectFromPool
* Purpose:
* To get another FileObject from the same pool.
*)
function GetFileObjectFromPool(p: IRMAGetFileFromSamePoolResponse): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMAGetFileFromSamePool}
(****************************************************************************
*
* Interface:
*
* IRMAFileAuthenticator
*
* Purpose:
*
* Set and Get a file object's authenticator object.
*
* IID_IRMAFileAuthenticator:
*
* {00000211-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMAFileAuthenticator: TGUID = '{00000211-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMAFileAuthenticator}
CLSID_IRMAFileAuthenticator: TGUID = '{00000211-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM CLSID_IRMAFileAuthenticator}
type
IRMAFileAuthenticator = interface (IUnknown)
['{00000211-0901-11d1-8B06-00A024406D59}']
function SetAuthenticator(pAuthenticator: IRMAAuthenticator): HRESULT; stdcall;
function GetAuthenticator(out pAuthenticator: IRMAAuthenticator): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMAFileAuthenticator}
(****************************************************************************
*
* Interface:
*
* IRMARequestHandler
*
* Purpose:
*
* Object to manage IRMARequest objects
*
* IID_IRMARequestHandler:
*
* {00000212-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMARequestHandler: TGUID = '{00000212-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMARequestHandler}
CLSID_IRMARequestHandler: TGUID = '{00000212-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM CLSID_IRMARequestHandler}
type
IRMARequestHandler = interface (IUnknown)
['{00000212-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMARequestHandler::SetRequest
* Purpose:
* Associates an IRMARequest with an object
*)
function SetRequest(pRequest: IRMARequest): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMARequestHandler::GetRequest
* Purpose:
* Gets the IRMARequest object associated with an object
*)
function GetRequest(out pRequest: IRMARequest): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMARequestHandler}
(****************************************************************************
*
* Interface:
*
* IRMARequestContext
*
* Purpose:
*
* Object to manage the context of the Request
*
* IID_IRMARequestContext:
*
* {00000217-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMARequestContext: TGUID = '{00000217-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMARequestContext}
CLSID_IRMARequestContext: TGUID = '{00000217-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM CLSID_IRMARequestContext}
type
IRMARequestContext = interface (IUnknown)
['{00000217-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMARequestContext::SetUserContext
* Purpose:
* Sets the Authenticated users Context.
*)
function SetUserContext(pIUnknownNewContext: IUnknown): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMARequestContext::GetUserContext
* Purpose:
* Gets the Authenticated users Context.
*)
function GetUserContext(out pIUnknownCurrentContext: IUnknown): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMARequestContext::SetRequester
* Purpose:
* Sets the Object that made the request.
*)
function SetRequester(pIUnknownNewRequester: IUnknown): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMARequestContext::GetRequester
* Purpose:
* Gets the Object that made the request.
*)
function GetRequester(out pIUnknownCurrentRequester: IUnknown): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMARequestContext}
(****************************************************************************
*
* Interface:
*
* IRMAFileRename
*
* Purpose:
*
* Interface to allow renaming of files. Query off of the File Object.
* Not all filesystem plugins implement this feature.
*
* IID_IRMAFileRename:
*
* {00000214-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMAFileRename: TGUID = '{00000214-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMAFileRename}
type
IRMAFileRename = interface (IUnknown)
['{00000214-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMAFileRename::Rename
* Purpose:
* Renames a file to a new name.
*)
function Rename(pNewFileName: PChar): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMAFileRename}
(****************************************************************************
*
* Interface:
*
* IRMADirHandlerResponse
*
* Purpose:
*
* Object that exports the directory handler response API
*
* IID_IRMADirHandlerResponse:
*
* {00000216-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMADirHandlerResponse: TGUID = '{00000216-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMADirHandlerResponse}
type
IRMADirHandlerResponse = interface (IUnknown)
['{00000216-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMADirHandlerResponse::InitDirHandlerDone
* Purpose:
* Notification interface provided by users of the IRMADirHandler
* interface. This method is called by the IRMADirHandler when the
* initialization of the object is complete.
*)
function InitDirHandlerDone(status: PN_RESULT): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandlerResponse::CloseDirHandlerDone
* Purpose:
* Notification interface provided by users of the IRMADirHandler
* interface. This method is called by the IRMADirHandler when the
* close of the directory is complete.
*)
function CloseDirHandlerDone(status: PN_RESULT): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandler::MakeDirDone
* Purpose:
* Notification interface provided by users of the IRMADirHandler
* interface. This method is called by the IRMADirHandler when the
* attempt to create the directory is complete.
*)
function MakeDirDone(status: PN_RESULT): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandler::ReadDirDone
* Purpose:
* Notification interface provided by users of the IRMADirHandler
* interface. This method is called by the IRMADirHandler when the
* read from the directory is complete and a buffer is available.
*)
function ReadDirDone(status: PN_RESULT; pBuffer: IRMABuffer): HRESULT; stdcall;
end;
{$EXTERNALSYM IRMADirHandlerResponse}
(****************************************************************************
*
* Interface:
*
* IRMADirHandler
*
* Purpose:
*
* Object that exports directory handler API
*
* IID_IRMADirHandler:
*
* {00000215-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMADirHandler: TGUID = '{00000215-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMADirHandler}
type
IRMADirHandler = interface (IUnknown)
['{00000215-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMADirHandler::InitDirHandler
* Purpose:
* Associates a directory handler with the directory handler
* response, it should notify of operation completness.
*)
function InitDirHandler(pDirResponse: IRMADirHandlerResponse): HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandler::CloseDirHandler
* Purpose:
* Closes the directory handler resource and releases all resources
* associated with the object.
*)
function CloseDirHandler: HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandler::MakeDir
* Purpose:
* Create the directory
*)
function MakeDir: HRESULT; stdcall;
(************************************************************************
* Method:
* IRMADirHandler::ReadDir
* Purpose:
* Get a dump of the directory
*)
function ReadDir: HRESULT; stdcall;
end;
{$EXTERNALSYM IRMADirHandler}
(****************************************************************************
*
* Interface:
*
* IRMAFileRemove
*
* Purpose:
*
* Interface to allow removing of files. Query off of the File Object.
* Not all filesystem plugins implement this feature.
*
* IID_IRMAFileRemove:
*
* {0000021A-0901-11d1-8B06-00A024406D59}
*
*)
const
IID_IRMAFileRemove: TGUID = '{0000021A-0901-11d1-8B06-00A024406D59}';
{$EXTERNALSYM IID_IRMAFileRemove}
type
IRMAFileRemove = interface (IUnknown)
['{0000021A-0901-11d1-8B06-00A024406D59}']
(************************************************************************
* Method:
* IRMAFileRemove::Remove
* Purpose:
* Removes a file from the file system.
*)
function Remove: HRESULT; stdcall;
end;
{$EXTERNALSYM IRMAFileRemove}
implementation
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -