The NDdeSetTrustedShare function is called to grant the referenced DDE share trusted status within the current user’s context.
UINT NDdeSetTrustedShare(
LPTSTR lpszServer, |
// server to execute on |
LPTSTR lpszShareName, |
// name of share to delete |
DWORD dwTrustOptions |
// trust options to apply |
); |
Option |
Meaning |
NDDE_TRUST_SHARE_START |
Allow the application to be started in the user’s context. |
NDDE_TRUST_SHARE_INIT |
Allow a client to initiate to the application if it is already running in the user’s context. |
NDDE_TRUST_SHARE_DEL |
Remove the share’s trusted status. |
NDDE_TRUST_CMD_SHOW |
Start the application with CmdShow field defined here overriding the CmdShow specified in the DDE share DSDM. |
NDDE_CMD_SHOW_MASK |
CmdShow value used to override the DDE share CmdShow if the NDDE_TRUST_CMD_SHOW is set. |
If the function succeeds, the return value is NDDE_NO_ERROR.
If the function fails, the return value is an error code, which can be translated into a text error message by calling NDdeGetErrorString.
The DDE share must first be created with NDdeShareAdd.
If NDdeSetTrustedShare is called with dwTrustOptions set to 0, the trusted share loses its trusted status.
file: /Techref/os/win/api/win32/func/src/f58_10.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2024/9/4 22:22,
3.12.123.79:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/os/win/api/win32/func/src/f58_10.htm"> NDdeSetTrustedShare</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.