Platform SDK: Interprocess Communications |
The NDdeSetTrustedShare function is used by a DDE server to grant trusted status to a DDE share.
The following example demonstrates how to grant trusted status to a DDE share:
BOOL MyTrustShare( LPSTR lpszShareName ) { // Grant trusted status. if( NDdeSetTrustedShare( NULL, lpszShareName, NDDE_TRUST_SHARE_INIT | NDDE_TRUST_SHARE_START ) == NDDE_NO_ERROR ) return TRUE; else return FALSE; }
The following example shows how you could call the MyTrustShare function to grant trusted status to the existing share MyDdeShare$:
MyTrustShare( "MyDdeShare$" );