SALES: 1-800-867-1380

RoleEnvironmentInitialize Function

Updated: October 23, 2014

Initializes the runtime library for the current process.


STDAPI RoleEnvironmentInitialize();

Parameters

None.

Use the SUCCEEDED macro to determine whether a call to the RoleEnvironmentInitialize has succeeded or failed. For more information, see Return Codes.

You must call the RoleEnvironmentInitialize function for each process before calling any other API function in the Service Hosting native library.

A call to RoleEnvironementInitialize will fail if your code is not running in Azure environment or in theMicrosoft Azure compute emulator.

 

Header File

ServiceRuntime.h

Import Library

<Azure SDK installation directory>\lib\x64\mswasr.lib

<Azure SDK installation directory>\lib\x86\mswasr.lib

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft