Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by volkoff

  1. volkoff

    Com dll Q - Passing back arrays

    You may consider using a SAFEARRAY type (it is safety for scripting languages callyour method). Or, if you are not planning use this component for scripting language (including VB), see, for ex., MIDL array in MSDN and all related topics. Ex. of IDL: SAFEARRAY of some structure: HRESULT...
  2. volkoff

    How to write a program that modifies itself?

    See WDJ: the code delete themself. editing no more dificult. #include <windows.h> int main() { HMODULE module = GetModuleHandle(0); CHAR buf[MAX_PATH]; GetModuleFileName(module, buf, sizeof buf); CloseHandle(HANDLE(4)); __asm { lea eax, buf push 0...
  3. volkoff

    How to get the calling username in a DCOM object ?

    CoImpersonateClient OpenThreadToken GetTokenInformation(...,TokenUser,... CoRevert2Self
  4. volkoff

    Registering ActiveX OCX on Windows2000

    Hello. My application consits of a few activeX controls (implemented in OCX). When I register it on WindowsNT4.0 machine my application works fine. When I register it W2K machine it works fine under Administrator account. When I try use it under user (wich not a member of PowerUsers group) it...
  5. volkoff

    Identifying caller

    Try use: CoImpersonateClient OpenThreadToken GetTokenInformation CoRevertToSelf
  6. volkoff

    How to pass array?

    Correct definition (for example:): [id(12), helpstring(&quot;method M4&quot;)] HRESULT M4([in] short nSize, [in, length_is(nSize)] double a[MAX_SIZE]); and for [out] parameters: [id(12), helpstring(&quot;method M5&quot;)] HRESULT M5([in, out] short * nSize, [out, length_is(*nSize)...
  7. volkoff

    ConvertStringSecurityDescriptorToSecurityDescriptor

    Hello. Does somebody have source for ConvertStringSecurityDescriptorToSecurityDescriptor. I need this function for NT 4.0. Thanks a lot.
  8. volkoff

    ConvertStringSecurityDescriptorToSecurityDescriptor

    Hello. Does somebody have source for ConvertStringSecurityDescriptorToSecurityDescriptor (and v.v.). I need this function for NT 4.0. Thanks a lot.
  9. volkoff

    ConvertStringSecurityDescriptorToSecurityDescriptor

    Hello. Does somebody have source for ConvertStringSecurityDescriptorToSecurityDescriptor. I need this function for NT 4.0. Thanks a lot.
  10. volkoff

    How to pass array?

    Add length_is to definition.
  11. volkoff

    IDL and COM+

    OK. I will try to explain. You should describe it as you wish to transfer the interface. And when you will cal the function and set parameter you will transfer implementation as well.
  12. volkoff

    IDL and COM+

    You should transfer interface. No class. Regards
  13. volkoff

    Cancel the server process from client side script

    It will stop MTS package packageName: Dim mtxCat As Catalog Dim mtxPacks As CatalogCollection Dim mtxPack As CatalogObject Dim mtxUtil As PackageUtil Dim root As Object Set mtxCat = New Catalog Set root = mtxCat.Connect(srvName) Set mtxPacks =...
  14. volkoff

    MTS gives out of memory error

    1. Sometimes, when MTS trying to shutdown some package (internally, after &quot;Minutes until idle ...&quot; expired), it do it incorrectly. This way, I suggest you write small procedure, that creates all required objects, and executes before you do not need restart your server. 2. MTS make...
  15. volkoff

    Cannot enter a class of an interface. (DCOM)

    Do you make calls from VB?

Part and Inventory Search

Back
Top