DeleteBinderyObject
Deletes a bindery object (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call NWDeleteObject )
#include <\nlm\nit\nwbindry.h>
int DeleteBinderyObject (
char *objectName,
WORD objectType);
The objectName and objectType parameters must uniquely identify the bindery object to be deleted and must not contain wildcard characters. The objectName can be from 1 to 48 characters long, including the NULL terminator. Only printable characters can be used. Slashes, backslashes, colons, semicolons, commas, asterisks, and question marks are prohibited.
#include <stdio.h>
#include <\nlm\nit\nwbindry.h>
main()
{
int completionCode;
char objectName[48];
WORD objectType;
strcpy (objectName, "PROSE");
objectType = OT_USER;
completionCode = DeleteBinderyObject (objectName, objectType);
if (completionCode == 0)
printf ("%s of Type %d has been deleted\n", objectName, objectType);
else
printf ("Error %d in DeleteBinderyObject\n", completionCode);
}