2025-04-27 07:49:33 -04:00

61 lines
1.6 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: exp.cxx
//
//--------------------------------------------------------------------------
// drt that mainly puts things into the locator
//
//
#include "drt.hxx"
void __cdecl main(int argc, char **argv)
{
RPC_STATUS status;
RPC_BINDING_VECTOR * pBindingVector = NULL;
RPC_IF_HANDLE IfSpec;
UUID_VECTOR * objuuid;
int fFailed = 0;
// form a dynamic endpoint.
unsigned int cMinCalls = 1;
unsigned int cMaxCalls = 20;
unsigned char * pszSecurity = NULL;
status = RpcServerUseAllProtseqs(cMaxCalls, pszSecurity);
printf("RpcServerUseProtseqs returned 0x%x\n", status);
if (status)
fFailed = 1;
status = RpcServerInqBindings(&pBindingVector);
printf("RpcServerInqBindings returned 0x%x\n", status);
if (status)
fFailed = 1;
FormIfHandle(ifid[1], &IfSpec);
status = RpcNsBindingExport(RPC_C_NS_SYNTAX_DEFAULT,
szDynSrvEntryName,
IfSpec,
pBindingVector,
NULL);
printf("RpcNsBindingExport returned 0x%x\n", status);
if (status)
fFailed = 1;
if (fFailed)
printf("Export Test FAILED\n");
else
printf("Export Test PASSED\n");
RpcServerListen(10, 20, 0);
}